/[gentoo-x86]/dev-python/ipaddr/ipaddr-2.1.10-r1.ebuild
Gentoo

Contents of /dev-python/ipaddr/ipaddr-2.1.10-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Aug 8 09:28:52 2013 UTC (6 years, 11 months ago) by ago
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for amd64, wrt bug #480138

(Portage version: 2.1.13.2/cvs/Linux x86_64, RepoMan options: --include-arches="amd64", signed Manifest commit with key 7194459F)

1 mgorny 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ago 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-python/ipaddr/ipaddr-2.1.10-r1.ebuild,v 1.2 2013/02/24 12:22:30 mgorny Exp $
4 mgorny 1.1
5     EAPI=5
6     PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
7    
8     inherit distutils-r1
9    
10     DESCRIPTION="Python IP address manipulation library"
11     HOMEPAGE="http://code.google.com/p/ipaddr-py/ http://pypi.python.org/pypi/ipaddr"
12     SRC_URI="http://ipaddr-py.googlecode.com/files/${P}.tar.gz"
13    
14     LICENSE="Apache-2.0"
15     SLOT="0"
16 ago 1.3 KEYWORDS="amd64 ~x86"
17 mgorny 1.1 IUSE=""
18    
19     DEPEND=""
20     RDEPEND=""
21    
22     DOCS=( README RELEASENOTES )
23    
24     DISTUTILS_IN_SOURCE_BUILD=1
25    
26     python_prepare() {
27     if [[ ${EPYTHON} == python3* ]]; then
28     2to3 -n -w --no-diffs *.py || die
29     fi
30     }
31    
32     python_test() {
33     PYTHONPATH=build/lib \
34     "${PYTHON}" ipaddr_test.py || die "Tests fail with ${EPYTHON}"
35     }

  ViewVC Help
Powered by ViewVC 1.1.20