diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-23 17:47:04 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-23 17:47:04 +0000 |
commit | 02b33c2f261fa52b27959bbb84191f8a2ecf303d (patch) | |
tree | 0260a49cd51f20f4f3fe24ae76481010f870e6de /dev-python | |
parent | Remove virtual/libc (diff) | |
download | gentoo-2-02b33c2f261fa52b27959bbb84191f8a2ecf303d.tar.gz gentoo-2-02b33c2f261fa52b27959bbb84191f8a2ecf303d.tar.bz2 gentoo-2-02b33c2f261fa52b27959bbb84191f8a2ecf303d.zip |
Set SUPPORT_PYTHON_ABIS.
(Portage version: 14394-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pyxml/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/pyxml/pyxml-0.8.4-r2.ebuild | 36 |
2 files changed, 25 insertions, 17 deletions
diff --git a/dev-python/pyxml/ChangeLog b/dev-python/pyxml/ChangeLog index b0462821f349..6c4d114dfdb8 100644 --- a/dev-python/pyxml/ChangeLog +++ b/dev-python/pyxml/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/pyxml # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyxml/ChangeLog,v 1.57 2009/07/26 22:30:48 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyxml/ChangeLog,v 1.58 2009/09/23 17:47:04 arfrever Exp $ + + 23 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + pyxml-0.8.4-r2.ebuild: + Set SUPPORT_PYTHON_ABIS. 26 Jul 2009; Brent Baude <ranger@gentoo.org> pyxml-0.8.4-r2.ebuild: stable ppc64, bug 277351 diff --git a/dev-python/pyxml/pyxml-0.8.4-r2.ebuild b/dev-python/pyxml/pyxml-0.8.4-r2.ebuild index d32892c73ee0..3b07f39f0b8d 100644 --- a/dev-python/pyxml/pyxml-0.8.4-r2.ebuild +++ b/dev-python/pyxml/pyxml-0.8.4-r2.ebuild @@ -1,6 +1,9 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyxml/pyxml-0.8.4-r2.ebuild,v 1.9 2009/07/26 22:30:48 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyxml/pyxml-0.8.4-r2.ebuild,v 1.10 2009/09/23 17:47:04 arfrever Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" inherit distutils @@ -16,12 +19,17 @@ KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" IUSE="doc examples" DEPEND=">=dev-libs/expat-1.95.6" +RDEPEND="${DEPEND}" +RESTRICT_PYTHON_ABIS="3.*" + +S="${WORKDIR}/${MY_P}" -S=${WORKDIR}/${MY_P} +DOCS="ANNOUNCE CREDITS doc/*.txt" +PYTHON_MODNAME="_xmlplus" -src_unpack(){ - distutils_src_unpack - epatch "${FILESDIR}"/${P}-python-2.6.patch +src_prepare(){ + distutils_src_prepare + epatch "${FILESDIR}/${P}-python-2.6.patch" } src_compile() { @@ -36,9 +44,15 @@ src_compile() { # use the already-installed shared copy of libexpat distutils_src_compile --with-libexpat=/usr ${myconf} } +src_test() { + cd test + testing() { + PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" regrtest.py + } + python_execute_function testing +} src_install() { - DOCS="ANNOUNCE CREDITS doc/*.txt" distutils_src_install doman doc/man/* @@ -48,13 +62,3 @@ src_install() { fi use examples && cp -r demo "${D}"/usr/share/doc/${PF} } - -pkg_postinst(){ - python_mod_optimize "$(python_get_sitedir)/_xmlplus" -} - -src_test() { - cd test - PYTHONPATH="$(ls -d ../build/lib.*)" "${python}" regrtest.py \ - || die "tests failed" -} |