kmos 2795ba2341 Bump the REVISION on all ports that use the python2 version of
py-setuptools.

Also change the lang/python module to use the new
devel/py2-setuptools for python2 ports

ok sthen@
2021-05-21 19:50:21 +00:00

34 lines
709 B
Makefile

# $OpenBSD: Makefile,v 1.8 2021/05/21 19:50:36 kmos Exp $
COMMENT = encoder, decoder, and lint/validator for JSON
DISTNAME = demjson-${MODPY_EGG_VERSION}
MODPY_EGG_VERSION = 2.2.4
MODPY_PI = Yes
PKGNAME = py-${DISTNAME}
REVISION = 4
CATEGORIES = textproc devel
# LGPLv3
PERMIT_PACKAGE = Yes
FLAVORS = python3
FLAVOR ?=
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
TEST_DEPENDS += ${FULLPKGNAME}:${FULLPKGPATH}
do-test:
.if ${FLAVOR:Mpython3}
cd ${WRKSRC}/test && 2to3-${MODPY_VERSION} -w test_demjson.py
.endif
cd ${WRKSRC}/test && ${MODPY_BIN} -m unittest test_demjson
post-install:
mv ${PREFIX}/bin/jsonlint ${PREFIX}/bin/jsonlint${MODPY_BIN_SUFFIX}
.include <bsd.port.mk>