/[gentoo-x86]/dev-python/netaddr/netaddr-0.7.6.ebuild
Gentoo

Contents of /dev-python/netaddr/netaddr-0.7.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jun 15 09:44:44 2012 UTC (2 years, 2 months ago) by maksbotan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Add cli use flag with dep on ipython, thanks to slepnoga

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/netaddr/netaddr-0.7.6.ebuild,v 1.3 2012/04/23 20:19:28 mgorny Exp $
4
5 EAPI="4"
6 SUPPORT_PYTHON_ABIS="1"
7 PYTHON_TESTS_FAILURES_TOLERANT_ABIS="*-jython"
8
9 inherit distutils
10
11 DESCRIPTION="Network address representation and manipulation library"
12 HOMEPAGE="https://github.com/drkjam/netaddr http://pypi.python.org/pypi/netaddr"
13 SRC_URI="mirror://github/drkjam/${PN}/${P}.tar.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE=""
19
20 DEPEND=""
21 RDEPEND=""
22
23 src_prepare() {
24 distutils_src_prepare
25
26 # https://github.com/drkjam/netaddr/issues/20
27 sed -e "s/AddrFormatError/netaddr.core.AddrFormatError/" -i netaddr/tests/3.x/ip/{platform_linux2.txt,platform_win32.txt}
28 }
29
30 src_test() {
31 testing() {
32 PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" netaddr/tests/__init__.py
33 }
34 python_execute_function testing
35 }

  ViewVC Help
Powered by ViewVC 1.1.20