/[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 - (hide annotations) (download)
Fri Jun 15 09:44:44 2012 UTC (2 years, 6 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 mgorny 1.3 # Copyright 1999-2012 Gentoo Foundation
2 maksbotan 1.1 # Distributed under the terms of the GNU General Public License v2
3 maksbotan 1.4 # $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 maksbotan 1.1
5 hwoarang 1.2 EAPI="4"
6     SUPPORT_PYTHON_ABIS="1"
7     PYTHON_TESTS_FAILURES_TOLERANT_ABIS="*-jython"
8 maksbotan 1.1
9 hwoarang 1.2 inherit distutils
10 maksbotan 1.1
11 hwoarang 1.2 DESCRIPTION="Network address representation and manipulation library"
12     HOMEPAGE="https://github.com/drkjam/netaddr http://pypi.python.org/pypi/netaddr"
13 mgorny 1.3 SRC_URI="mirror://github/drkjam/${PN}/${P}.tar.gz"
14 maksbotan 1.1
15     LICENSE="BSD"
16     SLOT="0"
17 hwoarang 1.2 KEYWORDS="~amd64 ~x86"
18 maksbotan 1.1 IUSE=""
19    
20     DEPEND=""
21 hwoarang 1.2 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