summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2007-02-27 23:20:45 +0000
committerTiziano Müller <dev-zero@gentoo.org>2007-02-27 23:20:45 +0000
commit7c5f098ae7356e1b8462a0e7244a958258804aab (patch)
tree92ee5c055b2b37d42fa8313fc2226a2a5f57cc88 /dev-python/buildutils
parentVersion bump (diff)
downloadgentoo-2-7c5f098ae7356e1b8462a0e7244a958258804aab.tar.gz
gentoo-2-7c5f098ae7356e1b8462a0e7244a958258804aab.tar.bz2
gentoo-2-7c5f098ae7356e1b8462a0e7244a958258804aab.zip
Cleanup.
(Portage version: 2.1.2-r10)
Diffstat (limited to 'dev-python/buildutils')
-rw-r--r--dev-python/buildutils/ChangeLog6
-rw-r--r--dev-python/buildutils/buildutils-0.1.2.ebuild36
2 files changed, 28 insertions, 14 deletions
diff --git a/dev-python/buildutils/ChangeLog b/dev-python/buildutils/ChangeLog
index c4808d21350b..ba4b1ee04c95 100644
--- a/dev-python/buildutils/ChangeLog
+++ b/dev-python/buildutils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/buildutils
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/buildutils/ChangeLog,v 1.1 2007/01/07 22:24:50 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/buildutils/ChangeLog,v 1.2 2007/02/27 23:20:45 dev-zero Exp $
+
+ 27 Feb 2007; Tiziano Müller <dev-zero@gentoo.org>
+ buildutils-0.1.2.ebuild:
+ Cleanup.
*buildutils-0.1.2 (07 Jan 2007)
diff --git a/dev-python/buildutils/buildutils-0.1.2.ebuild b/dev-python/buildutils/buildutils-0.1.2.ebuild
index 32d46bb66865..e2dfa892d5a4 100644
--- a/dev-python/buildutils/buildutils-0.1.2.ebuild
+++ b/dev-python/buildutils/buildutils-0.1.2.ebuild
@@ -1,20 +1,23 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/buildutils/buildutils-0.1.2.ebuild,v 1.1 2007/01/07 22:24:50 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/buildutils/buildutils-0.1.2.ebuild,v 1.2 2007/02/27 23:20:45 dev-zero Exp $
+
+NEED_PYTHON=2.4
inherit distutils
-DESCRIPTION="Distutils extensions for developing Python libraries and applications"
-HOMEPAGE="http://buildutils.lesscode.org"
-SRC_URI="http://cheeseshop.python.org/packages/source/${P:0:1}/${PN}/${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+DESCRIPTION="Extensions for developing Python libraries and applications."
+HOMEPAGE="http://buildutils.lesscode.org/"
+SRC_URI="http://cheeseshop.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc"
+IUSE="doc test"
DEPEND="dev-python/setuptools
- doc? ( dev-python/pudge )"
+ doc? ( dev-python/pudge )
+ test? ( dev-python/nose )"
RDEPEND=""
src_unpack() {
@@ -22,15 +25,22 @@ src_unpack() {
cd "${S}"
sed -i \
-e '/use_setuptools/d' \
- -e '/install_requires[ \t]*=[ \t]*\[.*\],/d' \
- -e '/install_requires/, /],/d' \
setup.py || die "sed failed"
}
-src_install() {
- distutils_src_install
+src_compile() {
+ distutils_src_compile
if use doc ; then
- python setup.py pudge || die "generating docs failed"
- dohtml -r doc/html/*
+ einfo "Generating docs as requested..."
+ "${python}" setup.py pudge || die "generating docs failed"
fi
}
+
+src_install() {
+ distutils_src_install
+ use doc && dohtml -r doc/html/*
+}
+
+src_test() {
+ PYTHONPATH=. "${python}" setup.py nosetests || die "test failed"
+}