]> Frank Brehm's Git Trees - portage.git/commitdiff
Added dev-python/configobj/configobj-4.7.3-r1.ebuild
authorFrank Brehm <frank@brehm-online.com>
Thu, 8 Jan 2015 22:12:56 +0000 (23:12 +0100)
committerFrank Brehm <frank@brehm-online.com>
Thu, 8 Jan 2015 22:12:56 +0000 (23:12 +0100)
dev-python/configobj/Manifest
dev-python/configobj/configobj-4.7.3-r1.ebuild [new file with mode: 0644]

index 98fdfd7c37ae8ee829fe9bb5f4eb4b8f2f32f59e..248626540ea9cdff619fdaeb082f2f0faf7af4c1 100644 (file)
@@ -1,2 +1,3 @@
+EBUILD configobj-4.7.3-r1.ebuild 1131 SHA256 0799f6a2e902c6e37d3199ecb3893068d0abb4449ff019a2d4205353b4bdaadf SHA512 26fbbdf46ed345d25e68c96902131507ac5c9909d5c823eed0f2a1bf6606a807baaaedcc010ca66f30d2fae1f1e734e17147f9bc5eee342b4b454adcab26b551 WHIRLPOOL 9f6a7c40ebbe73527107db9e18705ec84ffab8e8ab0cc1eb4877dccbedfa1f2822f203a845cf31dde1109b5d07a7aa6158d1b195993b6636e78e6b7dbef0dc8c
 EBUILD configobj-4.7.3.1.ebuild 1132 SHA256 730afe5b29796dad6b6349aab724dc006d9ed6ff64903458e05e9d64f589cf64 SHA512 562e08e5d13f3600fb47b8b48d761855de327971d7ad3a11b1917dd769bc462858cfa01f523df4f3d05054bd88ecf495bbf58f6e8fa302b330addeeeee46b594 WHIRLPOOL adeb8a03764974b1001112ebaaad93b4183e340152e0ec002ba839528805681f9af431b9042d0d6ef030030b5166fa2a4b8d803a74d61b740e18482d3a940ce2
 EBUILD configobj-4.7.3.ebuild 1129 SHA256 5fcb353e2f87070ed4bef52c4b3b89e6d9e035044e0296305b33ac0739ecd5c0 SHA512 745b90ba8353dc898d3ff3afececc2678bcc0392fd88056b714179e5ff0374f29f86fecaf1a0c13693013d368d092609a128dbddc6832d7558e13d536c7d26b3 WHIRLPOOL b93c2a6d4a36fac498d07b82380a3359670a167a01894e8eabe6e18dcb05207743fe344395f95108a96576f32e74351b2e51f2222c326b58d3432143f2869e46
diff --git a/dev-python/configobj/configobj-4.7.3-r1.ebuild b/dev-python/configobj/configobj-4.7.3-r1.ebuild
new file mode 100644 (file)
index 0000000..7cfee3c
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} pypy2_0 )
+
+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=""
+EGIT_REPO_URI="https://github.com/fbrehm/configobj.git"
+
+inherit git-2 distutils-r1 eutils
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="doc"
+
+EGIT_BRANCH="develop"
+#EGIT_COMMIT=$(replace_version_separator 3 '-')
+EGIT_COMMIT=${V}
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+#PATCHES=( "${FILESDIR}"/${P}-fix_tests.patch )
+
+python_prepare_all() {
+       distutils-r1_python_prepare_all
+       sed -e "s/ \(doctest\.testmod(.*\)/ sys.exit(\1[0] != 0)/" -i validate.py || die
+}
+
+python_test() {
+       "${PYTHON}" validate.py -v || die
+}
+
+python_install_all() {
+       distutils-r1_python_install_all
+       if use doc; then
+               rm -f docs/BSD*
+               insinto /usr/share/doc/${PF}/html
+               doins -r docs/* || die "doins failed"
+       fi
+}