From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BD636139083 for ; Thu, 14 Dec 2017 14:07:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4801E0FB0; Thu, 14 Dec 2017 14:07:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B5446E0FB0 for ; Thu, 14 Dec 2017 14:07:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7162C33BE18 for ; Thu, 14 Dec 2017 14:07:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30EDBAE7D for ; Thu, 14 Dec 2017 14:07:20 +0000 (UTC) From: "Sobhan Mohammadpour" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sobhan Mohammadpour" Message-ID: <1513260421.f19cc3dfa93e79fb08f61c3e6577fc3b6fb0659b.sobhan@gentoo> Subject: [gentoo-commits] proj/gnome:master commit in: dev-util/gdbus-codegen/files/, dev-util/gdbus-codegen/ X-VCS-Repository: proj/gnome X-VCS-Files: dev-util/gdbus-codegen/files/gdbus-codegen-2.54.2-sitedir.patch dev-util/gdbus-codegen/gdbus-codegen-2.54.2.ebuild X-VCS-Directories: dev-util/gdbus-codegen/ dev-util/gdbus-codegen/files/ X-VCS-Committer: sobhan X-VCS-Committer-Name: Sobhan Mohammadpour X-VCS-Revision: f19cc3dfa93e79fb08f61c3e6577fc3b6fb0659b X-VCS-Branch: master Date: Thu, 14 Dec 2017 14:07:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9080c4ca-fb52-4838-a982-e886d95e4033 X-Archives-Hash: 4d10613e6b049eab0ff9a3f042b6d110 commit: f19cc3dfa93e79fb08f61c3e6577fc3b6fb0659b Author: Sobhan Mohammadpour gentoo org> AuthorDate: Thu Dec 14 14:07:01 2017 +0000 Commit: Sobhan Mohammadpour gentoo 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 +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" +}