29 lines
1 KiB
Makefile
29 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"
|