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/, dev-python/wxpython/files/
Date: Fri, 25 Sep 2020 20:22:34
Message-Id: 1601065309.e0b6c15bfcbb7b81d050c851119d25afbd6cc4b1.mgorny@gentoo
1 commit: e0b6c15bfcbb7b81d050c851119d25afbd6cc4b1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 20:18:27 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 20:21:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0b6c15b
7
8 dev-python/wxpython: Remove old (py2.7)
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/wxpython/Manifest | 2 -
13 .../wxpython-2.8-no-preservatives-added.patch | 16 --
14 .../files/wxpython-2.8.11-drop-editra.patch | 48 -----
15 .../wxpython-2.8.12.1-disable-egging-mode.patch | 34 ----
16 .../files/wxpython-3.0-wxversion-demo.patch | 10 -
17 .../files/wxpython-3.0.0.0-wxversion-scripts.patch | 211 ---------------------
18 dev-python/wxpython/metadata.xml | 3 -
19 dev-python/wxpython/wxpython-3.0.2.0.ebuild | 162 ----------------
20 8 files changed, 486 deletions(-)
21
22 diff --git a/dev-python/wxpython/Manifest b/dev-python/wxpython/Manifest
23 index c4e1500ef0a..c68723eb916 100644
24 --- a/dev-python/wxpython/Manifest
25 +++ b/dev-python/wxpython/Manifest
26 @@ -1,3 +1 @@
27 DIST wxPython-4.0.7.post2.tar.gz 68891167 BLAKE2B 77eb69f7a59e5be81c3d17b64c76e09a43efc9226bd87fd058483185871a95ce05dbb65614ec8b003edf52cbe1cb1a115856c0d622170c51ecacbb952106fe22 SHA512 7af89db90a0f7e6b644d61c1ede01ec36a2c295e46d44692ae9dbc4af923310c1b498a52f45b02a89e8917d844c6abe67e5f3fdd9c1d51da3312899319a349e4
28 -DIST wxPython-demo-3.0.2.0.tar.bz2 3992212 BLAKE2B 9defe133e3863be5ae07b7adb4bcb94688487e9dd9f5ab1f768d2f5942f30d05ff678f1ba74241d9bafde3584e3c68ffeae4978117aaa300e23165140e6a6d44 SHA512 361ecaa7dfe5bae0757e04215c564370eaf8e5260ead45007f9d70439c15701725c3cbcd76691a5191258bef24fd200ebd61347a3fd920d888137bfc98a16702
29 -DIST wxPython-src-3.0.2.0.tar.bz2 58304944 BLAKE2B 1144acf2cfa0a18aa2f90aabe81aaeca54d3fe6139818267dbc031accbae38035478a64ec084fe8bb8b89126fb70ff96e68981026df8ad3fc82e81c6d0e22d1a SHA512 a3798e89ff19344253aac7d771971e519f7fa9723e82bd97e98f16fd7f1572e513170b02295b872dae0b1ae3fa95efc4ef34d078045b839694b4fdad3a27c9e4
30
31 diff --git a/dev-python/wxpython/files/wxpython-2.8-no-preservatives-added.patch b/dev-python/wxpython/files/wxpython-2.8-no-preservatives-added.patch
32 deleted file mode 100644
33 index 5e4221d5150..00000000000
34 --- a/dev-python/wxpython/files/wxpython-2.8-no-preservatives-added.patch
35 +++ /dev/null
36 @@ -1,16 +0,0 @@
37 -Portage preserve-libs removes the linker name (.so) of a library but leaves
38 -the soname (.so.4) and realname (.so.4.0) installed. findLib searches for
39 -mywxlibname.* and returns true if anything is found. Disaster ensues.
40 -
41 -
42 ---- a/wxPython/config.py
43 -+++ b/wxPython/config.py
44 -@@ -612,7 +612,7 @@ def findLib(name, libdirs):
45 - dirs = libdirs[:]
46 - for d in dirs:
47 - p = os.path.join(d, name)
48 -- if glob.glob(p+'*') != []:
49 -+ if glob.glob(p+'*.so') != []:
50 - return True
51 - return False
52 -
53
54 diff --git a/dev-python/wxpython/files/wxpython-2.8.11-drop-editra.patch b/dev-python/wxpython/files/wxpython-2.8.11-drop-editra.patch
55 deleted file mode 100644
56 index 9555bb57ef4..00000000000
57 --- a/dev-python/wxpython/files/wxpython-2.8.11-drop-editra.patch
58 +++ /dev/null
59 @@ -1,48 +0,0 @@
60 ---- a/wxPython/setup.py
61 -+++ b/wxPython/setup.py
62 -@@ -887,13 +887,6 @@ WX_PKGLIST = [ 'wx',
63 - 'wx.tools',
64 - 'wx.tools.XRCed',
65 - 'wx.tools.XRCed.plugins',
66 -- 'wx.tools.Editra',
67 -- 'wx.tools.Editra.src',
68 -- 'wx.tools.Editra.src.autocomp',
69 -- 'wx.tools.Editra.src.eclib',
70 -- 'wx.tools.Editra.src.ebmlib',
71 -- 'wx.tools.Editra.src.extern',
72 -- 'wx.tools.Editra.src.syntax',
73 - ]
74 -
75 - if not EGGing:
76 -@@ -920,7 +913,6 @@ else:
77 - opj('scripts/pywrap'),
78 - opj('scripts/pywxrc'),
79 - opj('scripts/xrced'),
80 -- opj('scripts/editra'),
81 - ]
82 - if os.name == 'nt':
83 - SCRIPTS.append( opj('scripts/genaxmodule') )
84 -@@ -934,15 +926,6 @@ DATA_FILES += find_data_files('wx/tools/XRCed', '*.txt', '*.xrc', '*.htb')
85 - DATA_FILES += find_data_files('wx/tools/XRCed/plugins', '*.crx')
86 - DATA_FILES += find_data_files('wx/tools/XRCed/plugins/bitmaps', '*.png')
87 -
88 --DATA_FILES += find_data_files('wx/tools/Editra/docs', '*.txt')
89 --DATA_FILES += find_data_files('wx/tools/Editra/locale', '*.mo')
90 --DATA_FILES += find_data_files('wx/tools/Editra/pixmaps',
91 -- '*.png', '*.icns', '*.ico', 'README', 'AUTHORS', 'COPYING')
92 --DATA_FILES += find_data_files('wx/tools/Editra/plugins', '*.egg')
93 --DATA_FILES += find_data_files('wx/tools/Editra/src', 'README')
94 --DATA_FILES += find_data_files('wx/tools/Editra/styles', '*.ess')
95 --DATA_FILES += find_data_files('wx/tools/Editra/tests/syntax', '*')
96 --DATA_FILES += find_data_files('wx/tools/Editra', '[A-Z]*', recursive=False)
97 -
98 -
99 - ## import pprint
100 -@@ -993,7 +976,6 @@ if EGGing:
101 - 'pyshell = wx.py.PyShell:main',
102 - 'pywrap = wx.py.PyWrap:main',
103 - 'helpviewer = wx.tools.helpviewer:main',
104 -- 'editra = wx.tools.Editra.launcher:main',
105 - 'xrced = wx.tools.XRCed.xrced:main',
106 - ],
107 - },
108
109 diff --git a/dev-python/wxpython/files/wxpython-2.8.12.1-disable-egging-mode.patch b/dev-python/wxpython/files/wxpython-2.8.12.1-disable-egging-mode.patch
110 deleted file mode 100644
111 index 1497a2c7076..00000000000
112 --- a/dev-python/wxpython/files/wxpython-2.8.12.1-disable-egging-mode.patch
113 +++ /dev/null
114 @@ -1,34 +0,0 @@
115 -From c4072ed7bc923039e544319f52d0761b7a4600a4 Mon Sep 17 00:00:00 2001
116 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
117 -Date: Mon, 22 Apr 2013 18:02:37 +0200
118 -Subject: [PATCH] Trigger 'EGGing' mode only by 'bdist_egg' and not 'egg_info'.
119 -
120 -We use the 'egg_info' command to explicitly enforce temporary EGG file
121 -location outside the source tree on Gentoo. As a result, our build
122 -command activates the 'EGGing' mode and wxPython is not installed
123 -properly.
124 -
125 -I believe that the 'EGGing' mode should be activated only by an explicit
126 -call to 'bdist_egg' command where the expected files are actually
127 -created. The 'egg_info' command is a more broad one and is often used
128 -implicitly, e.g. by the 'install' command.
129 ----
130 - config.py | 2 +-
131 - 1 file changed, 1 insertion(+), 1 deletion(-)
132 -
133 -diff --git a/config.py b/config.py
134 -index 4fbd83f..b45707d 100644
135 ---- a/config.py
136 -+++ b/config.py
137 -@@ -23,7 +23,7 @@
138 - import sys, os, glob, fnmatch, tempfile
139 - import subprocess
140 -
141 --EGGing = 'bdist_egg' in sys.argv or 'egg_info' in sys.argv
142 -+EGGing = 'bdist_egg' in sys.argv
143 - if not EGGing:
144 - from distutils.core import setup, Extension
145 - else:
146 ---
147 -1.8.1.5
148 -
149
150 diff --git a/dev-python/wxpython/files/wxpython-3.0-wxversion-demo.patch b/dev-python/wxpython/files/wxpython-3.0-wxversion-demo.patch
151 deleted file mode 100644
152 index a4f6b0b07a3..00000000000
153 --- a/dev-python/wxpython/files/wxpython-3.0-wxversion-demo.patch
154 +++ /dev/null
155 @@ -1,10 +0,0 @@
156 ---- demo/demo.org
157 -+++ demo/demo.py
158 -@@ -1,4 +1,7 @@
159 - #!/usr/bin/env python
160 -
161 -+import wxversion
162 -+wxversion.select("3.0")
163 -+
164 - import Main
165 - Main.main()
166
167 diff --git a/dev-python/wxpython/files/wxpython-3.0.0.0-wxversion-scripts.patch b/dev-python/wxpython/files/wxpython-3.0.0.0-wxversion-scripts.patch
168 deleted file mode 100644
169 index 9f0cb892226..00000000000
170 --- a/dev-python/wxpython/files/wxpython-3.0.0.0-wxversion-scripts.patch
171 +++ /dev/null
172 @@ -1,211 +0,0 @@
173 ---- a/distrib/PyAlaMode.desktop
174 -+++ b/distrib/PyAlaMode.desktop
175 -@@ -1,8 +1,8 @@
176 - [Desktop Entry]
177 --Name=PyAlaMode
178 -+Name=PyAlaMode (3.0)
179 - Comment=GUI Python Shell with Filling and editor windows
180 --Exec=pyalamode
181 --Icon=PyCrust
182 -+Exec=pyalamode-3.0
183 -+Icon=PyCrust-3.0
184 - Terminal=false
185 - Type=Application
186 - Categories=Development;
187 ---- a/distrib/PyCrust.desktop
188 -+++ b/distrib/PyCrust.desktop
189 -@@ -1,8 +1,8 @@
190 - [Desktop Entry]
191 --Name=PyCrust
192 -+Name=PyCrust (3.0)
193 - Comment=GUI Python Shell with Filling
194 --Exec=pycrust
195 --Icon=PyCrust
196 -+Exec=pycrust-3.0
197 -+Icon=PyCrust-3.0
198 - Terminal=false
199 - Type=Application
200 - Categories=Development;
201 ---- a/distrib/PyShell.desktop
202 -+++ b/distrib/PyShell.desktop
203 -@@ -1,8 +1,8 @@
204 - [Desktop Entry]
205 --Name=PyShell
206 -+Name=PyShell (3.0)
207 - Comment=GUI Python Shell
208 --Exec=pyshell
209 --Icon=PyCrust
210 -+Exec=pyshell-3.0
211 -+Icon=PyCrust-3.0
212 - Terminal=false
213 - Type=Application
214 - Categories=Development;
215 ---- a/distrib/PySlices.desktop
216 -+++ b/distrib/PySlices.desktop
217 -@@ -1,8 +1,8 @@
218 - [Desktop Entry]
219 --Name=PySlices
220 -+Name=PySlices (3.0)
221 - Comment=GUI Python Shell with Filling
222 --Exec=pyslices
223 --Icon=PySlices
224 -+Exec=pyslices-3.0
225 -+Icon=PySlices-3.0
226 - Terminal=false
227 - Type=Application
228 - Categories=Development;
229 ---- a/distrib/PySlicesShell.desktop
230 -+++ b/distrib/PySlicesShell.desktop
231 -@@ -1,9 +1,8 @@
232 --
233 - [Desktop Entry]
234 --Name=PySlicesShell
235 -+Name=PySlicesShell (3.0)
236 - Comment=GUI Python Shell
237 --Exec=pysliceshell
238 --Icon=PySlices
239 -+Exec=pysliceshell-3.0
240 -+Icon=PySlices-3.0
241 - Terminal=false
242 - Type=Application
243 - Categories=Development;
244 ---- a/distrib/XRCed.desktop
245 -+++ b/distrib/XRCed.desktop
246 -@@ -1,8 +1,8 @@
247 - [Desktop Entry]
248 --Name=XRCed
249 -+Name=XRCed (3.0)
250 - Comment=wxPython XRC resource editor
251 --Exec=xrced
252 --Icon=XRCed
253 -+Exec=xrced-3.0
254 -+Icon=XRCed-3.0
255 - Terminal=false
256 - Type=Application
257 - Categories=Development;
258 ---- a/scripts/genaxmodule
259 -+++ b/scripts/genaxmodule
260 -@@ -1,4 +1,6 @@
261 - #!/usr/bin/env python
262 -+import wxversion
263 -+wxversion.select("3.0")
264 -
265 - from wx.tools.genaxmodule import main
266 - main()
267 ---- a/scripts/helpviewer
268 -+++ b/scripts/helpviewer
269 -@@ -1,4 +1,6 @@
270 - #!/usr/bin/env python
271 -+import wxversion
272 -+wxversion.select("3.0")
273 -
274 - from wx.tools.helpviewer import main
275 - main()
276 ---- a/scripts/img2png
277 -+++ b/scripts/img2png
278 -@@ -1,4 +1,6 @@
279 - #!/usr/bin/env python
280 -+import wxversion
281 -+wxversion.select("3.0")
282 -
283 - from wx.tools.img2png import main
284 - main()
285 ---- a/scripts/img2py
286 -+++ b/scripts/img2py
287 -@@ -1,4 +1,6 @@
288 - #!/usr/bin/env python
289 -+import wxversion
290 -+wxversion.select("3.0")
291 -
292 - from wx.tools.img2py import main
293 - main()
294 ---- a/scripts/img2xpm
295 -+++ b/scripts/img2xpm
296 -@@ -1,4 +1,6 @@
297 - #!/usr/bin/env python
298 -+import wxversion
299 -+wxversion.select("3.0")
300 -
301 - from wx.tools.img2xpm import main
302 - main()
303 ---- a/scripts/pyalacarte
304 -+++ b/scripts/pyalacarte
305 -@@ -1,4 +1,6 @@
306 - #!/usr/bin/env python
307 -+import wxversion
308 -+wxversion.select("3.0")
309 -
310 - from wx.py.PyAlaCarte import main
311 - main()
312 ---- a/scripts/pyalamode
313 -+++ b/scripts/pyalamode
314 -@@ -1,4 +1,6 @@
315 - #!/usr/bin/env python
316 -+import wxversion
317 -+wxversion.select("3.0")
318 -
319 - from wx.py.PyAlaMode import main
320 - main()
321 ---- a/scripts/pycrust
322 -+++ b/scripts/pycrust
323 -@@ -1,4 +1,6 @@
324 - #!/usr/bin/env python
325 -+import wxversion
326 -+wxversion.select("3.0")
327 -
328 - from wx.py.PyCrust import main
329 - main()
330 ---- a/scripts/pyshell
331 -+++ b/scripts/pyshell
332 -@@ -1,4 +1,6 @@
333 - #!/usr/bin/env python
334 -+import wxversion
335 -+wxversion.select("3.0")
336 -
337 - from wx.py.PyShell import main
338 - main()
339 ---- a/scripts/pyslices
340 -+++ b/scripts/pyslices
341 -@@ -1,4 +1,6 @@
342 - #!/usr/bin/env python
343 -+import wxversion
344 -+wxversion.select("3.0")
345 -
346 - from wx.py.PySlices import main
347 - main()
348 ---- a/scripts/pysliceshell
349 -+++ b/scripts/pysliceshell
350 -@@ -1,4 +1,6 @@
351 - #!/usr/bin/env python
352 -+import wxversion
353 -+wxversion.select("3.0")
354 -
355 - from wx.py.PySlicesShell import main
356 - main()
357 ---- a/scripts/pywrap
358 -+++ b/scripts/pywrap
359 -@@ -1,4 +1,6 @@
360 - #!/usr/bin/env python
361 -+import wxversion
362 -+wxversion.select("3.0")
363 -
364 - from wx.py.PyWrap import main
365 - main()
366 ---- a/scripts/pywxrc
367 -+++ b/scripts/pywxrc
368 -@@ -1,4 +1,6 @@
369 - #!/usr/bin/env python
370 -+import wxversion
371 -+wxversion.select("3.0")
372 -
373 - from wx.tools.pywxrc import main
374 - main()
375 ---- a/scripts/xrced
376 -+++ b/scripts/xrced
377 -@@ -1,4 +1,6 @@
378 - #!/usr/bin/env python
379 -+import wxversion
380 -+wxversion.select("3.0")
381 -
382 - from wx.tools.XRCed.xrced import main
383 - main()
384
385 diff --git a/dev-python/wxpython/metadata.xml b/dev-python/wxpython/metadata.xml
386 index f0783659f22..0796b4162e0 100644
387 --- a/dev-python/wxpython/metadata.xml
388 +++ b/dev-python/wxpython/metadata.xml
389 @@ -9,9 +9,6 @@
390 <email>python@g.o</email>
391 <name>Python</name>
392 </maintainer>
393 - <use>
394 - <flag name="examples">Install interactive demo module browser and sample applets.</flag>
395 - </use>
396 <upstream>
397 <remote-id type="github">wxWidgets/Phoenix</remote-id>
398 </upstream>
399
400 diff --git a/dev-python/wxpython/wxpython-3.0.2.0.ebuild b/dev-python/wxpython/wxpython-3.0.2.0.ebuild
401 deleted file mode 100644
402 index afaf8aa1491..00000000000
403 --- a/dev-python/wxpython/wxpython-3.0.2.0.ebuild
404 +++ /dev/null
405 @@ -1,162 +0,0 @@
406 -# Copyright 1999-2020 Gentoo Authors
407 -# Distributed under the terms of the GNU General Public License v2
408 -
409 -EAPI=5
410 -
411 -PYTHON_COMPAT=( python2_7 )
412 -WX_GTK_VER="3.0"
413 -
414 -inherit alternatives distutils-r1 eutils fdo-mime flag-o-matic wxwidgets
415 -
416 -MY_PN="wxPython-src"
417 -
418 -DESCRIPTION="A blending of the wxWindows C++ class library with Python"
419 -HOMEPAGE="http://www.wxpython.org/"
420 -SRC_URI="
421 - mirror://sourceforge/wxpython/${MY_PN}-${PV}.tar.bz2
422 - examples? ( mirror://sourceforge/wxpython/wxPython-demo-${PV}.tar.bz2 )"
423 -
424 -LICENSE="wxWinLL-3"
425 -SLOT="3.0"
426 -KEYWORDS="~alpha amd64 arm arm64 ppc ppc64 ~sparc x86"
427 -IUSE="cairo examples libnotify opengl"
428 -
429 -RDEPEND="
430 - dev-lang/python-exec:2[${PYTHON_USEDEP}]
431 - >=x11-libs/wxGTK-${PV}:${WX_GTK_VER}=[libnotify=,opengl?,tiff,X]
432 - dev-libs/glib:2
433 - dev-python/setuptools[${PYTHON_USEDEP}]
434 - media-libs/libpng:0=
435 - media-libs/tiff:0
436 - virtual/jpeg
437 - x11-libs/gtk+:2
438 - x11-libs/pango[X]
439 - cairo? ( >=dev-python/pycairo-1.8.4[${PYTHON_USEDEP}] )
440 - opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )"
441 -
442 -DEPEND="${RDEPEND}
443 - virtual/pkgconfig"
444 -
445 -S="${WORKDIR}/${MY_PN}-${PV}/wxPython"
446 -DOC_S="${WORKDIR}/wxPython-${PV}"
447 -
448 -# The hacky build system seems to be broken with out-of-source builds,
449 -# and installs 'wx' package globally.
450 -DISTUTILS_IN_SOURCE_BUILD=1
451 -
452 -python_prepare_all() {
453 - sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed"
454 -
455 - if use examples; then
456 - cd "${DOC_S}"
457 - epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch
458 - fi
459 -
460 - cd "${S}"
461 - local PATCHES=(
462 - "${FILESDIR}"/${PN}-3.0.0.0-wxversion-scripts.patch
463 - # drop editra - we have it as a separate package now
464 - "${FILESDIR}"/${PN}-2.8.11-drop-editra.patch
465 - "${FILESDIR}"/${PN}-2.8-no-preservatives-added.patch
466 - # fix handling egg_info command
467 - "${FILESDIR}"/${PN}-2.8.12.1-disable-egging-mode.patch
468 - )
469 -
470 - distutils-r1_python_prepare_all
471 -}
472 -
473 -src_configure() {
474 - need-wxwidgets unicode
475 -
476 - mydistutilsargs=(
477 - WX_CONFIG="${WX_CONFIG}"
478 - WXPORT=gtk2
479 - UNICODE=1
480 - BUILD_GLCANVAS=$(usex opengl 1 0)
481 - )
482 -}
483 -
484 -python_compile() {
485 - # We need to have separate libdirs due to hackery, bug #455332.
486 - distutils-r1_python_compile \
487 - build --build-purelib "${BUILD_DIR}"/lib.common
488 -}
489 -
490 -python_install() {
491 - distutils-r1_python_install \
492 - build --build-purelib "${BUILD_DIR}"/lib.common
493 -
494 - # adjust the filenames for wxPython slots.
495 - local file
496 - for file in "${D}$(python_get_sitedir)"/wx{version.*,.pth}; do
497 - mv "${file}" "${file}-${SLOT}" || die
498 - done
499 - cd "${ED}"usr/lib/python-exec/"${EPYTHON}" || die
500 - for file in *; do
501 - mv "${file}" "${file}-${SLOT}" || die
502 -
503 - # wrappers are common to all impls, so a parallel run may
504 - # move it for us. ln+rm is more failure-proof.
505 - ln -fs ../lib/python-exec/python-exec2 "${ED}usr/bin/${file}-${SLOT}" || die
506 - rm -f "${ED}usr/bin/${file}"
507 - done
508 -}
509 -
510 -python_install_all() {
511 - dodoc docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt
512 -
513 - for x in {Py{AlaMode,Crust,Shell},XRCed}; do
514 - newmenu distrib/${x}.desktop ${x}-${SLOT}.desktop
515 - done
516 - newicon wx/py/PyCrust_32.png PyCrust-${SLOT}.png
517 - newicon wx/py/PySlices_32.png PySlices-${SLOT}.png
518 - newicon wx/tools/XRCed/XRCed_32.png XRCed-${SLOT}.png
519 -
520 - if use examples; then
521 - docinto demo
522 - dodoc -r "${DOC_S}"/demo/.
523 - docinto samples
524 - dodoc -r "${DOC_S}"/samples/.
525 -
526 - [[ -e ${docdir}/samples/embedded/embedded ]] \
527 - && rm -f "${docdir}"/samples/embedded/embedded
528 -
529 - docompress -x /usr/share/doc/${PF}/{demo,samples}
530 - fi
531 - distutils-r1_python_install_all
532 -}
533 -
534 -pkg_postinst() {
535 - fdo-mime_desktop_database_update
536 -
537 - create_symlinks() {
538 - alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
539 - alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
540 - }
541 - python_foreach_impl create_symlinks
542 -
543 - echo
544 - elog "Gentoo uses the Multi-version method for SLOT'ing."
545 - elog "Developers, see this site for instructions on using"
546 - elog "it with your apps:"
547 - elog "http://wiki.wxpython.org/MultiVersionInstalls"
548 - if use examples; then
549 - echo
550 - elog "The demo.py app which contains demo modules with"
551 - elog "documentation and source code has been installed at"
552 - elog "/usr/share/doc/${PF}/demo/demo.py"
553 - echo
554 - elog "More example apps and modules can be found in"
555 - elog "/usr/share/doc/${PF}/samples/"
556 - fi
557 -}
558 -
559 -pkg_postrm() {
560 - fdo-mime_desktop_database_update
561 -
562 - update_symlinks() {
563 - alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
564 - alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
565 - }
566 - python_foreach_impl update_symlinks
567 -}