/[gentoo-x86]/dev-python/pycountry/pycountry-1.12.ebuild
Gentoo

Contents of /dev-python/pycountry/pycountry-1.12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jun 20 15:27:17 2015 UTC (3 years, 1 month ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Version bump. Remove old.

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

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/pycountry/pycountry-1.10.ebuild,v 1.1 2014/12/15 08:56:28 idella4 Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 )
8
9 inherit distutils-r1
10
11 DESCRIPTION="ISO country, subdivision, language, currency and script definitions and their translations"
12 HOMEPAGE="http://pypi.python.org/pypi/pycountry"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ia64 ~sparc ~ppc ~x86"
18 IUSE="test"
19
20 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
21 test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
22
23 python_test() {
24 # https://bitbucket.org/techtonik/pycountry/issue/8/test_locales-pycountry-015-pypy
25 pushd "${BUILD_DIR}"/lib > /dev/null
26 if [[ "${EPYTHON}" == pypy || "${EPYTHON}" == pypy3 ]]; then
27 sed -e 's:test_locales:_&:' -i pycountry/tests/test_general.py || die
28 fi
29 py.test ${PN}/tests/test_general.py || die
30 popd > /dev/null
31 }

  ViewVC Help
Powered by ViewVC 1.1.20