diff options
Diffstat (limited to 'dev-python/wxpython')
-rw-r--r-- | dev-python/wxpython/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/wxpython/Manifest | 13 | ||||
-rw-r--r-- | dev-python/wxpython/wxpython-2.8.12.1-r1.ebuild | 182 | ||||
-rw-r--r-- | dev-python/wxpython/wxpython-2.9.4.1-r1.ebuild | 157 |
4 files changed, 356 insertions, 7 deletions
diff --git a/dev-python/wxpython/ChangeLog b/dev-python/wxpython/ChangeLog index 9d90ecd268c2..284b4c6e0375 100644 --- a/dev-python/wxpython/ChangeLog +++ b/dev-python/wxpython/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-python/wxpython -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.173 2012/09/05 09:36:33 jlec Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.174 2013/02/06 10:46:39 mgorny Exp $ + +*wxpython-2.9.4.1-r1 (06 Feb 2013) +*wxpython-2.8.12.1-r1 (06 Feb 2013) + + 06 Feb 2013; Michał Górny <mgorny@gentoo.org> +wxpython-2.8.12.1-r1.ebuild, + +wxpython-2.9.4.1-r1.ebuild: + Migrate to distutils-r1. Reviewed by Ryan Hill in bug #455332. 05 Sep 2012; Justin Lecher <jlec@gentoo.org> wxpython-2.8.12.1.ebuild, wxpython-2.9.3.1.ebuild, wxpython-2.9.4.1.ebuild: diff --git a/dev-python/wxpython/Manifest b/dev-python/wxpython/Manifest index ad59dcbd1edc..f802505dd008 100644 --- a/dev-python/wxpython/Manifest +++ b/dev-python/wxpython/Manifest @@ -18,16 +18,19 @@ DIST wxPython-src-2.8.12.1.tar.bz2 31311482 SHA256 1f3f153d9f1504c6ce2d2c4b23e94 DIST wxPython-src-2.9.3.1.tar.bz2 49131100 SHA256 7bae5bf45e98eba836472bdb358330f867c69de3a347860edd48fcb53690040d SHA512 16e5be3a2a98d64637866ecae7afb3a2835d21684077bb8a1b87d3c0cf37b75eb1169f3b8e16e38c5b85c04cce974dbfd5ba25d3d0a3016a47c005a05e5dbfc5 WHIRLPOOL ccae768ff87a95ee88d6259821be5e2073928278155743c0c16c75dd9b2262ac49ccb322dd4aa77ccfdac12d7de0e874a92b41171adacfa26ffb216f170751a7 DIST wxPython-src-2.9.4.0.tar.bz2 50827671 SHA256 78c35c19e85a17cb9c730b86b49d6a479198d76d19e0b13e86db0b55707004be SHA512 100dd4474bc2508e9a80aed6f08d295e2697926e29c5789e1f6aa7c303921e1c5de2574c3eddde568804da8fc670d0214ef225d46f34a3006d0a947423d01fbf WHIRLPOOL feff68600a40a8f02492e91049ecdd1a1865ee6db8024112aa3a85a7eff616f26653c418a8ffde77121e2bf7d2c7090c5b91896f9a2de8eb980573af2ca65507 DIST wxPython-src-2.9.4.1.patch 3768 SHA256 075e3a7b1cf69dd2bb20010717505d2508c74bc81658540f3e6d8c4fbf0a6b85 SHA512 4a5254a5bb9c246b75095e3cc0b849073e3cc71ff15ab7fb1db6ecfe71359800b9e1a5493bc39ce5b1f338cdc1d142ce84641611d458a8da4315f3c8a6aef3ba WHIRLPOOL 9bec06da4824fe56c172f4f417966681d1ffbf173dcb54f1579e9a484377bc76c45b4f2389911bbb17eff2476cfca786d68d9524856b21accc64b4dffafb1811 +EBUILD wxpython-2.8.12.1-r1.ebuild 5214 SHA256 ca98b9d0a4d218523152b9566fa429dd0ec35e62d9bc8b2bd67dad84ed02e263 SHA512 6c50900e9f379c855e9688b35f1c90324152b742c92ca2c1c50553afa2bcbb9073ffd11ea9b197e0a36b4ce112f0466bc05660d34f9a476c9ce67c82cff67239 WHIRLPOOL e2fa5db5d6b3d2a0440af0d6bab0ba20340cb8d17472b5502718ede08838cff866ce96a8f9d85d1cd01199ec8a88d9160dfb3c8fec85167575e6ccd494fb998d EBUILD wxpython-2.8.12.1.ebuild 5151 SHA256 36b7e6c3622539299e15bc5c4aa30a00dde859fc4e5b4ab754ecad0eedc0112e SHA512 e2b9c8ed35535b2ff66b62343b67a6fa814eea9c685549cfdfab02f83433b1905191b633a8f7507ed9d8e4820af99af39a80761816d10a11f96d06342d2d51af WHIRLPOOL 7b8893dcde348dc355f83fc8a347305c4b390e2f0b8272ea74e9c9a70efcef1ad054fe4aa329365986e7493df8a4b235b11d3d1359f3a531377a868851cbcf79 EBUILD wxpython-2.9.3.1.ebuild 4357 SHA256 376646a25640952cd34e65bba00dafa0f2135f852eab9eb74073ccb437124405 SHA512 8a59a4b070e23a3d2faad2e6ad8ff2ad9ef7b28a84450b03a2a2ee1a01ba04a48a14649e32e6ca960c46d5d73ac010b811f4d0897cba9619e6f2a0fc017ef05c WHIRLPOOL bc3b733221f1cd78e417b5a9aff491d2efc84a3a56bf983572ef9ab02a17f5e0cf7a48d020b3994f6577ce59da5d1f1d76bff5b0dcdd018b33ec1299833840a6 +EBUILD wxpython-2.9.4.1-r1.ebuild 4429 SHA256 591677ccb0c0315bd1a0e38cb3cbfc1a65425a61226e73d57844c37b3655b52b SHA512 c0736d53c09d8bd3f45496c625aa78a5f835a9a2099e871cac4ab0de367243ff92aa4883e91941732d15585fb44d45d64bfd191bf6dd49be53aeca93f0140ea0 WHIRLPOOL 11ada9a38567a719c1a50e302af211f0c2aaf5fff5049f275621d6a12d8ff7052c8f352453b47b8abedd21966ef17cc62905db23b32427a6d7c814605b226fcd EBUILD wxpython-2.9.4.1.ebuild 4344 SHA256 e885f7b2c67644a64d1d162394fc62f7305bcf5635e2b21222313e6ae4af3e1d SHA512 b3a104f03f65c83952299a60a1101f56c6f1aeb675811275fc57e5d4c4d4bcff8a6215742fb624473566e4d1382b2fd9f8d6baa7de580176ab9560921935b1a2 WHIRLPOOL 509f43cef7e41c00d1e0ec4a3c1d43b4eaf9903090671e128140502b3de1791417ec670496a17c31d52658b325739564942145959ac1d932cfd973b66a4642e1 -MISC ChangeLog 30799 SHA256 79083252749353e86dea00d908537d87c9a45119a0968ee8f4eb10f7f77f37e5 SHA512 81ffd2cd08d9a9cf6a0e66de6ec78abbbd9e7aa6db69faad310a3ff26fdeee7d26f0c1c3b70f8148fe4b14c032833b719b2bfcf3707b43563149b74af72ed039 WHIRLPOOL dca7cfbcb5915c23fa3975d1b9ed80261830b5bd5ba525f1fd44e675536b9806b86e84d49e3df012547b8ed46132088d9548950dfa167c979af13d04582e457a +MISC ChangeLog 31050 SHA256 9be7589a94ad96062c8216391b5c6f3aef476e07f685ebb3992464b5a143c8e8 SHA512 0da88713f6150794b6d0c980d5fa90e2eacac095536797ae8f2003d6d104a897cd14eb6ad007b895ecc24030dd7f08d32f550ab5af023d37a0afbd790ccd4ff6 WHIRLPOOL 0e734ade42ee415dbc0f03cf7552de2ad0c01d6ca24d6765d5363147b3fb588b47a335625c5733293e4d9cbbfa8ead219fb9ab2d33a0391693042ef7d6cd1baa MISC metadata.xml 366 SHA256 d90a8fa164deff1b8cfa28cf401483424addfceeca8cd35539b7f2bbb3280cff SHA512 260bafb8c2fba6a3d1b6c0dcb0fa4f1db5ccff7319395d9856997df816d3cfc69dc38859835eeafb693f22da6179e73227c87d820019793e639987085e596c6f WHIRLPOOL f8619bf36512bc3debe4fd4d810f5512485fe5f6041af2704898cef0123c9ba9512864763dc6fca78f400931a120b43f494e7384a567a79d42db507cd74b8062 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -Comment: GPGTools - http://gpgtools.org -iEYEAREIAAYFAlBHHScACgkQgAnW8HDreRZm9gCfdJmZGoKe+JHVvL7O2H0D6dc1 -zQcAmgKTDHus0wcW3xTsGdgIijbSRik8 -=ELHx +iJwEAQEIAAYFAlESNJYACgkQfXuS5UK5QB3G7AP/cOJ81z5UHc5EXmlbB14QG2WB +8jfigZDJS7nOPGAPZDLeID4bbM2YLlK9ZOsjNrPJEkGrZLERFKca8s1nuZCgZs46 +gamfzGmKchNev2Y90YppJV1Vi1q58/nKUje6Fxk6aVSpQtWTHh8iKcSkDPxg89jn +scL5KgycDKWB8qOmt4c= +=t5+a -----END PGP SIGNATURE----- diff --git a/dev-python/wxpython/wxpython-2.8.12.1-r1.ebuild b/dev-python/wxpython/wxpython-2.8.12.1-r1.ebuild new file mode 100644 index 000000000000..05036160c83d --- /dev/null +++ b/dev-python/wxpython/wxpython-2.8.12.1-r1.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.8.12.1-r1.ebuild,v 1.1 2013/02/06 10:46:39 mgorny Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) +WX_GTK_VER="2.8" + +inherit alternatives distutils-r1 eutils fdo-mime flag-o-matic wxwidgets + +MY_P="${P/wxpython-/wxPython-src-}" + +DESCRIPTION="A blending of the wxWindows C++ class library with Python" +HOMEPAGE="http://www.wxpython.org/" +SRC_URI="mirror://sourceforge/wxpython/${MY_P}.tar.bz2 + doc? ( mirror://sourceforge/wxpython/wxPython-docs-${PV}.tar.bz2 + mirror://sourceforge/wxpython/wxPython-newdocs-2.8.9.2.tar.bz2 ) + examples? ( mirror://sourceforge/wxpython/wxPython-demo-${PV}.tar.bz2 )" + +LICENSE="wxWinLL-3" +SLOT="2.8" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="cairo doc examples opengl" + +RDEPEND=" + >=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,X] + dev-libs/glib:2 + dev-python/setuptools[${PYTHON_USEDEP}] + media-libs/libpng:0 + media-libs/tiff:0 + virtual/jpeg + x11-libs/gtk+:2 + x11-libs/pango[X] + cairo? ( >=dev-python/pycairo-1.8.4[${PYTHON_USEDEP}] ) + opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}/wxPython" +DOC_S="${WORKDIR}/wxPython-${PV}" + +# The hacky build system seems to be broken with out-of-source builds, +# and installs 'wx' package globally. +DISTUTILS_IN_SOURCE_BUILD=1 + +python_prepare_all() { + sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed" + + if use doc; then + cd "${DOC_S}" || die + epatch "${FILESDIR}"/${PN}-${SLOT}-cache-writable.patch + fi + + if use examples; then + cd "${DOC_S}" || die + epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch + fi + + cd "${S}" || die + + local PATCHES=( + "${FILESDIR}"/${PN}-2.8.9-wxversion-scripts.patch + # drop editra - we have it as a separate package now + "${FILESDIR}"/${PN}-2.8.12-drop-editra.patch + ) + + distutils-r1_python_prepare_all +} + +python_configure_all() { + append-flags -fno-strict-aliasing + # Workaround, buildsystem uses CFLAGS as CXXFLAGS + export CFLAGS="${CXXFLAGS}" + need-wxwidgets unicode + + mydistutilsargs=( + WX_CONFIG="${WX_CONFIG}" + WXPORT=gtk2 + UNICODE=1 + BUILD_GLCANVAS=$(usex opengl 1 0) + ) +} + +python_install() { + distutils-r1_python_install + + # adjust the filenames for wxPython slots. + local file + for file in "${D}$(python_get_sitedir)"/wx{version.*,.pth}; do + mv "${file}" "${file}-${SLOT}" || die + done + cd "${ED}"usr/bin || die + for file in *-"${EPYTHON}"; do + local wrapper=${file%-${EPYTHON}} + + mv "${file}" "${file/-/-${SLOT}-}" || die + + # wrappers are common to all impls, so a parallel run may + # move it for us. ln+rm is more failure-proof. + ln -fs python-exec "${wrapper}-${SLOT}" || die + rm -f "${wrapper}" + done +} + +python_install_all() { + dodoc docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt + + domenu distrib/{Py{AlaMode,Crust,Shell},XRCed}.desktop + newicon wx/py/PyCrust_32.png PyCrust.png + newicon wx/tools/XRCed/XRCed_32.png XRCed.png + + docdir=${D}usr/share/doc/${PF} + + if use doc; then + docinto docs + dodoc -r "${DOC_S}"/docs/. + # For some reason newer API docs aren't available so use 2.8.9.2's + dodoc -r "${WORKDIR}"/wxPython-2.8.9.2/docs/. + + docompress -x /usr/share/doc/${PF}/docs + fi + + if use examples; then + docinto demo + dodoc -r "${DOC_S}"/demo/. + docinto samples + dodoc -r "${DOC_S}"/samples/. + + [[ -e ${docdir}/samples/embedded/embedded ]] \ + && rm -f "${docdir}"/samples/embedded/embedded + + docompress -x /usr/share/doc/${PF}/{demo,samples} + fi +} + +pkg_postinst() { + fdo-mime_desktop_database_update + + create_symlinks() { + alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]" + alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]" + } + python_foreach_impl create_symlinks + + echo + elog "Gentoo uses the Multi-version method for SLOT'ing." + elog "Developers, see this site for instructions on using" + elog "2.6 or 2.8 with your apps:" + elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls" + if use doc; then + elog + elog "To access the general wxWidgets documentation, run" + elog "/usr/share/doc/${PF}/docs/viewdocs.py" + elog + elog "wxPython documentation is available by pointing a browser" + elog "at /usr/share/doc/${PF}/docs/api/index.html" + fi + if use examples; then + elog + elog "The demo.py app which contains hundreds of demo modules" + elog "with documentation and source code has been installed at" + elog "/usr/share/doc/${PF}/demo/demo.py" + elog + elog "Many more example apps and modules can be found in" + elog "/usr/share/doc/${PF}/samples/" + fi + elog + elog "Editra is not packaged with wxpython in Gentoo." + elog "You can find it in the tree as app-editors/editra" +} + +pkg_postrm() { + fdo-mime_desktop_database_update + + update_symlinks() { + alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]" + alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]" + } + python_foreach_impl update_symlinks +} diff --git a/dev-python/wxpython/wxpython-2.9.4.1-r1.ebuild b/dev-python/wxpython/wxpython-2.9.4.1-r1.ebuild new file mode 100644 index 000000000000..023d9de725d2 --- /dev/null +++ b/dev-python/wxpython/wxpython-2.9.4.1-r1.ebuild @@ -0,0 +1,157 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-2.9.4.1-r1.ebuild,v 1.1 2013/02/06 10:46:39 mgorny Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) +WX_GTK_VER="2.9" + +inherit alternatives distutils-r1 eutils fdo-mime flag-o-matic wxwidgets + +MY_PN="wxPython-src" + +DESCRIPTION="A blending of the wxWindows C++ class library with Python" +HOMEPAGE="http://www.wxpython.org/" +SRC_URI="mirror://sourceforge/wxpython/${MY_PN}-2.9.4.0.tar.bz2 + examples? ( mirror://sourceforge/wxpython/wxPython-demo-2.9.4.0.tar.bz2 ) + mirror://sourceforge/wxpython/${MY_PN}-2.9.4.1.patch" + +LICENSE="wxWinLL-3" +SLOT="2.9" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="cairo examples opengl" + +RDEPEND=" + >=x11-libs/wxGTK-${PV}:${WX_GTK_VER}[opengl?,tiff,X] + dev-libs/glib:2 + dev-python/setuptools[${PYTHON_USEDEP}] + media-libs/libpng:0 + media-libs/tiff:0 + virtual/jpeg + x11-libs/gtk+:2 + x11-libs/pango[X] + cairo? ( >=dev-python/pycairo-1.8.4[${PYTHON_USEDEP}] ) + opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${MY_PN}-2.9.4.0/wxPython" +DOC_S="${WORKDIR}/wxPython-2.9.4.0" + +# The hacky build system seems to be broken with out-of-source builds, +# and installs 'wx' package globally. +DISTUTILS_IN_SOURCE_BUILD=1 + +python_prepare_all() { + sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed" + + cd .. || die + epatch "${DISTDIR}"/${MY_PN}-${PV}.patch + + if use examples; then + cd "${DOC_S}" + epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch + fi + + cd "${S}" || die + local PATCHES=( + "${FILESDIR}"/${P}-wxversion-scripts.patch + # drop editra - we have it as a separate package now + "${FILESDIR}"/${PN}-2.8.11-drop-editra.patch + ) + + distutils-r1_python_prepare_all +} + +src_configure() { + append-flags -fno-strict-aliasing + need-wxwidgets unicode + + mydistutilsargs=( + WX_CONFIG="${WX_CONFIG}" + WXPORT=gtk2 + UNICODE=1 + BUILD_GLCANVAS=$(usex opengl 1 0) + ) +} + +python_install() { + distutils-r1_python_install + + # adjust the filenames for wxPython slots. + local file + for file in "${D}$(python_get_sitedir)"/wx{version.*,.pth}; do + mv "${file}" "${file}-${SLOT}" || die + done + cd "${ED}"usr/bin || die + for file in *-"${EPYTHON}"; do + local wrapper=${file%-${EPYTHON}} + + mv "${file}" "${file/-/-${SLOT}-}" || die + + # wrappers are common to all impls, so a parallel run may + # move it for us. ln+rm is more failure-proof. + ln -fs python-exec "${wrapper}-${SLOT}" || die + rm -f "${wrapper}" + done +} + +python_install_all() { + dodoc docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt + + for x in {Py{AlaMode,Crust,Shell},XRCed}; do + newmenu distrib/${x}.desktop ${x}-${SLOT}.desktop + done + newicon wx/py/PyCrust_32.png PyCrust-${SLOT}.png + newicon wx/py/PySlices_32.png PySlices-${SLOT}.png + newicon wx/tools/XRCed/XRCed_32.png XRCed-${SLOT}.png + + if use examples; then + docinto demo + dodoc -r "${DOC_S}"/demo/. + docinto samples + dodoc -r "${DOC_S}"/samples/. + + [[ -e ${docdir}/samples/embedded/embedded ]] \ + && rm -f "${docdir}"/samples/embedded/embedded + + docompress -x /usr/share/doc/${PF}/{demo,samples} + fi +} + +pkg_postinst() { + fdo-mime_desktop_database_update + + create_symlinks() { + alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]" + alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]" + } + python_foreach_impl create_symlinks + + echo + elog "Gentoo uses the Multi-version method for SLOT'ing." + elog "Developers, see this site for instructions on using" + elog "2.8 or 2.9 with your apps:" + elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls" + if use examples; then + elog + elog "The demo.py app which contains demo modules with" + elog "documentation and source code has been installed at" + elog "/usr/share/doc/${PF}/demo/demo.py" + elog + elog "More example apps and modules can be found in" + elog "/usr/share/doc/${PF}/samples/" + fi +} + +pkg_postrm() { + fdo-mime_desktop_database_update + + update_symlinks() { + alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]" + alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]" + } + python_foreach_impl update_symlinks +} |