Lines 1-39
Link Here
|
1 |
PORTNAME= wtforms |
1 |
PORTNAME= wtforms |
2 |
PORTVERSION= 2.1 |
2 |
DISTVERSION= 3.1.1 |
3 |
PORTREVISION= 1 |
|
|
4 |
CATEGORIES= textproc python |
3 |
CATEGORIES= textproc python |
5 |
MASTER_SITES= PYPI |
4 |
MASTER_SITES= PYPI |
6 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
7 |
DISTNAME= WTForms-${DISTVERSION} |
|
|
8 |
|
6 |
|
9 |
MAINTAINER= rm@FreeBSD.org |
7 |
MAINTAINER= rm@FreeBSD.org |
10 |
COMMENT= Flexible forms validation and rendering library for python |
8 |
COMMENT= Flexible forms validation and rendering library for python |
11 |
WWW= http://wtforms.simplecodes.com/ |
9 |
WWW= http://wtforms.simplecodes.com/ |
12 |
|
10 |
|
13 |
LICENSE= BSD3CLAUSE |
11 |
LICENSE= BSD3CLAUSE |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE.rst |
15 |
|
13 |
|
16 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>0:devel/py-babel@${PY_FLAVOR} |
14 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>0:devel/py-babel@${PY_FLAVOR} \ |
|
|
15 |
${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}markupsafe>0:textproc/py-markupsafe@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}Pallets-Sphinx-Themes>0:textproc/py-pallets-sphinx-themes@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}sphinx-issues>0:textproc/py-sphinx-issues@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}sphinxcontrib-log-cabinet>0:textproc/py-sphinxcontrib-log-cabinet@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} |
24 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>0:devel/py-babel@${PY_FLAVOR} \ |
25 |
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} |
17 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ |
26 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}sqlalchemy10>0:databases/py-sqlalchemy10@${PY_FLAVOR} \ |
27 |
${PYTHON_PKGNAMEPREFIX}email-validator>=0:mail/py-email-validator@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}pep8>0:devel/pep8@${PY_FLAVOR} \ |
28 |
${PYTHON_PKGNAMEPREFIX}pre-commit>0:devel/py-pre-commit@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} |
29 |
${PYTHON_PKGNAMEPREFIX}pyproject-flake8>0:devel/py-pyproject-flake8@${PY_FLAVOR} \ |
|
|
30 |
${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} |
21 |
|
31 |
|
22 |
OPTIONS_DEFINE= DOCS |
32 |
USES= python |
|
|
33 |
USE_PYTHON= autoplist pep517 |
23 |
|
34 |
|
24 |
NO_ARCH= yes |
35 |
NO_ARCH= yes |
25 |
USES= python zip |
|
|
26 |
USE_PYTHON= autoplist distutils |
27 |
|
36 |
|
|
|
37 |
PLIST_FILES= share/man/man1/${PORTNAME}.1.gz |
28 |
PORTDOCS= * |
38 |
PORTDOCS= * |
29 |
|
39 |
|
|
|
40 |
OPTIONS_DEFINE= DOCS EMAIL |
41 |
OPTIONS_DEFAULT= EMAIL |
42 |
|
43 |
EMAIL_DESC= Form email validation |
44 |
|
45 |
EMAIL_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}email-validator>=0:mail/py-email-validator@${PY_FLAVOR} |
46 |
EMAIL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}email-validator>=0:mail/py-email-validator@${PY_FLAVOR} |
47 |
|
48 |
_DOC_BUILD_ENV= PYTHONPATH="${PYTHONPATH}:${INSTALL_WRKSRC}${PYTHON_SITELIBDIR}" |
49 |
|
50 |
do-build-DOCS-on: |
51 |
(cd ${WRKSRC}/docs && \ |
52 |
pip-${PYTHON_VER} install --ignore-installed --isolated \ |
53 |
--no-deps --root=${INSTALL_WRKSRC} ${WRKSRC}/dist/*.whl && \ |
54 |
${SETENV} ${_DOC_BUILD_ENV} sphinx-build-${PYTHON_VER} -M html \ |
55 |
. _build/html) |
56 |
|
57 |
post-build: |
58 |
(cd ${WRKSRC}/docs && \ |
59 |
pip-${PYTHON_VER} install --ignore-installed --isolated \ |
60 |
--no-deps --root=${INSTALL_WRKSRC} ${WRKSRC}/dist/*.whl && \ |
61 |
${SETENV} ${_DOC_BUILD_ENV} sphinx-build-${PYTHON_VER} -M man \ |
62 |
. _build/man) |
63 |
|
64 |
post-install: |
65 |
${INSTALL_MAN} ${WRKSRC}/docs/_build/man/man/*.1 \ |
66 |
${STAGEDIR}${PREFIX}/share/man/man1 |
67 |
|
30 |
post-install-DOCS-on: |
68 |
post-install-DOCS-on: |
31 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
69 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
32 |
(cd ${WRKSRC}/docs/html/ && ${COPYTREE_SHARE} _static/ ${STAGEDIR}${DOCSDIR}/) |
70 |
(cd ${WRKSRC}/docs/_build/html/html && \ |
33 |
(cd ${WRKSRC}/docs/html/ && ${CP} *.html ${STAGEDIR}${DOCSDIR}/) |
71 |
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/ "-not -name .buildinfo -not -regex ^./_sources.*") |
34 |
(cd ${WRKSRC}/docs/html/ && ${CP} *.js ${STAGEDIR}${DOCSDIR}/) |
|
|
35 |
|
72 |
|
36 |
do-test: |
73 |
do-test: |
37 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
74 |
@cd ${WRKSRC} && \ |
|
|
75 |
${SETENV} ${TEST_ENV} tox-${PYTHON_VER} -e ${PY_FLAVOR} |
38 |
|
76 |
|
39 |
.include <bsd.port.mk> |
77 |
.include <bsd.port.mk> |