diff options
Diffstat (limited to 'textproc/py-regex/Makefile')
-rw-r--r-- | textproc/py-regex/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/textproc/py-regex/Makefile b/textproc/py-regex/Makefile new file mode 100644 index 00000000000..aeaa2c9a13f --- /dev/null +++ b/textproc/py-regex/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2017/09/29 13:49:25 joerg Exp $ + +DISTNAME= regex-2017.07.28 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_PYPI:=r/regex/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://bitbucket.org/mrabarnett/mrab-regex +COMMENT= Alternative regular expression module, to replace re. +LICENSE= python-software-foundation + +.include "../../lang/python/pyversion.mk" + +.if !empty(_PYTHON_VERSION:M3*) +TESTDIR=${WRKSRC}/Python3 +.else +TESTDIR=${WRKSRC}/Python2 +.endif + +do-test: + cd ${TESTDIR} && ${PYTHONBIN} test_regex.py + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" |