diff options
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/bsddb3/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/bsddb3/bsddb3-4.7.6-r1.ebuild | 64 | ||||
-rw-r--r-- | dev-python/imaging/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/imaging/imaging-1.1.6-r1.ebuild | 36 | ||||
-rw-r--r-- | dev-python/setuptools/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/setuptools/setuptools-0.6_rc9-r1.ebuild | 41 |
6 files changed, 146 insertions, 17 deletions
diff --git a/dev-python/bsddb3/ChangeLog b/dev-python/bsddb3/ChangeLog index 604696416e77..45833b4bcbf4 100644 --- a/dev-python/bsddb3/ChangeLog +++ b/dev-python/bsddb3/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/bsddb3 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.37 2009/07/17 18:12:30 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.38 2009/08/01 23:01:02 arfrever Exp $ + +*bsddb3-4.7.6-r1 (01 Aug 2009) + + 01 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +bsddb3-4.7.6-r1.ebuild: + Set SUPPORT_PYTHON_ABIS. 17 Jul 2009; nixnut <nixnut@gentoo.org> ChangeLog: ppc stable #274180 diff --git a/dev-python/bsddb3/bsddb3-4.7.6-r1.ebuild b/dev-python/bsddb3/bsddb3-4.7.6-r1.ebuild new file mode 100644 index 000000000000..ed2a0c9cb5fc --- /dev/null +++ b/dev-python/bsddb3/bsddb3-4.7.6-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-4.7.6-r1.ebuild,v 1.1 2009/08/01 23:01:02 arfrever Exp $ + +EAPI="2" + +NEED_PYTHON="2.5" +SUPPORT_PYTHON_ABIS="1" + +inherit db-use distutils multilib + +DESCRIPTION="Python bindings for BerkeleyDB" +HOMEPAGE="http://www.jcea.es/programacion/pybsddb.htm" +SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="doc" + +RDEPEND=">=sys-libs/db-4.6" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx )" + +src_compile() { + local DB_VER + if has_version sys-libs/db:4.7; then + DB_VER="4.7" + else + DB_VER="4.6" + fi + + sed -i \ + -e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" \ + setup2.py setup3.py || die "sed failed" + + distutils_src_compile \ + "--berkeley-db=/usr" \ + "--berkeley-db-incdir=$(db_includedir ${DB_VER})" \ + "--berkeley-db-libdir=/usr/$(get_libdir)" + + if use doc; then + mkdir html + sphinx-build docs html || die "building docs failed" + fi +} + +src_install() { + DOCS="TODO.txt" + distutils_src_install + + distutils_python_version + rm -rf "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}/tests" + + use doc && dohtml -r html/* +} + +src_test() { + tests() { + rm -fr /tmp/z-Berkeley_DB + python_set_build_dir_symlink + "${python}" test.py + } + python_execute_function tests +} diff --git a/dev-python/imaging/ChangeLog b/dev-python/imaging/ChangeLog index ccc3475d5c97..732b9446e437 100644 --- a/dev-python/imaging/ChangeLog +++ b/dev-python/imaging/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/imaging # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.42 2009/07/15 17:03:32 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/ChangeLog,v 1.43 2009/08/01 23:04:44 arfrever Exp $ + + 01 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + imaging-1.1.6-r1.ebuild: + Set SUPPORT_PYTHON_ABIS. 15 Jul 2009; SĂ©bastien Fabbro <bicatali@gentoo.org> files/imaging-1.1.6-tiffendian.patch: diff --git a/dev-python/imaging/imaging-1.1.6-r1.ebuild b/dev-python/imaging/imaging-1.1.6-r1.ebuild index 7eaa06836420..2edc68aa14e5 100644 --- a/dev-python/imaging/imaging-1.1.6-r1.ebuild +++ b/dev-python/imaging/imaging-1.1.6-r1.ebuild @@ -1,8 +1,10 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.6-r1.ebuild,v 1.3 2009/07/03 09:57:58 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.6-r1.ebuild,v 1.4 2009/08/01 23:04:44 arfrever Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" -EAPI=2 inherit eutils distutils MY_P=Imaging-${PV} @@ -23,6 +25,8 @@ DEPEND="media-libs/jpeg X? ( x11-misc/xdg-utils )" RDEPEND="${DEPEND}" +RESTRICT_PYTHON_ABIS="3*" + PYTHON_MODNAME=PIL S="${WORKDIR}/${MY_P}" @@ -36,7 +40,7 @@ src_prepare() { -e "s:/usr/lib\":/usr/$(get_libdir)\":" \ -e "s:\"lib\":\"$(get_libdir)\":g" \ setup.py || die "sed failed" - if ! use tk ; then + if ! use tk; then # Make the test always fail sed -i \ -e 's/import _tkinter/raise ImportError/' \ @@ -46,15 +50,17 @@ src_prepare() { src_compile() { distutils_src_compile - if use scanner ; then + if use scanner; then cd "${S}/Sane" distutils_src_compile fi } src_test() { - find . -name _imaging\*.so | xargs -r cp -v -p --target-directory=./PIL/ - "${python}" selftest.py || die + tests() { + PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "${python}" selftest.py + } + python_execute_function tests } src_install() { @@ -63,7 +69,7 @@ src_install() { use doc && dohtml Docs/* - if use scanner ; then + if use scanner; then cd "${S}/Sane" docinto sane local DOCS="CHANGES sanedoc.txt" @@ -71,16 +77,18 @@ src_install() { cd "${S}" fi - # install headers required by media-gfx/sketch - distutils_python_version - insinto /usr/include/python${PYVER} - doins libImaging/Imaging.h - doins libImaging/ImPlatform.h + # Install headers required by media-gfx/sketch. + install_headers() { + insinto "$(python_get_includedir)" + doins libImaging/Imaging.h + doins libImaging/ImPlatform.h + } + python_execute_function install_headers - if use examples ; then + if use examples; then insinto /usr/share/doc/${PF}/examples doins Scripts/* - if use scanner ; then + if use scanner; then insinto /usr/share/doc/${PF}/examples/sane doins Sane/demo_*.py fi diff --git a/dev-python/setuptools/ChangeLog b/dev-python/setuptools/ChangeLog index 6fc07a86b256..3d9d1e68e8df 100644 --- a/dev-python/setuptools/ChangeLog +++ b/dev-python/setuptools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/setuptools # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/ChangeLog,v 1.52 2009/04/27 16:57:15 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/ChangeLog,v 1.53 2009/08/01 22:56:50 arfrever Exp $ + +*setuptools-0.6_rc9-r1 (28 Jul 2009) + + 28 Jul 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +setuptools-0.6_rc9-r1.ebuild: + Set SUPPORT_PYTHON_ABIS. 27 Apr 2009; Jeroen Roovers <jer@gentoo.org> setuptools-0.6_rc9.ebuild: Stable for HPPA (bug #267209). diff --git a/dev-python/setuptools/setuptools-0.6_rc9-r1.ebuild b/dev-python/setuptools/setuptools-0.6_rc9-r1.ebuild new file mode 100644 index 000000000000..2b6349d7aef0 --- /dev/null +++ b/dev-python/setuptools/setuptools-0.6_rc9-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/setuptools-0.6_rc9-r1.ebuild,v 1.1 2009/08/01 22:56:50 arfrever Exp $ + +NEED_PYTHON="2.4" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils eutils + +MY_P="${P/_rc/c}" + +DESCRIPTION="A collection of enhancements to the Python distutils including easy install" +HOMEPAGE="http://peak.telecommunity.com/DevCenter/setuptools" +SRC_URI="http://cheeseshop.python.org/packages/source/s/setuptools/${MY_P}.tar.gz" + +LICENSE="PSF-2.2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="" + +RESTRICT_PYTHON_ABIS="3*" + +S="${WORKDIR}/${MY_P}" + +DOCS="EasyInstall.txt api_tests.txt pkg_resources.txt setuptools.txt README.txt" + +src_unpack() { + distutils_src_unpack + + epatch "${FILESDIR}/${PN}-0.6_rc7-noexe.patch" + + # Remove tests that access the network (bugs #198312, #191117) + rm setuptools/tests/test_packageindex.py +} + +src_test() { + tests() { + PYTHONPATH="." "${python}" setup.py test + } + python_execute_function tests +} |