Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/wxpython/
Date: Wed, 03 May 2017 09:26:25
Message-Id: 1493803556.d3d4071c0c49fb92c43b1f4b65b8cf5428a636e3.mgorny@gentoo
1 commit: d3d4071c0c49fb92c43b1f4b65b8cf5428a636e3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 3 07:41:02 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 3 09:25:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3d4071c
7
8 dev-python/wxpython: Clean old versions up
9
10 dev-python/wxpython/Manifest | 4 -
11 dev-python/wxpython/wxpython-3.0.0.0.ebuild | 162 ----------------------------
12 dev-python/wxpython/wxpython-3.0.1.1.ebuild | 162 ----------------------------
13 3 files changed, 328 deletions(-)
14
15 diff --git a/dev-python/wxpython/Manifest b/dev-python/wxpython/Manifest
16 index 65b69ca2e91..d85b0ad02f5 100644
17 --- a/dev-python/wxpython/Manifest
18 +++ b/dev-python/wxpython/Manifest
19 @@ -1,10 +1,6 @@
20 DIST wxPython-demo-2.8.12.1.tar.bz2 3906851 SHA256 252282193a80590b9eab436bef322701b21d35ad03b4b6ebb4824241ff947b5a SHA512 aab71cf4e4fb6632afd4607cbe5cdef6785c4ed3f1c7f67d6cef5487d1caee2f7652bfd974ba95a6a03e8d7809c94e291aca00c2fdf74ea29e118e1e30c947d5 WHIRLPOOL e9eb0803350e3dac8c5f2228a3f4d54a26ae4c4307c924729bbdff712747419fdfaa155d83ef1bea7dcb849dbacf9f48c323bf7997ed1df85f182ba3878d1324
21 -DIST wxPython-demo-3.0.0.0.tar.bz2 3991989 SHA256 426aaf20c7b01f5e9fbd7bd41455441bb126585f5544a848a5fa060e07f7b443 SHA512 4fe8a87faacac99c54c4fcbdb707c9790b49f485186e1741cc1ba05e955e474ca4ea31ff704a57e73b32b4fad310ef490066743d1c6ad4339191cde2daec255d WHIRLPOOL c6a2b12111572164474083f66dd0e2eff12e4faea5ce880767bfba3de493e8d56e6747c659ff1a3d533d0f6bcde1d5c9daabb9bccb2148278cdce074f5ddcbae
22 -DIST wxPython-demo-3.0.1.1.tar.bz2 3991248 SHA256 bb264db3369c7228f0356f1ad64f6a9ca3000b167bc1ce3fee94d3d2fa20d069 SHA512 b75ca80b5a247f5c97691c4c77c36d64ebe82d94803cd8d687b2110e9de290067c7da893797ae13d0a9f42a4da83170b630dcdeb9460657355c43005dfeac89a WHIRLPOOL 3db15c676252f4f96b585271d0ef005b84cbb4538f01db53e18c587b33fdfc5b57da40d9ba2f2c467063de79c81ed6440982fe5e21547a21fbe2d7d4e252f69c
23 DIST wxPython-demo-3.0.2.0.tar.bz2 3992212 SHA256 8bf195138744898b4b6fbe11f52f7ee2f6319c2e3adf832917769b2e2d4994f3 SHA512 361ecaa7dfe5bae0757e04215c564370eaf8e5260ead45007f9d70439c15701725c3cbcd76691a5191258bef24fd200ebd61347a3fd920d888137bfc98a16702 WHIRLPOOL a944790a4c7b38dc8d8d28c7def50f765cd5566118d801cb576a0ab9d8370a803f8feedbf3211d0352dd838c92d9d4f092eaf6d78354a1974f2345304dd7b2e1
24 DIST wxPython-docs-2.8.12.1.tar.bz2 2331363 SHA256 1dfae3a74b91e2003856eed51698c51094f1a4e6688633ae61af7a22fa8a0ddb SHA512 88591ef4f61bcbac29050d7dfecc230f7338cc006e7c3abc072b15da478e4fd994ab73ee5d072cb8b84f9de62ce182f1774354b0a7a4502ea639e59fdf965358 WHIRLPOOL 97bc66c8f781b5092e2274edc0b9bac35c21c91a66e4c0da75d543dc471f25d02334b28a5afe4ad0681b7a018a93f08b6ef5d3c6afd127ccfc24da208252cd89
25 DIST wxPython-newdocs-2.8.9.2.tar.bz2 1503913 SHA256 890b6b7ca37ba7aaa27f9716ea9992ac75ed8150e83939506e3c47f86e7f37a8 SHA512 e114b2b44a7fd3ac292ca9735fb2e075459211384bc98d62ff2ba49e45111825101e74abd4af2ab0e5e52ede7b831641367c11a5c80e79f2da6ada3442463bfc WHIRLPOOL 91ccbe19e8311f0404fb0096efff68750fa0c3b505d05c9278e0488e138788dc399ff2345e13c712126475957a1c1fcc53556d70cd9c835524207be5758a6e2b
26 DIST wxPython-src-2.8.12.1.tar.bz2 31311482 SHA256 1f3f153d9f1504c6ce2d2c4b23e940b8f58b81f4cba35cda1a5bb31142243cd0 SHA512 4f826ccb57d5f4fc03fe7cae67499be70c727a99aebf9d153ea1060a21641642606d44d079ba897c38b176846336aeaebc21d30d5c7a0abec3934d65cf4529f3 WHIRLPOOL 94f91d359f755a0f805588303e8507b2f1404a7f4af73777f85366265df9f76ca89ac29bff491cffd752b707645952a4f7f2bb12fa7e30f3e7d3728147a9c99d
27 -DIST wxPython-src-3.0.0.0.tar.bz2 57831792 SHA256 af88695e820dd914e8375dc91ecb736f6fb605979bb38460ace61bbea494dc11 SHA512 9328f46817e0c1670a6be5d10347c8a7110c42a5332c5c35eb11ed0412d8dddeb15727d98606bb6c699af961cee171c41b82b1f24f3de25463259106660f7387 WHIRLPOOL 7865997e22db366a41bae8a5d5c47e4f46b20d17871377243abced3a6550c46588ea1d5a426d826ccf011c62898f87d6a55a14ac9b4153af4e0795d5f180a647
28 -DIST wxPython-src-3.0.1.1.tar.bz2 58139645 SHA256 d51463fe760e2fc00271678700c216809f9db32a6081a1808bd4b7c884dc0a32 SHA512 71f75c1e36c9ac27c15d768f69662b18ff1c66ad111ef6ef8579dfdb5296d7c37ffce9f60000afeac289cd6288980037d3a7eb3ea8d6d25e619d8692cf41b914 WHIRLPOOL bb03b78048b368b1c2f5a8b8689aecf412953ff789b2a8d2ef4826112fdc6bff8ed881255d05859ac07f915dd1070f6147d6bfdd97b0ab4b0939c024df3b855a
29 DIST wxPython-src-3.0.2.0.tar.bz2 58304944 SHA256 d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61 SHA512 a3798e89ff19344253aac7d771971e519f7fa9723e82bd97e98f16fd7f1572e513170b02295b872dae0b1ae3fa95efc4ef34d078045b839694b4fdad3a27c9e4 WHIRLPOOL 89cdef12c9ef96044adba0340d47b699e685eaec581a4e7d68f3b95a0890715e29b1f5362027df0f3f8b5b1587e8fe404a7fa88049ece9677dd8316fbdf2e41d
30
31 diff --git a/dev-python/wxpython/wxpython-3.0.0.0.ebuild b/dev-python/wxpython/wxpython-3.0.0.0.ebuild
32 deleted file mode 100644
33 index 9cab20f1aed..00000000000
34 --- a/dev-python/wxpython/wxpython-3.0.0.0.ebuild
35 +++ /dev/null
36 @@ -1,162 +0,0 @@
37 -# Copyright 1999-2015 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=5
41 -
42 -PYTHON_COMPAT=( python2_7 )
43 -WX_GTK_VER="3.0"
44 -
45 -inherit alternatives distutils-r1 eutils fdo-mime flag-o-matic wxwidgets
46 -
47 -MY_PN="wxPython-src"
48 -
49 -DESCRIPTION="A blending of the wxWindows C++ class library with Python"
50 -HOMEPAGE="http://www.wxpython.org/"
51 -SRC_URI="
52 - mirror://sourceforge/wxpython/${MY_PN}-${PV}.tar.bz2
53 - examples? ( mirror://sourceforge/wxpython/wxPython-demo-${PV}.tar.bz2 )"
54 -
55 -LICENSE="wxWinLL-3"
56 -SLOT="3.0"
57 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
58 -IUSE="cairo examples libnotify opengl"
59 -
60 -RDEPEND="
61 - dev-lang/python-exec:2[${PYTHON_USEDEP}]
62 - >=x11-libs/wxGTK-${PV}:${WX_GTK_VER}=[libnotify=,opengl?,tiff,X]
63 - dev-libs/glib:2
64 - dev-python/setuptools[${PYTHON_USEDEP}]
65 - media-libs/libpng:0=
66 - media-libs/tiff:0
67 - virtual/jpeg
68 - x11-libs/gtk+:2
69 - x11-libs/pango[X]
70 - cairo? ( >=dev-python/pycairo-1.8.4[${PYTHON_USEDEP}] )
71 - opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )"
72 -
73 -DEPEND="${RDEPEND}
74 - virtual/pkgconfig"
75 -
76 -S="${WORKDIR}/${MY_PN}-${PV}/wxPython"
77 -DOC_S="${WORKDIR}/wxPython-${PV}"
78 -
79 -# The hacky build system seems to be broken with out-of-source builds,
80 -# and installs 'wx' package globally.
81 -DISTUTILS_IN_SOURCE_BUILD=1
82 -
83 -python_prepare_all() {
84 - sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed"
85 -
86 - if use examples; then
87 - cd "${DOC_S}"
88 - epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch
89 - fi
90 -
91 - cd "${S}"
92 - local PATCHES=(
93 - "${FILESDIR}"/${P}-wxversion-scripts.patch
94 - # drop editra - we have it as a separate package now
95 - "${FILESDIR}"/${PN}-2.8.11-drop-editra.patch
96 - "${FILESDIR}"/${PN}-2.8-no-preservatives-added.patch
97 - # fix handling egg_info command
98 - "${FILESDIR}"/${PN}-2.8.12.1-disable-egging-mode.patch
99 - )
100 -
101 - distutils-r1_python_prepare_all
102 -}
103 -
104 -src_configure() {
105 - need-wxwidgets unicode
106 -
107 - mydistutilsargs=(
108 - WX_CONFIG="${WX_CONFIG}"
109 - WXPORT=gtk2
110 - UNICODE=1
111 - BUILD_GLCANVAS=$(usex opengl 1 0)
112 - )
113 -}
114 -
115 -python_compile() {
116 - # We need to have separate libdirs due to hackery, bug #455332.
117 - distutils-r1_python_compile \
118 - build --build-purelib "${BUILD_DIR}"/lib.common
119 -}
120 -
121 -python_install() {
122 - distutils-r1_python_install \
123 - build --build-purelib "${BUILD_DIR}"/lib.common
124 -
125 - # adjust the filenames for wxPython slots.
126 - local file
127 - for file in "${D}$(python_get_sitedir)"/wx{version.*,.pth}; do
128 - mv "${file}" "${file}-${SLOT}" || die
129 - done
130 - cd "${ED}"usr/lib/python-exec/"${EPYTHON}" || die
131 - for file in *; do
132 - mv "${file}" "${file}-${SLOT}" || die
133 -
134 - # wrappers are common to all impls, so a parallel run may
135 - # move it for us. ln+rm is more failure-proof.
136 - ln -fs ../lib/python-exec/python-exec2 "${ED}usr/bin/${file}-${SLOT}" || die
137 - rm -f "${ED}usr/bin/${file}"
138 - done
139 -}
140 -
141 -python_install_all() {
142 - dodoc docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt
143 -
144 - for x in {Py{AlaMode,Crust,Shell},XRCed}; do
145 - newmenu distrib/${x}.desktop ${x}-${SLOT}.desktop
146 - done
147 - newicon wx/py/PyCrust_32.png PyCrust-${SLOT}.png
148 - newicon wx/py/PySlices_32.png PySlices-${SLOT}.png
149 - newicon wx/tools/XRCed/XRCed_32.png XRCed-${SLOT}.png
150 -
151 - if use examples; then
152 - docinto demo
153 - dodoc -r "${DOC_S}"/demo/.
154 - docinto samples
155 - dodoc -r "${DOC_S}"/samples/.
156 -
157 - [[ -e ${docdir}/samples/embedded/embedded ]] \
158 - && rm -f "${docdir}"/samples/embedded/embedded
159 -
160 - docompress -x /usr/share/doc/${PF}/{demo,samples}
161 - fi
162 - distutils-r1_python_install_all
163 -}
164 -
165 -pkg_postinst() {
166 - fdo-mime_desktop_database_update
167 -
168 - create_symlinks() {
169 - alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
170 - alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
171 - }
172 - python_foreach_impl create_symlinks
173 -
174 - echo
175 - elog "Gentoo uses the Multi-version method for SLOT'ing."
176 - elog "Developers, see this site for instructions on using"
177 - elog "it with your apps:"
178 - elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls"
179 - if use examples; then
180 - echo
181 - elog "The demo.py app which contains demo modules with"
182 - elog "documentation and source code has been installed at"
183 - elog "/usr/share/doc/${PF}/demo/demo.py"
184 - echo
185 - elog "More example apps and modules can be found in"
186 - elog "/usr/share/doc/${PF}/samples/"
187 - fi
188 -}
189 -
190 -pkg_postrm() {
191 - fdo-mime_desktop_database_update
192 -
193 - update_symlinks() {
194 - alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
195 - alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
196 - }
197 - python_foreach_impl update_symlinks
198 -}
199
200 diff --git a/dev-python/wxpython/wxpython-3.0.1.1.ebuild b/dev-python/wxpython/wxpython-3.0.1.1.ebuild
201 deleted file mode 100644
202 index 24055578829..00000000000
203 --- a/dev-python/wxpython/wxpython-3.0.1.1.ebuild
204 +++ /dev/null
205 @@ -1,162 +0,0 @@
206 -# Copyright 1999-2015 Gentoo Foundation
207 -# Distributed under the terms of the GNU General Public License v2
208 -
209 -EAPI=5
210 -
211 -PYTHON_COMPAT=( python2_7 )
212 -WX_GTK_VER="3.0"
213 -
214 -inherit alternatives distutils-r1 eutils fdo-mime flag-o-matic wxwidgets
215 -
216 -MY_PN="wxPython-src"
217 -
218 -DESCRIPTION="A blending of the wxWindows C++ class library with Python"
219 -HOMEPAGE="http://www.wxpython.org/"
220 -SRC_URI="
221 - mirror://sourceforge/wxpython/${MY_PN}-${PV}.tar.bz2
222 - examples? ( mirror://sourceforge/wxpython/wxPython-demo-${PV}.tar.bz2 )"
223 -
224 -LICENSE="wxWinLL-3"
225 -SLOT="3.0"
226 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
227 -IUSE="cairo examples libnotify opengl"
228 -
229 -RDEPEND="
230 - dev-lang/python-exec:2[${PYTHON_USEDEP}]
231 - >=x11-libs/wxGTK-${PV}:${WX_GTK_VER}=[libnotify=,opengl?,tiff,X]
232 - dev-libs/glib:2
233 - dev-python/setuptools[${PYTHON_USEDEP}]
234 - media-libs/libpng:0=
235 - media-libs/tiff:0
236 - virtual/jpeg
237 - x11-libs/gtk+:2
238 - x11-libs/pango[X]
239 - cairo? ( >=dev-python/pycairo-1.8.4[${PYTHON_USEDEP}] )
240 - opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )"
241 -
242 -DEPEND="${RDEPEND}
243 - virtual/pkgconfig"
244 -
245 -S="${WORKDIR}/${MY_PN}-${PV}/wxPython"
246 -DOC_S="${WORKDIR}/wxPython-${PV}"
247 -
248 -# The hacky build system seems to be broken with out-of-source builds,
249 -# and installs 'wx' package globally.
250 -DISTUTILS_IN_SOURCE_BUILD=1
251 -
252 -python_prepare_all() {
253 - sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed"
254 -
255 - if use examples; then
256 - cd "${DOC_S}"
257 - epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch
258 - fi
259 -
260 - cd "${S}"
261 - local PATCHES=(
262 - "${FILESDIR}"/${PN}-3.0.0.0-wxversion-scripts.patch
263 - # drop editra - we have it as a separate package now
264 - "${FILESDIR}"/${PN}-2.8.11-drop-editra.patch
265 - "${FILESDIR}"/${PN}-2.8-no-preservatives-added.patch
266 - # fix handling egg_info command
267 - "${FILESDIR}"/${PN}-2.8.12.1-disable-egging-mode.patch
268 - )
269 -
270 - distutils-r1_python_prepare_all
271 -}
272 -
273 -src_configure() {
274 - need-wxwidgets unicode
275 -
276 - mydistutilsargs=(
277 - WX_CONFIG="${WX_CONFIG}"
278 - WXPORT=gtk2
279 - UNICODE=1
280 - BUILD_GLCANVAS=$(usex opengl 1 0)
281 - )
282 -}
283 -
284 -python_compile() {
285 - # We need to have separate libdirs due to hackery, bug #455332.
286 - distutils-r1_python_compile \
287 - build --build-purelib "${BUILD_DIR}"/lib.common
288 -}
289 -
290 -python_install() {
291 - distutils-r1_python_install \
292 - build --build-purelib "${BUILD_DIR}"/lib.common
293 -
294 - # adjust the filenames for wxPython slots.
295 - local file
296 - for file in "${D}$(python_get_sitedir)"/wx{version.*,.pth}; do
297 - mv "${file}" "${file}-${SLOT}" || die
298 - done
299 - cd "${ED}"usr/lib/python-exec/"${EPYTHON}" || die
300 - for file in *; do
301 - mv "${file}" "${file}-${SLOT}" || die
302 -
303 - # wrappers are common to all impls, so a parallel run may
304 - # move it for us. ln+rm is more failure-proof.
305 - ln -fs ../lib/python-exec/python-exec2 "${ED}usr/bin/${file}-${SLOT}" || die
306 - rm -f "${ED}usr/bin/${file}"
307 - done
308 -}
309 -
310 -python_install_all() {
311 - dodoc docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt
312 -
313 - for x in {Py{AlaMode,Crust,Shell},XRCed}; do
314 - newmenu distrib/${x}.desktop ${x}-${SLOT}.desktop
315 - done
316 - newicon wx/py/PyCrust_32.png PyCrust-${SLOT}.png
317 - newicon wx/py/PySlices_32.png PySlices-${SLOT}.png
318 - newicon wx/tools/XRCed/XRCed_32.png XRCed-${SLOT}.png
319 -
320 - if use examples; then
321 - docinto demo
322 - dodoc -r "${DOC_S}"/demo/.
323 - docinto samples
324 - dodoc -r "${DOC_S}"/samples/.
325 -
326 - [[ -e ${docdir}/samples/embedded/embedded ]] \
327 - && rm -f "${docdir}"/samples/embedded/embedded
328 -
329 - docompress -x /usr/share/doc/${PF}/{demo,samples}
330 - fi
331 - distutils-r1_python_install_all
332 -}
333 -
334 -pkg_postinst() {
335 - fdo-mime_desktop_database_update
336 -
337 - create_symlinks() {
338 - alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
339 - alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
340 - }
341 - python_foreach_impl create_symlinks
342 -
343 - echo
344 - elog "Gentoo uses the Multi-version method for SLOT'ing."
345 - elog "Developers, see this site for instructions on using"
346 - elog "it with your apps:"
347 - elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls"
348 - if use examples; then
349 - echo
350 - elog "The demo.py app which contains demo modules with"
351 - elog "documentation and source code has been installed at"
352 - elog "/usr/share/doc/${PF}/demo/demo.py"
353 - echo
354 - elog "More example apps and modules can be found in"
355 - elog "/usr/share/doc/${PF}/samples/"
356 - fi
357 -}
358 -
359 -pkg_postrm() {
360 - fdo-mime_desktop_database_update
361 -
362 - update_symlinks() {
363 - alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
364 - alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
365 - }
366 - python_foreach_impl update_symlinks
367 -}