commit: f19cc3dfa93e79fb08f61c3e6577fc3b6fb0659b Author: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org> AuthorDate: Thu Dec 14 14:07:01 2017 +0000 Commit: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org> CommitDate: Thu Dec 14 14:07:01 2017 +0000 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=f19cc3df
dev-util/gdbus-codegen: version bumpt to 2.54.2 Package-Manager: Portage-2.3.18, Repoman-2.3.6 Manifest-Sign-Key: 0x7DF238CF0AA182E1 .../files/gdbus-codegen-2.54.2-sitedir.patch | 35 ++++++++++++++++ dev-util/gdbus-codegen/gdbus-codegen-2.54.2.ebuild | 46 ++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/dev-util/gdbus-codegen/files/gdbus-codegen-2.54.2-sitedir.patch b/dev-util/gdbus-codegen/files/gdbus-codegen-2.54.2-sitedir.patch new file mode 100644 index 00000000..de90afc3 --- /dev/null +++ b/dev-util/gdbus-codegen/files/gdbus-codegen-2.54.2-sitedir.patch @@ -0,0 +1,35 @@ +From f2f8ccb15cc6288455f4780d016789aa2e023d6d Mon Sep 17 00:00:00 2001 +From: Sobhan Mohammadpour <[email protected]> +Date: Thu, 14 Dec 2017 17:10:50 +0330 +Subject: [PATCH] glib-2.54.2 external gdbus codegen + +based on gdbus-codegen-2.40.0-sitedir.patch +--- + gio/gdbus-2.0/codegen/gdbus-codegen.in | 11 +---------- + 1 file changed, 1 insertion(+), 10 deletions(-) + +diff --git a/gio/gdbus-2.0/codegen/gdbus-codegen.in b/gio/gdbus-2.0/codegen/gdbus-codegen.in +index 8050981..c097702 100644 +--- a/gio/gdbus-2.0/codegen/gdbus-codegen.in ++++ b/gio/gdbus-2.0/codegen/gdbus-codegen.in +@@ -28,16 +28,7 @@ filedir = os.path.dirname(__file__) + + if srcdir is not None: + path = os.path.join(srcdir, 'gio', 'gdbus-2.0') +-elif os.path.basename(filedir) == 'bin': +- # Make the prefix containing gdbus-codegen 'relocatable' at runtime by +- # adding /some/prefix/bin/../share/glib-2.0 to the python path +- path = os.path.join(filedir, '..', 'share', 'glib-2.0') + else: +- # Assume that the modules we need are in the current directory and add the +- # parent directory to the python path. +- path = os.path.join(filedir, '..') +- +-sys.path.insert(0, os.path.abspath(path)) +-from codegen import codegen_main ++ from gdbus_codegen import codegen_main + + sys.exit(codegen_main.codegen_main()) +-- +2.15.1 + diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.54.2.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.54.2.ebuild new file mode 100644 index 00000000..52e4ec78 --- /dev/null +++ b/dev-util/gdbus-codegen/gdbus-codegen-2.54.2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +GNOME_ORG_MODULE="glib" +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) +PYTHON_REQ_USE="xml" + +inherit gnome.org distutils-r1 + +DESCRIPTION="GDBus code and documentation generator" +HOMEPAGE="https://www.gtk.org/" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +# To prevent circular dependencies with glib[test] +PDEPEND=">=dev-libs/glib-${PV}:2" + +S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen" + +python_prepare_all() { + PATCHES=( + "${FILESDIR}/${PN}-2.54.2-sitedir.patch" + ) + distutils-r1_python_prepare_all + + sed -e 's:@PYTHON@:python:' gdbus-codegen.in > gdbus-codegen || die + cp "${FILESDIR}/setup.py-2.32.4" setup.py || die "cp failed" + sed -e "s/@PV@/${PV}/" -i setup.py || die "sed setup.py failed" +} + +src_test() { + einfo "Skipping tests. This package is tested by dev-libs/glib" + einfo "when merged with FEATURES=test" +} + +python_install_all() { + distutils-r1_python_install_all # no-op, but prevents QA warning + doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1" +}
