jung a4b20df465 update py-jinja2 to 2.10
conditional byte-compile and install asyncfilter.py and asyncsupport.py, as not
imported in python<3.6 (https://github.com/pallets/jinja/issues/653)

ok maintainer
2018-02-18 21:23:44 +00:00

36 lines
707 B
Makefile

# $OpenBSD: Makefile,v 1.25 2018/02/18 21:23:44 jung Exp $
COMMENT = fast, optionally sandboxed, Python template engine
MODPY_EGG_VERSION = 2.10
DISTNAME = Jinja2-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME:L}
GH_ACCOUNT= pallets
GH_PROJECT= jinja
GH_TAGNAME= ${MODPY_EGG_VERSION}
CATEGORIES = www devel
HOMEPAGE = http://jinja.pocoo.org/
MAINTAINER = frantisek holop <minusf@obiit.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
RUN_DEPENDS = textproc/py-MarkupSafe${MODPY_FLAVOR}
TEST_DEPENDS = ${RUN_DEPENDS} \
devel/py-test${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
MODPY_SETUPTOOLS = Yes
do-test:
cd ${WRKSRC} && ${MODPY_BIN} -m pytest
.include <bsd.port.mk>