/[gentoo-x86]/dev-python/python-gflags/python-gflags-2.0.ebuild
Gentoo

Contents of /dev-python/python-gflags/python-gflags-2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.22 - (show annotations) (download)
Wed Jul 29 14:42:52 2015 UTC (4 years, 11 months ago) by klausman
Branch: MAIN
CVS Tags: HEAD
Changes since 1.21: +2 -2 lines
Stable on alpha, bug 519772

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key CE5D54E8)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/python-gflags/python-gflags-2.0.ebuild,v 1.21 2015/07/16 16:20:05 jer Exp $
4
5 EAPI="5"
6
7 PYTHON_COMPAT=( python2_7 pypy )
8
9 inherit distutils-r1
10
11 DESCRIPTION="Google's Python argument parsing library"
12 HOMEPAGE="http://code.google.com/p/python-gflags/"
13 SRC_URI="http://python-gflags.googlecode.com/files/${P}.tar.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc64 ~s390 ~sh x86"
18 IUSE=""
19
20 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
21 RDEPEND=""
22
23 PATCHES=(
24 "${FILESDIR}"/${P}-scripts-install.patch
25 "${FILESDIR}"/${P}-tests-respect-tmpdir.patch
26 "${FILESDIR}"/${P}-skip-test-as-root.patch #475134
27 "${FILESDIR}"/${P}-tests-python-2.7.patch #447482
28 )
29
30 python_test() {
31 # http://code.google.com/p/python-gflags/issues/detail?id=15&thanks=15&ts=1372948007
32 local t
33 cd tests || die
34 for t in *.py; do
35 # (it's ok to run the gflags_googletest.py too)
36 "${PYTHON}" "${t}" || die "Tests fail with ${EPYTHON}"
37 done
38 }

  ViewVC Help
Powered by ViewVC 1.1.20