pkgsrc/textproc/py-diff-match-patch/Makefile
adam 5fe3c7c671 py-diff-match-patch: updated to 20181111
Version v20181111:
- Rename module to diff-match-patch to supercede existing PyPI module
- Match existing module version scheme
- Update readme, tests, etc for import names
2020-07-09 08:44:15 +00:00

26 lines
818 B
Makefile

# $NetBSD: Makefile,v 1.2 2020/07/09 08:44:15 adam Exp $
DISTNAME= diff-match-patch-20181111
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=d/diff-match-patch/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/diff-match-patch-python/diff-match-patch
COMMENT= Robust algorithms for synchronizing plain text
LICENSE= apache-2.0
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools>=38.6.0:../../devel/py-setuptools
USE_LANGUAGES= # none
.include "../../lang/python/pyversion.mk"
do-test:
.if ${_PYTHON_VERSION} == 27
cd ${WRKSRC} && ${PYTHONBIN} diff_match_patch/tests/diff_match_patch_test_py2.py
.else
cd ${WRKSRC} && ${PYTHONBIN} diff_match_patch/tests/diff_match_patch_test.py
.endif
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"