Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= Jinja2 |
4 |
PORTNAME= Jinja2 |
5 |
PORTVERSION= 2.8 |
5 |
PORTVERSION= 2.8.1 |
6 |
CATEGORIES= devel python |
6 |
CATEGORIES= devel python |
7 |
MASTER_SITES= CHEESESHOP |
7 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 18-24
Link Here
|
18 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MarkupSafe>=0.18:textproc/py-MarkupSafe |
18 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MarkupSafe>=0.18:textproc/py-MarkupSafe |
19 |
|
19 |
|
20 |
NO_ARCH= yes |
20 |
NO_ARCH= yes |
21 |
USES= python |
21 |
USES= python:-2.7 |
22 |
.if empty(PKGNAMESUFFIX) |
22 |
.if empty(PKGNAMESUFFIX) |
23 |
USE_PYTHON= autoplist distutils |
23 |
USE_PYTHON= autoplist distutils |
24 |
.endif |
24 |
.endif |
Lines 29-39
Link Here
|
29 |
OPTIONS_DEFAULT?= BABEL |
29 |
OPTIONS_DEFAULT?= BABEL |
30 |
BABEL_DESC= Enable Babel extension |
30 |
BABEL_DESC= Enable Babel extension |
31 |
|
31 |
|
32 |
BABEL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=1.3:devel/py-babel |
32 |
BABEL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=2.3:devel/py-babel |
33 |
|
33 |
|
34 |
PY2TO3_CMD= ${LOCALBASE}/bin/2to3-${PYTHON_VER} |
|
|
35 |
PY2TO3_ARGS= --fix=all --no-diffs --nobackups --verbose --write |
36 |
|
37 |
.include <bsd.port.options.mk> |
34 |
.include <bsd.port.options.mk> |
38 |
|
35 |
|
39 |
.include <bsd.port.pre.mk> |
36 |
.include <bsd.port.pre.mk> |
Lines 58-66
Link Here
|
58 |
.if ${PORT_OPTIONS:MEXAMPLES} |
55 |
.if ${PORT_OPTIONS:MEXAMPLES} |
59 |
PORTEXAMPLES= * |
56 |
PORTEXAMPLES= * |
60 |
post-build: |
57 |
post-build: |
61 |
. if ${PYTHON_REL} >= 3000 |
|
|
62 |
${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/examples |
63 |
. endif |
64 |
${PYTHON_CMD} -m compileall ${WRKSRC}/examples ; \ |
58 |
${PYTHON_CMD} -m compileall ${WRKSRC}/examples ; \ |
65 |
${PYTHON_CMD} -O -m compileall ${WRKSRC}/examples |
59 |
${PYTHON_CMD} -O -m compileall ${WRKSRC}/examples |
66 |
|
60 |
|