summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-10-18 19:37:44 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-10-18 19:37:44 +0000
commit454034a2c86d8b36b15e5704f33a5dcac24a610f (patch)
tree63a84520789c6fc64b29e79e79a87369b0f41a6d /dev-python
parentamd64 stable wrt #289629 (diff)
downloadgentoo-2-454034a2c86d8b36b15e5704f33a5dcac24a610f.tar.gz
gentoo-2-454034a2c86d8b36b15e5704f33a5dcac24a610f.tar.bz2
gentoo-2-454034a2c86d8b36b15e5704f33a5dcac24a610f.zip
Set SUPPORT_PYTHON_ABIS.
(Portage version: 14675-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/mechanize/ChangeLog6
-rw-r--r--dev-python/mechanize/mechanize-0.1.11.ebuild38
2 files changed, 24 insertions, 20 deletions
diff --git a/dev-python/mechanize/ChangeLog b/dev-python/mechanize/ChangeLog
index 718e0f700fb4..60b486cbfd52 100644
--- a/dev-python/mechanize/ChangeLog
+++ b/dev-python/mechanize/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/mechanize
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/mechanize/ChangeLog,v 1.15 2009/10/10 17:51:10 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/mechanize/ChangeLog,v 1.16 2009/10/18 19:37:44 arfrever Exp $
+
+ 18 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ mechanize-0.1.11.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
10 Oct 2009; Fabian Groffen <grobian@gentoo.org> mechanize-0.1.11.ebuild:
Merge from Prefix
diff --git a/dev-python/mechanize/mechanize-0.1.11.ebuild b/dev-python/mechanize/mechanize-0.1.11.ebuild
index 1e6c19bc12af..4a2c3d0c9050 100644
--- a/dev-python/mechanize/mechanize-0.1.11.ebuild
+++ b/dev-python/mechanize/mechanize-0.1.11.ebuild
@@ -1,8 +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/mechanize/mechanize-0.1.11.ebuild,v 1.4 2009/10/10 17:51:10 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/mechanize/mechanize-0.1.11.ebuild,v 1.5 2009/10/18 19:37:44 arfrever Exp $
-NEED_PYTHON=2.4
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
inherit distutils
@@ -17,32 +18,31 @@ IUSE=""
DEPEND=">=dev-python/clientform-0.2.7"
RDEPEND="${DEPEND}"
+RESTRICT_PYTHON_ABIS="3.*"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+DOCS="0.1-changes.txt"
- # use distutils instead of setuptools
- sed -i \
- -e 's/not hasattr(sys, "version_info")/1/' \
- setup.py || die "sed in setup.py failed"
+src_prepare() {
+ # Use distutils instead of setuptools.
+ # (This can't be removed in the same ${PV} due to file->directory replacement.)
+ sed -e 's/not hasattr(sys, "version_info")/True/' -i setup.py || die "sed in setup.py failed"
# We don't run coverage tests or functional_tests
# which access the network, just doctests and unit tests
- sed -i \
- -e '/import coverage/d' \
- test.py || die "sed in test.py failed"
+ sed -e '/import coverage/d' -i test.py || die "sed in test.py failed"
+}
+
+src_test() {
+ testing() {
+ PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test.py
+ }
+ python_execute_function testing
}
src_install() {
- DOCS="0.1-changes.txt"
- # remove to prevent distutils_src_install from installing it
+ # Remove some files to prevent distutils_src_install from installing them.
dohtml *.html
- rm README.html*
+ rm -f README.html*
distutils_src_install
}
-
-src_test() {
- PYTHONPATH=build/lib/ "${python}" test.py || die "tests failed"
-}