diff options
-rw-r--r-- | dev-python/celementtree/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/celementtree/celementtree-1.0.5.ebuild | 13 |
2 files changed, 15 insertions, 4 deletions
diff --git a/dev-python/celementtree/ChangeLog b/dev-python/celementtree/ChangeLog index 9543d4a1a60d..6af008624575 100644 --- a/dev-python/celementtree/ChangeLog +++ b/dev-python/celementtree/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/celementtree # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/celementtree/ChangeLog,v 1.13 2007/01/18 15:10:33 fmccor Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/celementtree/ChangeLog,v 1.14 2007/01/18 23:39:03 lucass Exp $ + + 18 Jan 2007; Lukasz Strzygowski <lucass@gentoo.org> + celementtree-1.0.5.ebuild: + Added src_test, thanks to Eddy Mulyono (bug #155736). 18 Jan 2007; Ferris McCormick <fmccor@gentoo.org> celementtree-1.0.5.ebuild: diff --git a/dev-python/celementtree/celementtree-1.0.5.ebuild b/dev-python/celementtree/celementtree-1.0.5.ebuild index 5c2125399bc8..94fadac20fc7 100644 --- a/dev-python/celementtree/celementtree-1.0.5.ebuild +++ b/dev-python/celementtree/celementtree-1.0.5.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/celementtree/celementtree-1.0.5.ebuild,v 1.5 2007/01/18 15:10:33 fmccor Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/celementtree/celementtree-1.0.5.ebuild,v 1.6 2007/01/18 23:39:03 lucass Exp $ -inherit eutils distutils +inherit distutils MY_P="cElementTree-${PV}-20051216" DESCRIPTION="The cElementTree module is a C implementation of the ElementTree API" @@ -16,7 +16,7 @@ KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" IUSE="doc" DEPEND=">=dev-lang/python-2.1.3-r1 >=dev-python/elementtree-1.2" -S=${WORKDIR}/${MY_P} +S="${WORKDIR}/${MY_P}" src_install() { distutils_src_install @@ -26,3 +26,10 @@ src_install() { doins selftest.py fi } + +src_test() { + "${python}" setup.py install --home="${T}/test" || die "test copy failed" + PYTHONPATH="${T}/test/lib/python" \ + "${python}" selftest.py || die "selftest.py failed" + rm -rf "${T}/test" +} |