1 |
commit: cd02b03cb5ac359f7a0f8e2a1bf37632a26f0e08 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 20 05:39:46 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 20 06:11:00 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd02b03c |
7 |
|
8 |
dev-util/gdbus-codegen: bump to 2.56.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.47, Repoman-2.3.10 |
11 |
|
12 |
dev-util/gdbus-codegen/Manifest | 1 + |
13 |
.../files/gdbus-codegen-2.56.1-sitedir.patch | 54 ++++++++++++++++++++++ |
14 |
dev-util/gdbus-codegen/gdbus-codegen-2.56.2.ebuild | 46 ++++++++++++++++++ |
15 |
3 files changed, 101 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/gdbus-codegen/Manifest b/dev-util/gdbus-codegen/Manifest |
18 |
index a90fdd90071..0b64672ba5d 100644 |
19 |
--- a/dev-util/gdbus-codegen/Manifest |
20 |
+++ b/dev-util/gdbus-codegen/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST glib-2.52.3.tar.xz 7679972 BLAKE2B 8d9f6b714571bd04ab9717fbf9ded8556664e43dcdb7dd59436b8b7f1a8a5cdf98e9ce60ca1ead941af1d57688044fefb6c749fa735084622a3482b058864ff6 SHA512 a068f2519cfb82de8d4b7f004e7c1f15e841cad4046430a83b02b359d011e0c4077cdff447a1687ed7c68f1a11b4cf66b9ed9fc23ab5f0c7c6be84eb0ddc3017 |
23 |
DIST glib-2.54.3.tar.xz 7836536 BLAKE2B 140e7cf09a41b72a5b22e5b87e9674cbfdfe1b82f3cf5f0fd3ecb2ed6b1f62a90f8b4c0bc2f655e297f91394f771f6ecad210357e31f104ee49ca178be6b9d76 SHA512 23eb4458684624f80c17aa784eab42a38eec87bb5979fcfe56f0bc63b5c7bcf8251a0d4ea916fe2c8109ff5b14a4b60c6260755d079ff984c0d8e6a2871d307d |
24 |
+DIST glib-2.56.2.tar.xz 8041756 BLAKE2B 1af5bb37378856e959602bcb9299266bba46b990839c923f6b9881624aed306af0779005281b3e3a46b5994c54812edc86aade9cb782c596fd63b6fd91baba51 SHA512 8201ea82d3613d2e879284abe01520b766da30957c5a1a22f3e6019b0cce6bf95d25beae78867b6a133401c4165153c0c92974dd459ab12f9e0e9dd0c95df5d4 |
25 |
|
26 |
diff --git a/dev-util/gdbus-codegen/files/gdbus-codegen-2.56.1-sitedir.patch b/dev-util/gdbus-codegen/files/gdbus-codegen-2.56.1-sitedir.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..30f0d7dcc7c |
29 |
--- /dev/null |
30 |
+++ b/dev-util/gdbus-codegen/files/gdbus-codegen-2.56.1-sitedir.patch |
31 |
@@ -0,0 +1,54 @@ |
32 |
+From 9eaaa76e2e36e46a43dbd419724696fd7ff8ea64 Mon Sep 17 00:00:00 2001 |
33 |
+From: =?UTF-8?q?R=C3=A9mi=20Cardona?= <remi@g.o> |
34 |
+Date: Sat, 14 Apr 2018 09:55:22 +0200 |
35 |
+Subject: [PATCH 1/2] gdbus-codegen-2.54.3-sitedir.patch |
36 |
+ |
37 |
+--- |
38 |
+ gio/gdbus-2.0/codegen/gdbus-codegen.in | 28 -------------------------- |
39 |
+ 1 file changed, 28 deletions(-) |
40 |
+ |
41 |
+diff --git a/gio/gdbus-2.0/codegen/gdbus-codegen.in b/gio/gdbus-2.0/codegen/gdbus-codegen.in |
42 |
+index 67d367543..190afa28f 100755 |
43 |
+--- a/gdbus-codegen.in |
44 |
++++ b/gdbus-codegen.in |
45 |
+@@ -20,36 +20,8 @@ |
46 |
+ # Author: David Zeuthen <davidz@××××××.com> |
47 |
+ |
48 |
+ |
49 |
+-import os |
50 |
+ import sys |
51 |
+ |
52 |
+-srcdir = os.getenv('UNINSTALLED_GLIB_SRCDIR', None) |
53 |
+-filedir = os.path.dirname(__file__) |
54 |
+- |
55 |
+-if srcdir is not None: |
56 |
+- path = os.path.join(srcdir, 'gio', 'gdbus-2.0') |
57 |
+-elif os.path.basename(filedir) == 'bin': |
58 |
+- # Make the prefix containing gdbus-codegen 'relocatable' at runtime by |
59 |
+- # adding /some/prefix/bin/../share/glib-2.0 to the python path |
60 |
+- path = os.path.join(filedir, '..', 'share', 'glib-2.0') |
61 |
+-else: |
62 |
+- # Assume that the modules we need are in the current directory and add the |
63 |
+- # parent directory to the python path. |
64 |
+- path = os.path.join(filedir, '..') |
65 |
+- |
66 |
+-# Canonicalize, then do further testing |
67 |
+-path = os.path.abspath(path) |
68 |
+- |
69 |
+-# If the above path detection failed, use the hard-coded datadir. This can |
70 |
+-# happen when, for instance, bindir and datadir are not in the same prefix or |
71 |
+-# on Windows where we cannot make any guarantees about the directory structure. |
72 |
+-# |
73 |
+-# In these cases our installation cannot be relocatable, but at least we should |
74 |
+-# be able to find the codegen module. |
75 |
+-if not os.path.isfile(os.path.join(path, 'codegen', 'codegen_main.py')): |
76 |
+- path = os.path.join('@DATADIR@', 'glib-2.0') |
77 |
+- |
78 |
+-sys.path.insert(0, path) |
79 |
+-from codegen import codegen_main |
80 |
++from gdbus_codegen import codegen_main |
81 |
+ |
82 |
+ sys.exit(codegen_main.codegen_main()) |
83 |
+-- |
84 |
+2.17.0 |
85 |
+ |
86 |
|
87 |
diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.56.2.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.56.2.ebuild |
88 |
new file mode 100644 |
89 |
index 00000000000..943c070c9b9 |
90 |
--- /dev/null |
91 |
+++ b/dev-util/gdbus-codegen/gdbus-codegen-2.56.2.ebuild |
92 |
@@ -0,0 +1,46 @@ |
93 |
+# Copyright 1999-2018 Gentoo Foundation |
94 |
+# Distributed under the terms of the GNU General Public License v2 |
95 |
+ |
96 |
+EAPI=6 |
97 |
+GNOME_ORG_MODULE="glib" |
98 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
99 |
+PYTHON_REQ_USE="xml" |
100 |
+ |
101 |
+inherit gnome.org distutils-r1 |
102 |
+ |
103 |
+DESCRIPTION="GDBus code and documentation generator" |
104 |
+HOMEPAGE="https://www.gtk.org/" |
105 |
+ |
106 |
+LICENSE="LGPL-2+" |
107 |
+SLOT="0" |
108 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos" |
109 |
+IUSE="" |
110 |
+ |
111 |
+RDEPEND="${PYTHON_DEPS}" |
112 |
+DEPEND="${RDEPEND}" |
113 |
+ |
114 |
+# To prevent circular dependencies with glib[test] |
115 |
+PDEPEND=">=dev-libs/glib-${PV}:2" |
116 |
+ |
117 |
+S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen" |
118 |
+ |
119 |
+python_prepare_all() { |
120 |
+ PATCHES=( |
121 |
+ "${FILESDIR}/${PN}-2.56.1-sitedir.patch" |
122 |
+ ) |
123 |
+ distutils-r1_python_prepare_all |
124 |
+ |
125 |
+ sed -e 's:@PYTHON@:python:' gdbus-codegen.in > gdbus-codegen || die |
126 |
+ cp "${FILESDIR}/setup.py-2.32.4" setup.py || die "cp failed" |
127 |
+ sed -e "s/@PV@/${PV}/" -i setup.py || die "sed setup.py failed" |
128 |
+} |
129 |
+ |
130 |
+src_test() { |
131 |
+ einfo "Skipping tests. This package is tested by dev-libs/glib" |
132 |
+ einfo "when merged with FEATURES=test" |
133 |
+} |
134 |
+ |
135 |
+python_install_all() { |
136 |
+ distutils-r1_python_install_all # no-op, but prevents QA warning |
137 |
+ doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1" |
138 |
+} |