blob: bfc06a11f7a5de87148433ae601ba608de2deba2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.25 2019/04/07 16:05:38 adam Exp $
DISTNAME= Jinja2-2.10.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=J/Jinja2/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://jinja.pocoo.org/
COMMENT= Small but fast and easy to use stand-alone template engine
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-babel>=0.8:../../devel/py-babel
DEPENDS+= ${PYPKGPREFIX}-markupsafe>=0.23:../../textproc/py-markupsafe
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
USE_LANGUAGES= # none
SUBST_CLASSES+= unicode
SUBST_FILES.unicode= jinja2/*.py
SUBST_STAGE.unicode= pre-install
SUBST_SED.unicode+= -e "s,u',',g"
SUBST_SED.unicode+= -e 's,u",",g'
.include "../../lang/python/pyversion.mk"
# async byte-compilation fails for Python < 3.6
# see https://github.com/pallets/jinja/issues/643
PLIST_VARS+= async
.if ${_PYTHON_VERSION} == 36 || ${_PYTHON_VERSION} == 37
PLIST.async= yes
.endif
PYSETUPTESTTARGET= pytest
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
|