# $NetBSD: Makefile,v 1.19 2019/07/05 07:58:54 adam Exp $ DISTNAME= regex-2019.06.08 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= textproc python 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 ${_PYTHON_VERSION} == 27 TESTDIR= ${WRKSRC}/regex_2/regex/test .else TESTDIR= ${WRKSRC}/regex_3/regex/test .endif EGG_NAME= ${DISTNAME:S/.0/./g} do-test: cd ${TESTDIR} && ${PYTHONBIN} test_regex.py .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk"