summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Bergström (jbergstroem) <bugs@bergstroem.nu>2011-06-21 07:53:30 +0000
committerJohan Bergström (jbergstroem) <bugs@bergstroem.nu>2011-06-21 07:53:30 +0000
commit6ba46e34279400d910cc625cb6b55771c71fccea (patch)
treef64e79947a19a9078c1a207f2bc17632ad2995f6 /dev-python
parentdev-python/spawning: Version bump. Support multiple python ABIs, make simplej... (diff)
downloadsunrise-reviewed-6ba46e34279400d910cc625cb6b55771c71fccea.tar.gz
sunrise-reviewed-6ba46e34279400d910cc625cb6b55771c71fccea.tar.bz2
sunrise-reviewed-6ba46e34279400d910cc625cb6b55771c71fccea.zip
dev-python/parsedatetime: Support multiple python ABIs, rewrite testing and doc generation. Thanks to mgorny for reviewing!
svn path=/sunrise/; revision=12147
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/parsedatetime/ChangeLog7
-rw-r--r--dev-python/parsedatetime/Manifest4
-rw-r--r--dev-python/parsedatetime/parsedatetime-0.8.7.ebuild19
3 files changed, 21 insertions, 9 deletions
diff --git a/dev-python/parsedatetime/ChangeLog b/dev-python/parsedatetime/ChangeLog
index 52f861995..86ffdf2c0 100644
--- a/dev-python/parsedatetime/ChangeLog
+++ b/dev-python/parsedatetime/ChangeLog
@@ -1,7 +1,12 @@
# ChangeLog for dev-python/parsedatetime
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 21 Jun 2011; Johan Bergström (jbergstroem) <bugs@bergstroem.nu>
+ parsedatetime-0.8.7.ebuild:
+ Support multiple python ABIs, rewrite testing and doc generation. Thanks to
+ mgorny for reviewing!
+
28 Apr 2009; Jacob Floyd (techgurufloyd) <techgurufloyd@gmail.com>
parsedatetime-0.8.7.ebuild:
Keyword ~amd64 added
diff --git a/dev-python/parsedatetime/Manifest b/dev-python/parsedatetime/Manifest
index 19f821f89..0ed0b7848 100644
--- a/dev-python/parsedatetime/Manifest
+++ b/dev-python/parsedatetime/Manifest
@@ -1,4 +1,4 @@
DIST parsedatetime-0.8.7.tar.gz 222374 RMD160 f6485e2bd09f21db23bb860bd985255412c324c5 SHA1 c7d143cf72fcc520d8125228135d7ca9d60b7abe SHA256 9b52f8b25f2f5e29e6b46bb5b37faea77396e5068a1b2828f60149d59bb636f6
-EBUILD parsedatetime-0.8.7.ebuild 1029 RMD160 8a6f80952f7904c4d676453b1e75de71cea7412b SHA1 4ba73dfd343a63944f674dc0d2108fb23a63f407 SHA256 57c8dcbf90c6b4d3240b7f152e16d6a3a81d82751a42442a399de90cce4acf5f
-MISC ChangeLog 583 RMD160 e62df071c4274006b397edaf7d3bd5a089ab429a SHA1 1ac0bfee0f5a16b35a5ae88a1c8b917b11a2f006 SHA256 3849b43b046e970ba376129c39a9ccbe3e630456773c67488087e44fbdda50f9
+EBUILD parsedatetime-0.8.7.ebuild 1166 RMD160 f3713f41dc5679ed2d01aaed9ed389f4e081e4f1 SHA1 3203f1caf8d8a1ae4f46493238b7ecd04916e747 SHA256 6c06423d3dd77ffb81e0da7c6e84617c627e0a40d404cc894f8afd692683e331
+MISC ChangeLog 783 RMD160 5005bece4f856dbda00186ef36fc41a80f885bc5 SHA1 9960f091585b35d6a8a34069dbf8c18b8af9dd89 SHA256 d3b00801fb2f668141f714bfeb1e2d8262865b0ad86e8d32b0f77ee322bf5d4b
MISC metadata.xml 360 RMD160 c6c8ac55781883895348d184034990144b52520a SHA1 793e9e833d38f6ecddf8b0b88496bf8830b79504 SHA256 64c64c14c7b52cf584f25f982f96ea8467f65e6405ea0af13332d7f637511fcd
diff --git a/dev-python/parsedatetime/parsedatetime-0.8.7.ebuild b/dev-python/parsedatetime/parsedatetime-0.8.7.ebuild
index 0595b6a5c..bb6b012ea 100644
--- a/dev-python/parsedatetime/parsedatetime-0.8.7.ebuild
+++ b/dev-python/parsedatetime/parsedatetime-0.8.7.ebuild
@@ -1,12 +1,16 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI="2"
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
inherit distutils
DESCRIPTION="Parse human-readable date/time expressions"
-HOMEPAGE="http://code-bear.com/code/parsedatetime/"
+HOMEPAGE="http://code-bear.com/code/parsedatetime/ http://code.google.com/p/parsedatetime/"
SRC_URI="http://code-bear.com/code/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
@@ -17,7 +21,7 @@ IUSE="doc"
DEPEND="doc? ( dev-python/epydoc )"
RDEPEND="dev-python/pyicu"
-DOCS="THANKS.txt README.txt AUTHORS.txt CHANGES.txt"
+DOCS="THANKS.txt AUTHORS.txt CHANGES.txt"
src_prepare() {
# A broken and unnecessary test script made it into the release. delete it.
@@ -28,13 +32,16 @@ src_prepare() {
src_compile() {
if use doc; then
- ${python} setup.py doc || die "Making the docs failed"
+ epydoc --config epydoc.conf || die "Couldn't generate docs"
fi
distutils_src_compile
}
src_test() {
- PYTHON_PATH="build/lib/" ${python} run_tests.py || die "Running tests failed!"
+ testing() {
+ PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" run_tests.py
+ }
+ python_execute_function testing
}
src_install() {