Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: dev-python/pygobject/
Date: Mon, 10 Sep 2018 21:34:11
Message-Id: 1536588132.4b16f44d3dddaa6f8c205039f79d7529122eb276.eva@gentoo
1 commit: 4b16f44d3dddaa6f8c205039f79d7529122eb276
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 10 13:44:18 2018 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 10 14:02:12 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=4b16f44d
7
8 dev-python/pygobject: 3.24.1-r1 → 3.26.1
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11 Manifest-Sign-Key: 0x5A56C8CD0C13248A
12
13 ...gobject-9999.ebuild => pygobject-3.26.1.ebuild} | 60 +++++++++-------------
14 dev-python/pygobject/pygobject-9999.ebuild | 46 ++++++-----------
15 2 files changed, 40 insertions(+), 66 deletions(-)
16
17 diff --git a/dev-python/pygobject/pygobject-9999.ebuild b/dev-python/pygobject/pygobject-3.26.1.ebuild
18 similarity index 59%
19 copy from dev-python/pygobject/pygobject-9999.ebuild
20 copy to dev-python/pygobject/pygobject-3.26.1.ebuild
21 index 9adddeb4..535769f2 100644
22 --- a/dev-python/pygobject/pygobject-9999.ebuild
23 +++ b/dev-python/pygobject/pygobject-3.26.1.ebuild
24 @@ -1,28 +1,19 @@
25 # Copyright 1999-2018 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27
28 -EAPI="5"
29 -
30 -GCONF_DEBUG="no"
31 +EAPI=6
32 GNOME2_LA_PUNT="yes"
33 -PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
34 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
35
36 inherit eutils gnome2 python-r1 virtualx
37 -if [[ ${PV} = 9999 ]]; then
38 - inherit gnome2-live
39 -fi
40
41 DESCRIPTION="GLib's GObject library bindings for Python"
42 HOMEPAGE="https://wiki.gnome.org/Projects/PyGObject"
43
44 LICENSE="LGPL-2.1+"
45 SLOT="3"
46 -if [[ ${PV} = 9999 ]]; then
47 - KEYWORDS=""
48 -else
49 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
50 -fi
51 -IUSE="+cairo examples test +threads"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
53 +IUSE="+cairo examples test"
54
55 REQUIRED_USE="
56 ${PYTHON_REQUIRED_USE}
57 @@ -31,10 +22,10 @@ REQUIRED_USE="
58
59 COMMON_DEPEND="${PYTHON_DEPS}
60 >=dev-libs/glib-2.38:2
61 - >=dev-libs/gobject-introspection-1.39:=
62 + >=dev-libs/gobject-introspection-1.46.0:=
63 virtual/libffi:=
64 cairo? (
65 - >=dev-python/pycairo-1.10.0[${PYTHON_USEDEP}]
66 + >=dev-python/pycairo-1.11.1[${PYTHON_USEDEP}]
67 x11-libs/cairo )
68 "
69 DEPEND="${COMMON_DEPEND}
70 @@ -45,10 +36,10 @@ DEPEND="${COMMON_DEPEND}
71 media-fonts/font-cursor-misc
72 media-fonts/font-misc-misc
73 x11-libs/cairo[glib]
74 - x11-libs/gdk-pixbuf:2[introspection]
75 + x11-libs/gdk-pixbuf:2[introspection,jpeg]
76 x11-libs/gtk+:3[introspection]
77 x11-libs/pango[introspection]
78 - !sparc? ( python_targets_python2_7? ( dev-python/pyflakes[$(python_gen_usedep python2_7)] ) ) )
79 + python_targets_python2_7? ( dev-python/pyflakes[$(python_gen_usedep python2_7)] ) )
80 "
81 # gnome-base/gnome-common required by eautoreconf
82
83 @@ -62,8 +53,14 @@ RDEPEND="${COMMON_DEPEND}
84 "
85
86 src_prepare() {
87 - # Comment out broken unittest
88 - epatch "${FILESDIR}"/${PN}-3.16.1-unittest.patch
89 + # Test fail with xvfb but not X
90 + sed -e 's/^.*TEST_NAMES=compat_test_pygtk .*;/echo "Test disabled";/' \
91 + -i tests/Makefile.{am,in} || die
92 +
93 + # FAIL: test_cairo_font_options (test_cairo.TestPango)
94 + # AssertionError: <type 'cairo.SubpixelOrder'> != <type 'int'>
95 + sed -e 's/^.*type(font_opts.get_subpixel_order()), int.*/#/' \
96 + -i tests/test_cairo.py || die
97
98 gnome2_src_prepare
99 python_copy_sources
100 @@ -75,8 +72,7 @@ src_configure() {
101 # docs disabled by upstream default since they are very out of date
102 configuring() {
103 gnome2_src_configure \
104 - $(use_enable cairo) \
105 - $(use_enable threads thread)
106 + $(use_enable cairo)
107
108 # Pyflakes tests work only in python2, bug #516744
109 if use test && [[ ${EPYTHON} != python2.7 ]]; then
110 @@ -93,27 +89,19 @@ src_compile() {
111 }
112
113 src_test() {
114 - unset DBUS_SESSION_BUS_ADDRESS
115 - export GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs
116 - export GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484
117 - export SKIP_PEP8="yes"
118 + local -x GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs
119 + local -x GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484
120 + local -x SKIP_PEP8="yes"
121
122 testing() {
123 - export XDG_CACHE_HOME="${T}/${EPYTHON}"
124 - run_in_build_dir Xemake check
125 - unset XDG_CACHE_HOME
126 + local -x XDG_CACHE_HOME="${T}/${EPYTHON}"
127 + emake -C "${BUILD_DIR}" check
128 }
129 - python_foreach_impl testing
130 - unset GIO_USE_VFS
131 + virtx python_foreach_impl testing
132 }
133
134 src_install() {
135 - DOCS="AUTHORS ChangeLog* NEWS README"
136 -
137 python_foreach_impl run_in_build_dir gnome2_src_install
138
139 - if use examples; then
140 - insinto /usr/share/doc/${PF}
141 - doins -r examples
142 - fi
143 + dodoc -r examples
144 }
145
146 diff --git a/dev-python/pygobject/pygobject-9999.ebuild b/dev-python/pygobject/pygobject-9999.ebuild
147 index 9adddeb4..1faffe2b 100644
148 --- a/dev-python/pygobject/pygobject-9999.ebuild
149 +++ b/dev-python/pygobject/pygobject-9999.ebuild
150 @@ -1,11 +1,9 @@
151 # Copyright 1999-2018 Gentoo Foundation
152 # Distributed under the terms of the GNU General Public License v2
153
154 -EAPI="5"
155 -
156 -GCONF_DEBUG="no"
157 +EAPI=6
158 GNOME2_LA_PUNT="yes"
159 -PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
160 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
161
162 inherit eutils gnome2 python-r1 virtualx
163 if [[ ${PV} = 9999 ]]; then
164 @@ -20,9 +18,9 @@ SLOT="3"
165 if [[ ${PV} = 9999 ]]; then
166 KEYWORDS=""
167 else
168 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
169 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
170 fi
171 -IUSE="+cairo examples test +threads"
172 +IUSE="+cairo examples test"
173
174 REQUIRED_USE="
175 ${PYTHON_REQUIRED_USE}
176 @@ -31,10 +29,10 @@ REQUIRED_USE="
177
178 COMMON_DEPEND="${PYTHON_DEPS}
179 >=dev-libs/glib-2.38:2
180 - >=dev-libs/gobject-introspection-1.39:=
181 + >=dev-libs/gobject-introspection-1.46.0:=
182 virtual/libffi:=
183 cairo? (
184 - >=dev-python/pycairo-1.10.0[${PYTHON_USEDEP}]
185 + >=dev-python/pycairo-1.11.1[${PYTHON_USEDEP}]
186 x11-libs/cairo )
187 "
188 DEPEND="${COMMON_DEPEND}
189 @@ -45,10 +43,10 @@ DEPEND="${COMMON_DEPEND}
190 media-fonts/font-cursor-misc
191 media-fonts/font-misc-misc
192 x11-libs/cairo[glib]
193 - x11-libs/gdk-pixbuf:2[introspection]
194 + x11-libs/gdk-pixbuf:2[introspection,jpeg]
195 x11-libs/gtk+:3[introspection]
196 x11-libs/pango[introspection]
197 - !sparc? ( python_targets_python2_7? ( dev-python/pyflakes[$(python_gen_usedep python2_7)] ) ) )
198 + python_targets_python2_7? ( dev-python/pyflakes[$(python_gen_usedep python2_7)] ) )
199 "
200 # gnome-base/gnome-common required by eautoreconf
201
202 @@ -62,9 +60,6 @@ RDEPEND="${COMMON_DEPEND}
203 "
204
205 src_prepare() {
206 - # Comment out broken unittest
207 - epatch "${FILESDIR}"/${PN}-3.16.1-unittest.patch
208 -
209 gnome2_src_prepare
210 python_copy_sources
211 }
212 @@ -75,8 +70,7 @@ src_configure() {
213 # docs disabled by upstream default since they are very out of date
214 configuring() {
215 gnome2_src_configure \
216 - $(use_enable cairo) \
217 - $(use_enable threads thread)
218 + $(use_enable cairo)
219
220 # Pyflakes tests work only in python2, bug #516744
221 if use test && [[ ${EPYTHON} != python2.7 ]]; then
222 @@ -93,27 +87,19 @@ src_compile() {
223 }
224
225 src_test() {
226 - unset DBUS_SESSION_BUS_ADDRESS
227 - export GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs
228 - export GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484
229 - export SKIP_PEP8="yes"
230 + local -x GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs
231 + local -x GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484
232 + local -x SKIP_PEP8="yes"
233
234 testing() {
235 - export XDG_CACHE_HOME="${T}/${EPYTHON}"
236 - run_in_build_dir Xemake check
237 - unset XDG_CACHE_HOME
238 + local -x XDG_CACHE_HOME="${T}/${EPYTHON}"
239 + emake -C "${BUILD_DIR}" check
240 }
241 - python_foreach_impl testing
242 - unset GIO_USE_VFS
243 + virtx python_foreach_impl testing
244 }
245
246 src_install() {
247 - DOCS="AUTHORS ChangeLog* NEWS README"
248 -
249 python_foreach_impl run_in_build_dir gnome2_src_install
250
251 - if use examples; then
252 - insinto /usr/share/doc/${PF}
253 - doins -r examples
254 - fi
255 + dodoc -r examples
256 }