summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2014-04-23 08:37:56 +0000
committerIan Delaney <idella4@gentoo.org>2014-04-23 08:37:56 +0000
commitbcd342889bf792ab985141bae6aca514e6c41e8c (patch)
tree9c8ce7e3299754ed8dba07c9468c128211b90ba3 /dev-python
parentbump; pypy2_0 dropped, keywords ppc ppc64 dropped (to appease ipython), gener... (diff)
downloadgentoo-2-bcd342889bf792ab985141bae6aca514e6c41e8c.tar.gz
gentoo-2-bcd342889bf792ab985141bae6aca514e6c41e8c.tar.bz2
gentoo-2-bcd342889bf792ab985141bae6aca514e6c41e8c.zip
deal with un-needed _version.py reported by Arfrever
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/configobj/ChangeLog5
-rw-r--r--dev-python/configobj/configobj-5.0.4.ebuild10
2 files changed, 13 insertions, 2 deletions
diff --git a/dev-python/configobj/ChangeLog b/dev-python/configobj/ChangeLog
index 4f7221b05d4e..fa384ca23088 100644
--- a/dev-python/configobj/ChangeLog
+++ b/dev-python/configobj/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/configobj
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/ChangeLog,v 1.49 2014/04/12 05:06:25 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/ChangeLog,v 1.50 2014/04/23 08:37:56 idella4 Exp $
+
+ 23 Apr 2014; Ian Delaney <idella4@gentoo.org> configobj-5.0.4.ebuild:
+ deal with un-needed _version.py reported by Arfrever
*configobj-5.0.4 (12 Apr 2014)
diff --git a/dev-python/configobj/configobj-5.0.4.ebuild b/dev-python/configobj/configobj-5.0.4.ebuild
index 15a1f4701c26..8bd8582dead0 100644
--- a/dev-python/configobj/configobj-5.0.4.ebuild
+++ b/dev-python/configobj/configobj-5.0.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/configobj-5.0.4.ebuild,v 1.1 2014/04/12 05:06:25 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/configobj-5.0.4.ebuild,v 1.2 2014/04/23 08:37:56 idella4 Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} pypy pypy2_0 )
@@ -17,6 +17,14 @@ KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-maco
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
+python_prepare_all() {
+ # Not to install un-needed _version.py
+ sed -e "/^MODULES =/s/, '_version'//" -i setup.py
+ sed -e "s/^from _version import __version__$/__version__ = '${PV}'/" -i configobj.py
+
+ distutils-r1_python_prepare_all
+}
+
python_test() {
"${PYTHON}" validate.py -v || die "Tests fail with ${EPYTHON}"
}