summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Koltsov <maksbotan@gentoo.org>2012-06-22 08:20:12 +0000
committerMaxim Koltsov <maksbotan@gentoo.org>2012-06-22 08:20:12 +0000
commitebfab743fbacd3909d80e9c7645536472e306806 (patch)
tree16217af3f28dc0925fe9a899700d979c6de2a862 /dev-python/netaddr
parentmarked x86 per bug 422461 (diff)
downloadgentoo-2-ebfab743fbacd3909d80e9c7645536472e306806.tar.gz
gentoo-2-ebfab743fbacd3909d80e9c7645536472e306806.tar.bz2
gentoo-2-ebfab743fbacd3909d80e9c7645536472e306806.zip
Bump to 0.7.7 and add 3.* to PYTHON_TESTS_FAILURES_TOLERANT_ABIS, bug 422749. Thanks to idella4
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/netaddr')
-rw-r--r--dev-python/netaddr/ChangeLog8
-rw-r--r--dev-python/netaddr/netaddr-0.7.7.ebuild42
2 files changed, 49 insertions, 1 deletions
diff --git a/dev-python/netaddr/ChangeLog b/dev-python/netaddr/ChangeLog
index e93597c2069e..e75a09e6feb8 100644
--- a/dev-python/netaddr/ChangeLog
+++ b/dev-python/netaddr/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/netaddr
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/netaddr/ChangeLog,v 1.8 2012/06/17 07:06:45 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/netaddr/ChangeLog,v 1.9 2012/06/22 08:20:12 maksbotan Exp $
+
+*netaddr-0.7.7 (22 Jun 2012)
+
+ 22 Jun 2012; Maxim Koltsov <maksbotan@gentoo.org> +netaddr-0.7.7.ebuild:
+ Bump to 0.7.7 and add 3.* to PYTHON_TESTS_FAILURES_TOLERANT_ABIS, bug 422749.
+ Thanks to idella4
17 Jun 2012; Jeff Horelick <jdhore@gentoo.org> netaddr-0.7.6-r1.ebuild:
marked x86 per bug 421105
diff --git a/dev-python/netaddr/netaddr-0.7.7.ebuild b/dev-python/netaddr/netaddr-0.7.7.ebuild
new file mode 100644
index 000000000000..00f97e3b8474
--- /dev/null
+++ b/dev-python/netaddr/netaddr-0.7.7.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/netaddr/netaddr-0.7.7.ebuild,v 1.1 2012/06/22 08:20:11 maksbotan Exp $
+
+EAPI="4"
+SUPPORT_PYTHON_ABIS="1"
+PYTHON_TESTS_FAILURES_TOLERANT_ABIS="3.* *-jython"
+
+inherit distutils
+
+DESCRIPTION="Network address representation and manipulation library"
+HOMEPAGE="https://github.com/drkjam/netaddr http://pypi.python.org/pypi/netaddr"
+SRC_URI="mirror://github/drkjam/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cli"
+
+DEPEND=""
+RDEPEND="cli? ( dev-python/ipython )"
+
+src_prepare() {
+ distutils_src_prepare
+
+ # https://github.com/drkjam/netaddr/issues/20
+ sed -e "s/AddrFormatError/netaddr.core.AddrFormatError/" -i netaddr/tests/3.x/ip/{platform_linux2.txt,platform_win32.txt}
+}
+
+src_test() {
+ testing() {
+ PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" netaddr/tests/__init__.py
+ }
+ python_execute_function testing
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+ if ! use cli; then
+ ewarn "If you intend to use netaddr shell in terminal, enable cli USE flag"
+ fi
+}