33 lines
606 B
Makefile
33 lines
606 B
Makefile
COMMENT= Python library to manipulate gettext files
|
|
|
|
MODPY_EGG_VERSION = 1.1.1
|
|
DISTNAME = polib-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
|
|
CATEGORIES= textproc devel
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MODULES = lang/python
|
|
MODPY_PI = Yes
|
|
|
|
MODPY_PYBUILD = setuptools
|
|
|
|
FLAVOR = python3
|
|
FLAVORS = python3
|
|
|
|
# only used on test, but poisoned if not in BUILD_DEPENDS
|
|
BUILD_DEPENDS = devel/gettext,-tools
|
|
|
|
TEST_DEPENDS = devel/py-coverage${MODPY_FLAVOR}
|
|
|
|
SUBST_VARS += MODPY_MAJOR_VERSION
|
|
|
|
post-patch:
|
|
${SUBST_CMD} ${WRKSRC}/runtests.sh
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${MAKE_ENV} ./runtests.sh
|
|
|
|
.include <bsd.port.mk>
|