summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2012-03-26 16:28:01 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2012-03-26 16:28:01 +0000
commitac610d20afc5f2378579ce3b3fc4c41b85dc4d16 (patch)
tree4596b2780e370438426abc79ee9bc254dea0b8e7 /dev-python
parentInclude only valid values in REQUIRED_USE. (diff)
downloadgentoo-2-ac610d20afc5f2378579ce3b3fc4c41b85dc4d16.tar.gz
gentoo-2-ac610d20afc5f2378579ce3b3fc4c41b85dc4d16.tar.bz2
gentoo-2-ac610d20afc5f2378579ce3b3fc4c41b85dc4d16.zip
Migrate to python-distutils-ng.eclass and EAPI 4.
(Portage version: 2.1.10.51/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/python-gflags/ChangeLog5
-rw-r--r--dev-python/python-gflags/python-gflags-2.0.ebuild20
2 files changed, 13 insertions, 12 deletions
diff --git a/dev-python/python-gflags/ChangeLog b/dev-python/python-gflags/ChangeLog
index f5e18bbc87ce..49f454487f60 100644
--- a/dev-python/python-gflags/ChangeLog
+++ b/dev-python/python-gflags/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/python-gflags
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/python-gflags/ChangeLog,v 1.6 2012/02/16 18:57:29 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-gflags/ChangeLog,v 1.7 2012/03/26 16:28:01 nelchael Exp $
+
+ 26 Mar 2012; Krzysztof Pawlik <nelchael@gentoo.org> python-gflags-2.0.ebuild:
+ Migrate to python-distutils-ng.eclass and EAPI 4.
*python-gflags-2.0 (16 Feb 2012)
diff --git a/dev-python/python-gflags/python-gflags-2.0.ebuild b/dev-python/python-gflags/python-gflags-2.0.ebuild
index 16877a741d7d..6aaed88fd6b7 100644
--- a/dev-python/python-gflags/python-gflags-2.0.ebuild
+++ b/dev-python/python-gflags/python-gflags-2.0.ebuild
@@ -1,13 +1,12 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/python-gflags/python-gflags-2.0.ebuild,v 1.1 2012/02/16 18:57:29 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-gflags/python-gflags-2.0.ebuild,v 1.2 2012/03/26 16:28:01 nelchael Exp $
-EAPI="3"
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="3.*"
+EAPI="4"
-inherit distutils
+PYTHON_COMPAT="python2_5 python2_6 python2_7 pypy1_7 pypy1_8"
+
+inherit python-distutils-ng
DESCRIPTION="Google's Python argument parsing library."
HOMEPAGE="http://code.google.com/p/python-gflags/"
@@ -21,9 +20,8 @@ IUSE=""
DEPEND="dev-python/setuptools"
RDEPEND=""
-PYTHON_MODNAME="gflags.py"
-
-src_prepare() {
- distutils_src_prepare
- sed -e 's/data_files=\[("bin", \["gflags2man.py"\])\]/scripts=\["gflags2man.py"\]/' -i setup.py
+python_prepare_all() {
+ sed \
+ -e 's/data_files=\[("bin", \["gflags2man.py"\])\]/scripts=\["gflags2man.py"\]/' \
+ -i setup.py || die "sed failed"
}