pkgsrc/geography/py-pycountry/Makefile
rodent c35ad1a6b8 Import py27-pycountry-1.10 as geography/py-pycountry.
pycountry provides the ISO databases for the standards:

639
    Languages
3166
    Countries
3166-3
    Deleted countries
3166-2
    Subdivisions of countries
4217
    Currencies
15924
    Scripts

The package includes a copy from Debian's pkg-isocodes and makes the data
accessible through a Python API.

Translation files for the various strings are included as well.
2014-12-06 15:18:29 +00:00

28 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2014/12/06 15:18:29 rodent Exp $
DISTNAME= pycountry-1.10
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= geography python
MASTER_SITES= https://pypi.python.org/packages/source/p/pycountry/
EXTRACT_SUFX= .zip
MAINTAINER= kamel.derouiche@gmail.com
HOMEPAGE= https://pypi.python.org/packages/source/p/pycountry/
COMMENT= ISO country, subdivision, language, currency and script
LICENSE= gnu-lgpl-v2.1
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= # none
do-test:
${RUN} cd ${WRKSRC}/src/pycountry; ${SETENV} ${TEST_ENV} ${PYTHONBIN} test_general.py
post-install:
${CHMOD} -x ${DESTDIR}${PREFIX}/${PYSITELIB}/${EGG_INFODIR}/*
${CHMOD} -x ${DESTDIR}${PREFIX}/${PYSITELIB}/pycountry/databases/*.xml
${CHMOD} -x ${DESTDIR}${PREFIX}/${PYSITELIB}/pycountry/locales/*/LC_MESSAGES/*.mo
${CHMOD} -x ${DESTDIR}${PREFIX}/${PYSITELIB}/pycountry/locales/*/LC_MESSAGES/*.po
${CHMOD} -x ${DESTDIR}${PREFIX}/${PYSITELIB}/pycountry/tests/test_general.py
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"