1 |
commit: 29f11fa1131ae9e71dde92c321564571e23e5781 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 25 23:48:46 2013 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 25 23:49:10 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=29f11fa1 |
7 |
|
8 |
dev-python/pyatspi: 2.8.0 → 2.10.0 |
9 |
|
10 |
--- |
11 |
.../files/pyatspi-2.6.0-examples-python3.patch | 26 ++++++++++ |
12 |
dev-python/pyatspi/metadata.xml | 5 ++ |
13 |
dev-python/pyatspi/pyatspi-2.10.0.ebuild | 59 ++++++++++++++++++++++ |
14 |
dev-python/pyatspi/pyatspi-9999.ebuild | 46 +++++++---------- |
15 |
4 files changed, 108 insertions(+), 28 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/pyatspi/files/pyatspi-2.6.0-examples-python3.patch b/dev-python/pyatspi/files/pyatspi-2.6.0-examples-python3.patch |
18 |
new file mode 100644 |
19 |
index 0000000..423cd64 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pyatspi/files/pyatspi-2.6.0-examples-python3.patch |
22 |
@@ -0,0 +1,26 @@ |
23 |
+From 4f10a696002179082e41568b5109400ac8478a96 Mon Sep 17 00:00:00 2001 |
24 |
+From: Alexandre Rostovtsev <tetromino@g.o> |
25 |
+Date: Mon, 10 Dec 2012 04:52:03 -0500 |
26 |
+Subject: [PATCH] examples: support python2 and python3 syntax |
27 |
+ |
28 |
+https://bugzilla.gnome.org/show_bug.cgi?id=689957 |
29 |
+--- |
30 |
+ examples/magFocusTracker.py | 2 +- |
31 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
32 |
+ |
33 |
+diff --git a/examples/magFocusTracker.py b/examples/magFocusTracker.py |
34 |
+index 47efe00..7ca3b67 100755 |
35 |
+--- a/examples/magFocusTracker.py |
36 |
++++ b/examples/magFocusTracker.py |
37 |
+@@ -282,7 +282,7 @@ def main(): |
38 |
+ startTracking() |
39 |
+ pyatspi.Registry.start() |
40 |
+ else: |
41 |
+- print 'Magnification service not available. Exiting.' |
42 |
++ print('Magnification service not available. Exiting.') |
43 |
+ |
44 |
+ return 0 |
45 |
+ |
46 |
+-- |
47 |
+1.8.0 |
48 |
+ |
49 |
|
50 |
diff --git a/dev-python/pyatspi/metadata.xml b/dev-python/pyatspi/metadata.xml |
51 |
new file mode 100644 |
52 |
index 0000000..d9f21e6 |
53 |
--- /dev/null |
54 |
+++ b/dev-python/pyatspi/metadata.xml |
55 |
@@ -0,0 +1,5 @@ |
56 |
+<?xml version="1.0" encoding="UTF-8"?> |
57 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
58 |
+<pkgmetadata> |
59 |
+ <herd>gnome-accessibility</herd> |
60 |
+</pkgmetadata> |
61 |
|
62 |
diff --git a/dev-python/pyatspi/pyatspi-2.10.0.ebuild b/dev-python/pyatspi/pyatspi-2.10.0.ebuild |
63 |
new file mode 100644 |
64 |
index 0000000..c2ccc44 |
65 |
--- /dev/null |
66 |
+++ b/dev-python/pyatspi/pyatspi-2.10.0.ebuild |
67 |
@@ -0,0 +1,59 @@ |
68 |
+# Copyright 1999-2013 Gentoo Foundation |
69 |
+# Distributed under the terms of the GNU General Public License v2 |
70 |
+# $Header: $ |
71 |
+ |
72 |
+EAPI="5" |
73 |
+GCONF_DEBUG="no" |
74 |
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
75 |
+ |
76 |
+inherit eutils gnome2 python-r1 |
77 |
+ |
78 |
+DESCRIPTION="Python binding to at-spi library" |
79 |
+HOMEPAGE="http://live.gnome.org/Accessibility" |
80 |
+ |
81 |
+# Note: only some of the tests are GPL-licensed, everything else is LGPL |
82 |
+LICENSE="LGPL-2 GPL-2+" |
83 |
+SLOT="0" |
84 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
85 |
+IUSE="" # test |
86 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
87 |
+ |
88 |
+# test suite is obsolete (at-spi-1.x era) and unpassable |
89 |
+RESTRICT="test" |
90 |
+ |
91 |
+COMMON_DEPEND=" |
92 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/pygobject-2.90.1:3[${PYTHON_USEDEP}] |
94 |
+ ${PYTHON_DEPS} |
95 |
+" |
96 |
+RDEPEND="${COMMON_DEPEND} |
97 |
+ >=sys-apps/dbus-1 |
98 |
+ >=app-accessibility/at-spi2-core-${PV}[introspection] |
99 |
+ !<gnome-extra/at-spi-1.32.0-r1 |
100 |
+" |
101 |
+DEPEND="${COMMON_DEPEND} |
102 |
+ virtual/pkgconfig" |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=689957 |
106 |
+ epatch "${FILESDIR}/${PN}-2.6.0-examples-python3.patch" |
107 |
+ |
108 |
+ gnome2_src_prepare |
109 |
+ |
110 |
+ python_copy_sources |
111 |
+} |
112 |
+ |
113 |
+src_configure() { |
114 |
+ python_foreach_impl run_in_build_dir gnome2_src_configure --disable-tests |
115 |
+} |
116 |
+ |
117 |
+src_compile() { |
118 |
+ python_foreach_impl run_in_build_dir gnome2_src_compile |
119 |
+} |
120 |
+ |
121 |
+src_install() { |
122 |
+ python_foreach_impl run_in_build_dir gnome2_src_install |
123 |
+ |
124 |
+ docinto examples |
125 |
+ dodoc examples/*.py |
126 |
+} |
127 |
|
128 |
diff --git a/dev-python/pyatspi/pyatspi-9999.ebuild b/dev-python/pyatspi/pyatspi-9999.ebuild |
129 |
index c1ed047..80dceb8 100644 |
130 |
--- a/dev-python/pyatspi/pyatspi-9999.ebuild |
131 |
+++ b/dev-python/pyatspi/pyatspi-9999.ebuild |
132 |
@@ -1,14 +1,12 @@ |
133 |
-# Copyright 1999-2012 Gentoo Foundation |
134 |
+# Copyright 1999-2013 Gentoo Foundation |
135 |
# Distributed under the terms of the GNU General Public License v2 |
136 |
# $Header: $ |
137 |
|
138 |
-EAPI="4" |
139 |
+EAPI="5" |
140 |
GCONF_DEBUG="no" |
141 |
-PYTHON_DEPEND="2:2.5 3" |
142 |
-SUPPORT_PYTHON_ABIS="1" |
143 |
-RESTRICT_PYTHON_ABIS="2.5 *-jython *-pypy-*" |
144 |
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) |
145 |
|
146 |
-inherit gnome2 python |
147 |
+inherit eutils gnome2 python-r1 |
148 |
if [[ ${PV} = 9999 ]]; then |
149 |
GNOME_LIVE_MODULE="pyatspi2" |
150 |
inherit gnome2-live |
151 |
@@ -23,15 +21,18 @@ SLOT="0" |
152 |
if [[ ${PV} = 9999 ]]; then |
153 |
KEYWORDS="" |
154 |
else |
155 |
- KEYWORDS="~amd64 ~arm ~hppa ~x86" |
156 |
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
157 |
fi |
158 |
IUSE="" # test |
159 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
160 |
|
161 |
# test suite is obsolete (at-spi-1.x era) and unpassable |
162 |
RESTRICT="test" |
163 |
|
164 |
-COMMON_DEPEND="dev-python/dbus-python |
165 |
- >=dev-python/pygobject-2.90.1:3 |
166 |
+COMMON_DEPEND=" |
167 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
168 |
+ >=dev-python/pygobject-2.90.1:3[${PYTHON_USEDEP}] |
169 |
+ ${PYTHON_DEPS} |
170 |
" |
171 |
RDEPEND="${COMMON_DEPEND} |
172 |
>=sys-apps/dbus-1 |
173 |
@@ -41,37 +42,26 @@ RDEPEND="${COMMON_DEPEND} |
174 |
DEPEND="${COMMON_DEPEND} |
175 |
virtual/pkgconfig" |
176 |
|
177 |
-pkg_setup() { |
178 |
- G2CONF="${G2CONF} --disable-tests" |
179 |
- python_pkg_setup |
180 |
-} |
181 |
- |
182 |
src_prepare() { |
183 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=689957 |
184 |
+ epatch "${FILESDIR}/${PN}-2.6.0-examples-python3.patch" |
185 |
+ |
186 |
gnome2_src_prepare |
187 |
|
188 |
- python_clean_py-compile_files |
189 |
python_copy_sources |
190 |
} |
191 |
|
192 |
src_configure() { |
193 |
- python_execute_function -s gnome2_src_configure |
194 |
+ python_foreach_impl run_in_build_dir gnome2_src_configure --disable-tests |
195 |
} |
196 |
|
197 |
src_compile() { |
198 |
- python_execute_function -s gnome2_src_compile |
199 |
+ python_foreach_impl run_in_build_dir gnome2_src_compile |
200 |
} |
201 |
|
202 |
src_install() { |
203 |
- python_execute_function -s gnome2_src_install |
204 |
- python_clean_installation_image |
205 |
-} |
206 |
- |
207 |
-pkg_postinst() { |
208 |
- gnome2_pkg_postinst |
209 |
- python_mod_optimize pyatspi |
210 |
-} |
211 |
+ python_foreach_impl run_in_build_dir gnome2_src_install |
212 |
|
213 |
-pkg_postrm() { |
214 |
- gnome2_pkg_postrm |
215 |
- python_mod_cleanup pyatspi |
216 |
+ docinto examples |
217 |
+ dodoc examples/*.py |
218 |
} |