diff options
-rw-r--r-- | dev-python/pycairo/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/pycairo/Manifest | 21 | ||||
-rw-r--r-- | dev-python/pycairo/pycairo-1.10.0-r2.ebuild | 101 |
3 files changed, 113 insertions, 16 deletions
diff --git a/dev-python/pycairo/ChangeLog b/dev-python/pycairo/ChangeLog index a731f370aba4..77128d356de8 100644 --- a/dev-python/pycairo/ChangeLog +++ b/dev-python/pycairo/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/pycairo # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/ChangeLog,v 1.100 2011/05/08 21:28:41 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/ChangeLog,v 1.101 2011/07/06 19:49:41 djc Exp $ + +*pycairo-1.10.0-r2 (06 Jul 2011) + + 06 Jul 2011; Dirkjan Ochtman <djc@gentoo.org> +pycairo-1.10.0-r2.ebuild: + Remove config.h to fix SVG (bug 368601). *pycairo-1.10.0-r1 (08 May 2011) diff --git a/dev-python/pycairo/Manifest b/dev-python/pycairo/Manifest index 39a8decb46ef..965151602a3c 100644 --- a/dev-python/pycairo/Manifest +++ b/dev-python/pycairo/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 +Hash: SHA512 AUX py2cairo-1.10.0-svg_check.patch 2912 RMD160 79cbae6b38baeb1a55309aa41cb40bd0bb2ad1b2 SHA1 fdd5a4f9b9f17aa0f48e62ef97359f57046da46e SHA256 c35d96be5be571c2f4c3415e4016a7e70a5edd6164818af80d16855e4e4efe72 AUX pycairo-1.10.0-svg_check.patch 2924 RMD160 e0a01e9587ad47dc00a0d449fb3d00fcfbacfe7a SHA1 3969a610e8431938605c7eae5a86b43ef0c9881c SHA256 f9d2bac70bcca57c523e69403cb7332bf4ade0427998b6a3dc16730bcc17b6c7 @@ -10,24 +10,15 @@ DIST py2cairo-1.10.0.tar.bz2 402070 RMD160 ce75db9af32ef1a3e90f6aaa649cbb2493a94 DIST py2cairo-1.8.10.tar.gz 588459 RMD160 932e19f2f582bdf5735bdc92720b76edfb0a0c8e SHA1 6bb0b3e0249bce9fc0480aadad0c602d32f26ec1 SHA256 b15f71019e42e06d86f7e8fe5587f07c3de5a59a6c3a071b25fe100796dbcd56 DIST pycairo-1.10.0.tar.bz2 246556 RMD160 7d1c1c05113e5bbad32dbe96c65c918b170cac33 SHA1 b4283aa1cc9aafd12fd72ad371303a486da1d014 SHA256 9aa4078e7eb5be583aeabbe8d87172797717f95e8c4338f0d4a17b683a7253be EBUILD pycairo-1.10.0-r1.ebuild 2801 RMD160 355700e79ebf9dff164f72a01d24874a39cb9fc2 SHA1 422da72a61ac45a5b69be124667b4197a046cd7e SHA256 20a837c90e669c67bab1b1c6c2cabde1561059f18e934a098c1633a83259463e +EBUILD pycairo-1.10.0-r2.ebuild 2851 RMD160 87a16bdc4328aa642bd013fdc084dee4c08616a1 SHA1 343f52f00b34ed5e32431a5e4ae19273bf4d938f SHA256 a437e410bce169705f6bafdd79e5368d74ee8f033bcc76f2a517d7a3212b2884 EBUILD pycairo-1.10.0.ebuild 3581 RMD160 4d91f83b9809ecfd64400889253cd1dd701a32b0 SHA1 f128a9bc4e4a24a367062b55eb52da78574e27c0 SHA256 388b1dc3dee5d629ef256c0f34f04a7557655623c5d6aa1a64dc59948f36344e EBUILD pycairo-1.8.10.ebuild 2233 RMD160 09c531269db883119a673511d38785a8ca670052 SHA1 75ff22f936d75943e89a8c96a716cf90d3fa6da2 SHA256 f1c94a660f20f6b25c6c85a5db7b45d945051fb423d124b25706fc63fb1a7d65 -MISC ChangeLog 13184 RMD160 c9122413c01cacebdde1da762953875c826e316d SHA1 ff8f80eda412b871b03cb561c452b1614c86b588 SHA256 71b07a92fb00e450a1a9baa0fa9a0d6e25f861c1c0e709d145f7220455ddaaa0 +MISC ChangeLog 13332 RMD160 43170133e5d7513e76574748abacae742903fa09 SHA1 fa5a82cdf9637a7a78853a9159480dbd1c841651 SHA256 9e5532d2566f38f3c83af361db85e9661c8d3b95b14247a3627ab5130ec0c861 MISC metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb SHA1 2aa5e6be9c265c0e7bceb78ee9fd20df5f818e36 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iQIcBAEBAgAGBQJNxwsaAAoJENgZr6v6gHY0SfgQAKywzqpJPEDcCFjMQOPyUxfo -sISW9qLO3sbs2w/ernPOOsmK6TlrfwWrLXRwpeTnu3vjfdZ+xMsBemuCgWdAiEj/ -NvHmsFdXVFn/Kvx1ceNI+XJrDs6/MEi32jWMEUaFz93Gn15CFZr4w9PjtnnyXGto -L9IOK67wstv5PhivI+yskN+nLroKZ1XMn7H9dCwY0baHcRv+T5gn512MGXr9jWpC -D6foUvfrK9Y8TTOv0nRUzxil1Acjbp7XVI3PWm4Tg9eGZfWIs2XRuqrAcOsdH8hG -i/ImvWJMpG9cv28epDXHOJWf/dmSCWnoegb8kCFUe8QQ27LB9zPTm8FMt1Pz6Oym -tGlvYsrEY/rL1jcXQXGsOICG2WNzappamR86lnMNufa9l0hNA19otXRksQ2RkskF -fVg7qnGb8ltZrlXB8J/OT1GaElNgEUvD0cYcxRD4kn9XiL41pSemPYcA+PG9R+JY -J6NrHi0XNrV98aLsjo4GsAKUdnwDfqvNEqRsvbS+CLvplIVUJ7ZuPNv0B6Gm8nWN -azxvE+FzLz2TwSHUEvf0Y4roUMlPltwgESCE8c2TG7dlgMpGZXi1iUMozHUAKFP9 -9TEQEWlPcucRvwPCHlFDwHT8xVZM1IdHibqqq7BfQH9dYq6NQBiTqrBIO/CefWbr -njZfXIau5kFhm0s63TEu -=Ta0e +iEYEAREKAAYFAk4UvF4ACgkQxeMuLWsGW/u8RACgtknvp02ep/SnuXKTpaNtWE/r +pvcAnjBWK25i3naeIO5pvpFDKF/RoqRq +=8lHs -----END PGP SIGNATURE----- diff --git a/dev-python/pycairo/pycairo-1.10.0-r2.ebuild b/dev-python/pycairo/pycairo-1.10.0-r2.ebuild new file mode 100644 index 000000000000..2a5e628dc59c --- /dev/null +++ b/dev-python/pycairo/pycairo-1.10.0-r2.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycairo/pycairo-1.10.0-r2.ebuild,v 1.1 2011/07/06 19:49:41 djc Exp $ + +EAPI="3" +PYTHON_DEPEND="2:2.6 3:3.1" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.4 2.5 3.0 *-jython" + +inherit eutils python waf-utils + +PYCAIRO_PYTHON2_VERSION="${PV}" +PYCAIRO_PYTHON3_VERSION="${PV}" + +DESCRIPTION="Python bindings for the cairo library" +HOMEPAGE="http://cairographics.org/pycairo/ http://pypi.python.org/pypi/pycairo" +SRC_URI="http://cairographics.org/releases/py2cairo-${PYCAIRO_PYTHON2_VERSION}.tar.bz2 + http://cairographics.org/releases/pycairo-${PYCAIRO_PYTHON3_VERSION}.tar.bz2" + +# LGPL-3 for pycairo 1.10.0. +# || ( LGPL-2.1 MPL-1.1 ) for pycairo 1.8.10. +LICENSE="LGPL-3 || ( LGPL-2.1 MPL-1.1 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="doc examples +svg test" + +RDEPEND=">=x11-libs/cairo-1.10.0[svg?]" +DEPEND="${RDEPEND} + dev-util/pkgconfig + test? ( dev-python/pytest )" + +PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") + +src_prepare() { + + pushd "${WORKDIR}/pycairo-${PYCAIRO_PYTHON3_VERSION}" > /dev/null + rm -f src/config.h || die + epatch "${FILESDIR}/${PN}-1.10.0-svg_check.patch" + popd > /dev/null + + pushd "${WORKDIR}/py2cairo-${PYCAIRO_PYTHON2_VERSION}" > /dev/null + rm -f src/config.h || die + epatch "${FILESDIR}/py2cairo-1.10.0-svg_check.patch" + popd > /dev/null + + preparation() { + if [[ "${PYTHON_ABI}" == 3.* ]]; then + cp -r "${WORKDIR}/pycairo-${PYCAIRO_PYTHON3_VERSION}" "${WORKDIR}/${P}-${PYTHON_ABI}" + else + cp -r "${WORKDIR}/py2cairo-${PYCAIRO_PYTHON2_VERSION}" "${WORKDIR}/${P}-${PYTHON_ABI}" + fi + } + python_execute_function preparation +} + +src_configure() { + if ! use svg; then + export PYCAIRO_DISABLE_SVG="1" + fi + + python_execute_function -s waf-utils_src_configure --nopyc --nopyo +} + +src_compile() { + python_execute_function -s waf-utils_src_compile +} + +src_test() { + test_installation() { + ./waf install --destdir="${T}/tests/${PYTHON_ABI}" + } + python_execute_function -q -s test_installation + + python_execute_py.test -P '${T}/tests/${PYTHON_ABI}${EPREFIX}$(python_get_sitedir)' -s +} + +src_install() { + python_execute_function -s waf-utils_src_install + + dodoc AUTHORS NEWS README || die "dodoc failed" + + if use doc; then + pushd doc/_build/html > /dev/null + insinto /usr/share/doc/${PF}/html + doins -r [a-z]* _static || die "Installation of documentation failed" + popd > /dev/null + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r examples/* || die "Installation of examples failed" + fi +} + +pkg_postinst() { + python_mod_optimize cairo +} + +pkg_postrm() { + python_mod_cleanup cairo +} |