summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2013-02-02 15:05:49 +0000
committerMike Gilbert <floppym@gentoo.org>2013-02-02 15:05:49 +0000
commita64894b7de6b62f8967f14f216a6edbf1b4f0a70 (patch)
tree0606c63e8c0f58187d0159d00cd811f9237d82e0 /dev-python/configobj
parentPort to distutils-r1, drop old (diff)
downloadgentoo-2-a64894b7de6b62f8967f14f216a6edbf1b4f0a70.tar.gz
gentoo-2-a64894b7de6b62f8967f14f216a6edbf1b4f0a70.tar.bz2
gentoo-2-a64894b7de6b62f8967f14f216a6edbf1b4f0a70.zip
Convert to distutils-r1.
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'dev-python/configobj')
-rw-r--r--dev-python/configobj/ChangeLog10
-rw-r--r--dev-python/configobj/configobj-4.7.2-r1.ebuild37
2 files changed, 44 insertions, 3 deletions
diff --git a/dev-python/configobj/ChangeLog b/dev-python/configobj/ChangeLog
index 1ff299a3b793..359eeeb57088 100644
--- a/dev-python/configobj/ChangeLog
+++ b/dev-python/configobj/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/configobj
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/ChangeLog,v 1.28 2011/03/04 20:55:40 xarthisius Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/ChangeLog,v 1.29 2013/02/02 15:05:49 floppym Exp $
+
+*configobj-4.7.2-r1 (02 Feb 2013)
+
+ 02 Feb 2013; Mike Gilbert <floppym@gentoo.org> +configobj-4.7.2-r1.ebuild:
+ Convert to distutils-r1.
04 Mar 2011; Kacper Kowalik <xarthisius@gentoo.org>
configobj-4.7.2.ebuild:
@@ -117,4 +122,3 @@
03 Feb 2007; Tiziano Müller <dev-zero@gentoo.org> configobj-4.3.2.ebuild,
+metadata.xml:
Initial ebuild.
-
diff --git a/dev-python/configobj/configobj-4.7.2-r1.ebuild b/dev-python/configobj/configobj-4.7.2-r1.ebuild
new file mode 100644
index 000000000000..0685faf1404c
--- /dev/null
+++ b/dev-python/configobj/configobj-4.7.2-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/configobj/configobj-4.7.2-r1.ebuild,v 1.1 2013/02/02 15:05:49 floppym Exp $
+
+EAPI="5"
+PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} )
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="Simple config file reader and writer"
+HOMEPAGE="http://www.voidspace.org.uk/python/configobj.html http://code.google.com/p/configobj/ http://pypi.python.org/pypi/configobj"
+SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="doc"
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+python_prepare_all() {
+ epatch "${FILESDIR}/${PN}-4.7.2-fix_tests.patch"
+ sed -e "s/ \(doctest\.testmod(.*\)/ sys.exit(\1[0] != 0)/" -i validate.py
+}
+
+python_test() {
+ "${PYTHON}" validate.py -v
+}
+
+python_install_all() {
+ if use doc; then
+ rm -f docs/BSD*
+ insinto /usr/share/doc/${PF}/html
+ doins -r docs/* || die "doins failed"
+ fi
+}