diff options
-rw-r--r-- | dev-python/wxpython/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/wxpython/Manifest | 12 | ||||
-rw-r--r-- | dev-python/wxpython/wxpython-2.8.12.1.ebuild | 187 |
3 files changed, 201 insertions, 5 deletions
diff --git a/dev-python/wxpython/ChangeLog b/dev-python/wxpython/ChangeLog index cefd6dd88129..5b112e366335 100644 --- a/dev-python/wxpython/ChangeLog +++ b/dev-python/wxpython/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/wxpython # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.151 2011/12/09 03:29:30 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/ChangeLog,v 1.152 2011/12/09 05:04:54 dirtyepic Exp $ + +*wxpython-2.8.12.1 (09 Dec 2011) + + 09 Dec 2011; Ryan Hill <dirtyepic@gentoo.org> +wxpython-2.8.12.1.ebuild: + Version bump. 09 Dec 2011; Ryan Hill <dirtyepic@gentoo.org> -wxpython-2.8.10.1.ebuild, -files/wxpython-2.8-drop-editra.patch: diff --git a/dev-python/wxpython/Manifest b/dev-python/wxpython/Manifest index bf4e52f050f8..2b206e8c63ff 100644 --- a/dev-python/wxpython/Manifest +++ b/dev-python/wxpython/Manifest @@ -11,24 +11,28 @@ AUX wxpython-2.9-wxversion-demo.patch 147 RMD160 5a666314fe5893d8246b73ebbc32e00 AUX wxpython-2.9-wxversion-scripts.patch 4600 RMD160 6bc6f7966c39c2e072aec65412858843c957b4d0 SHA1 983db57bcfd143378cd81d28a1008f0d04733e1c SHA256 6c5cd5f3daa51bf3c033f1c934ac1ce219a421a7e993660c64ac532a9dd96675 DIST wxPython-demo-2.8.11.0.tar.bz2 3894559 RMD160 74337736081d809e85e212c72a45cfd7bd23c236 SHA1 9e9a148bf8590d69bc652c535c8dc5b860f01043 SHA256 b4463d50bb597b66471e218f94e6e6f94e05689735038348f9689de941cc24d3 DIST wxPython-demo-2.8.12.0.tar.bz2 3907278 RMD160 784cb3aae45efe6ccbe3bd8dcb5ca7e77dfd3713 SHA1 7698d8a8960882aed3bba76d93abdef560e9a67c SHA256 d85bec805a84e0f00ca18198c8e74243b714f79cf900cef44747cdd6795d8a49 +DIST wxPython-demo-2.8.12.1.tar.bz2 3906851 RMD160 8274d1e227bceb76274776f8c42ffcb0f60fd39d SHA1 ca9e6a10c523e59fb9b0018c4862deeeb26c431d SHA256 252282193a80590b9eab436bef322701b21d35ad03b4b6ebb4824241ff947b5a DIST wxPython-demo-2.9.1.1.tar.bz2 3925228 RMD160 082f1610dc2b2a9852d52077c09da54f3e162d73 SHA1 8b0fe8032d6e85950850d42dbd57882d1fda7fc9 SHA256 f3b689e17f347744b55fff948dc68f58905ba35a9647c3b3c2cf881374522371 DIST wxPython-docs-2.8.11.0.tar.bz2 2331727 RMD160 da31b1da7e8f4862c404a14de2216216ab53aae4 SHA1 6d42177e72b93f286f55cc298bc7ab29531ffa7f SHA256 1e95cf1033902fd4c7abc1b9d34688179f8b699a0f74455fec541a6ad421590d DIST wxPython-docs-2.8.12.0.tar.bz2 2331441 RMD160 1e857c7f3995f2fcb9c6f1aaec4ac3e9e8b69772 SHA1 7c8e39604ad605092f6350a94146e7fbcb5b1abc SHA256 f8cb26593ba3f51b423f04ab6b1872ffe92aa8b78419e3aa36a6a850e53e70d7 +DIST wxPython-docs-2.8.12.1.tar.bz2 2331363 RMD160 245f1c20dcde4525f8fdcbfe2d82812ff8b4a92f SHA1 d83939f1f2d0592e2fa3000907d099ee8db32fd0 SHA256 1dfae3a74b91e2003856eed51698c51094f1a4e6688633ae61af7a22fa8a0ddb DIST wxPython-newdocs-2.8.9.2.tar.bz2 1503913 RMD160 86084386383904972df15aa65ca26d1ad1a28a5d SHA1 eedef5ef87824b28a6fe4d338420cf6249ac1f2f SHA256 890b6b7ca37ba7aaa27f9716ea9992ac75ed8150e83939506e3c47f86e7f37a8 DIST wxPython-src-2.6.4.0.tar.bz2 19062795 RMD160 fe4d2cd91f83c6a8538f2f70f94d6553985f3958 SHA1 621f529e0a5c3e30d4a750046fd71179567a52f8 SHA256 124281b3f5d699eb0699022a0e00fd5359370b61748a0560b7109005d8fb06ba DIST wxPython-src-2.8.11.0.tar.bz2 30604503 RMD160 9e93b0acaf85ba1a4be9c324a872037c44a7694a SHA1 18982edc236a1d87e4eef018928358c925aa5b17 SHA256 210c568bdec811b10fbf8274e9659c8e52823d31fdda9010dbba725194f66661 DIST wxPython-src-2.8.12.0.tar.bz2 31156191 RMD160 6420a8e6e59386b344ac058435a4ae6693c2c04b SHA1 f9ce806dcb5517beb6e3d2ee0ecbf8e569b7f8e4 SHA256 6d5e82772b87981c2a0d78d7a08b3a4498529127be2f05016892e8866e98babd +DIST wxPython-src-2.8.12.1.tar.bz2 31311482 RMD160 94eae06087bdd930e21bf90cc6672f93a1f5a17a SHA1 05688dc03d61631750f5904273122bb40a2115f5 SHA256 1f3f153d9f1504c6ce2d2c4b23e940b8f58b81f4cba35cda1a5bb31142243cd0 DIST wxPython-src-2.9.1.1.tar.bz2 40441688 RMD160 921fdd48c3a0c6fca86073a0588c357231d6fd5c SHA1 886196021bb7712ddf0f2a368137fde26e6e7823 SHA256 613ecb71dbb65b5938ea323bd5cd896b26853e46c4aa45fbf4837fc7e041583a EBUILD wxpython-2.6.4.0-r2.ebuild 3575 RMD160 e98b4ed5d66c10061ac28fac635d8d0f1d5c761d SHA1 6e54f848057fd4edbcfd41565b7345633b0d521b SHA256 b670af6696125128c1d98b3bb4085652a82ff0e776d7c8bcfc9b8a0bd3e51a76 EBUILD wxpython-2.8.11.0.ebuild 5459 RMD160 4b097238379f7b06abedf4a64fac4e9437645f10 SHA1 d2727f3f4b3ef143813914d45d2045289d094367 SHA256 2b247905e294a59b83a6ec7f4468cfb2f8340a9190c6fd727cdf3e8c23661771 EBUILD wxpython-2.8.12.0.ebuild 5479 RMD160 c8a5a72d867d8ac066021fa54ddd87e63fc7aa1f SHA1 5996ddf034bc6663ee142bd2b14150b0c3500654 SHA256 5665683612d6f812f7aedb3a7002d725a20879fb5e5825d4b75b0ef2628b0d3f +EBUILD wxpython-2.8.12.1.ebuild 5463 RMD160 bf0d463bb8e55495010fa5fecda0a546faa0020a SHA1 13d57189c47d90f23e14e220e0d1f7ba9b75717a SHA256 25572c0497f3b30b97c8c1bcdffcf7ff2dc2ab6af855ce1b0e843196b4c02068 EBUILD wxpython-2.9.1.1.ebuild 4943 RMD160 547558442c83bbc874ec088c581393fef22c2c73 SHA1 62db1bc37fb8e0a65129270d54801a8ef2ab4440 SHA256 4350e3a00af3fee267764b6077ec373e7f6f8997ab2baeeca6c4325f9e7ab5f2 -MISC ChangeLog 27563 RMD160 e35ddd100fd1d1c28187114d8d25052755fa2ce7 SHA1 d76799dbf60da31c338642e2f2d1d1d7da0c04ce SHA256 10945eb58c90fa3d11783ac9df9c37232f6588769136fcb65b13993c5f7966a5 +MISC ChangeLog 27689 RMD160 3c576ad348640d9575ef27236f568e84fb46ed43 SHA1 56e928ca90a5fb4464c8d20354cdf0fbb0e10e55 SHA256 ebaf0de810e7e7cc727c2212fe9f5006ea2b2f4705f0cccf829cec2f87758ed2 MISC metadata.xml 366 RMD160 3241adb1423f2ce702bc75172a071d7c24c335e3 SHA1 363953bc2e7c364bdc92278ce391df6820c8b063 SHA256 d90a8fa164deff1b8cfa28cf401483424addfceeca8cd35539b7f2bbb3280cff -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) -iEYEARECAAYFAk7hgv0ACgkQiqiDRvmkBmL07gCgz4PutiChsD+BWf0MZJ4bOeKS -NkoAn2wNGNaMjMcYzLciOcGw/dSB5dkj -=Imry +iEYEARECAAYFAk7hmVUACgkQiqiDRvmkBmInEwCg1qEGTEJtf9HQuD9zZBv6E5Ht +0qcAn1orAst21te9RMzW226PjQ7qMseX +=jyiD -----END PGP SIGNATURE----- diff --git a/dev-python/wxpython/wxpython-2.8.12.1.ebuild b/dev-python/wxpython/wxpython-2.8.12.1.ebuild new file mode 100644 index 000000000000..e9505c3eadbc --- /dev/null +++ b/dev-python/wxpython/wxpython-2.8.12.1.ebuild @@ -0,0 +1,187 @@ +# Copyright 1999-2011 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.ebuild,v 1.1 2011/12/09 05:04:54 dirtyepic Exp $ + +EAPI="4" +PYTHON_DEPEND="2" +WX_GTK_VER="2.8" +SUPPORT_PYTHON_ABIS="1" + +inherit alternatives eutils fdo-mime flag-o-matic multilib python 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 ~x86-fbsd" +IUSE="cairo doc examples opengl" + +RDEPEND=" + >=x11-libs/wxGTK-${PV}:2.8[opengl?,tiff,X] + dev-libs/glib:2 + dev-python/setuptools + 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 ) + opengl? ( dev-python/pyopengl )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +RESTRICT_PYTHON_ABIS="3.* *-jython" + +S="${WORKDIR}/${MY_P}/wxPython" +DOC_S="${WORKDIR}/wxPython-${PV}" + +src_prepare() { + sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed" + + epatch "${FILESDIR}"/${PN}-2.8.9-wxversion-scripts.patch + # drop editra - we have it as a separate package now + epatch "${FILESDIR}"/${PN}-2.8.12-drop-editra.patch + + if use doc; then + cd "${DOC_S}" + epatch "${FILESDIR}"/${PN}-${SLOT}-cache-writable.patch + fi + + if use examples; then + cd "${DOC_S}" + epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch + fi + + python_copy_sources +} + +src_configure() { + need-wxwidgets unicode + + append-flags -fno-strict-aliasing + + use opengl \ + && mypyconf="${mypyconf} BUILD_GLCANVAS=1" \ + || mypyconf="${mypyconf} BUILD_GLCANVAS=0" + + mypyconf="${mypyconf} WX_CONFIG=${WX_CONFIG}" + mypyconf="${mypyconf} WXPORT=gtk2 UNICODE=1" +} + +src_compile() { + building() { + "$(PYTHON)" setup.py ${mypyconf} build + } + python_execute_function -s building +} + +src_install() { + local docdir mypyconf + + mypyconf="${mypyconf} WX_CONFIG=${WX_CONFIG}" + use opengl \ + && mypyconf="${mypyconf} BUILD_GLCANVAS=1" \ + || mypyconf="${mypyconf} BUILD_GLCANVAS=0" + + mypyconf="${mypyconf} WXPORT=gtk2 UNICODE=1" + + installation() { + "$(PYTHON)" setup.py ${mypyconf} install --root="${D}" --install-purelib $(python_get_sitedir) + } + python_execute_function -s installation + + # Collision protection. + for file in "${D}"/usr/bin/*; do + mv "${file}" "${file}-${SLOT}" + done + rename_files() { + for file in "${D}$(python_get_sitedir)/"wx{version.*,.pth}; do + mv "${file}" "${file}-${SLOT}" || return 1 + done + } + python_execute_function -q rename_files + + dodoc "${S}"/docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt + + insinto /usr/share/applications + doins "${S}"/distrib/{Py{AlaMode,Crust,Shell},XRCed}.desktop + insinto /usr/share/pixmaps + newins "${S}"/wx/py/PyCrust_32.png PyCrust.png + newins "${S}"/wx/tools/XRCed/XRCed_32.png XRCed.png + + docdir=${D}usr/share/doc/${PF} + + if use doc; then + dodir /usr/share/doc/${PF}/docs + cp -R "${DOC_S}"/docs/* "${docdir}"/docs/ + # For some reason newer API docs aren't available so use 2.8.9.2's + cp -R "${WORKDIR}"/wxPython-2.8.9.2/docs/* "${docdir}"/docs/ + fi + + if use examples; then + dodir /usr/share/doc/${PF}/demo + cp -R "${DOC_S}"/demo/* "${docdir}"/demo + dodir /usr/share/doc/${PF}/samples + cp -R "${DOC_S}"/samples/* "${docdir}"/samples + [[ -e ${docdir}/samples/embedded/embedded ]] \ + && rm -f "${docdir}"/samples/embedded/embedded + 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_execute_function -q create_symlinks + + python_mod_optimize wx-${SLOT}-gtk2-unicode wxversion.py + + 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" + echo + if use doc; then + 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/" + echo + fi + elog "Editra is not packaged with wxpython in Gentoo." + elog "You can find it in the tree as app-editors/editra" + echo +} + +pkg_postrm() { + python_mod_cleanup wx-${SLOT}-gtk2-unicode wxversion.py + 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_execute_function -q create_symlinks +} |