aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2014-12-17 17:40:04 +0800
committerrm <rm@FreeBSD.org>2014-12-17 17:40:04 +0800
commit0139ecdc77cf0a7a87f8542e4fbdb5331bc66b7b (patch)
tree5f6cd412cc2f699abfe4910dd59eb05517e320ba
parent6963d56989e6070b5934580e1de74fa592cb1f26 (diff)
downloadfreebsd-ports-gnome-0139ecdc77cf0a7a87f8542e4fbdb5331bc66b7b.tar.gz
freebsd-ports-gnome-0139ecdc77cf0a7a87f8542e4fbdb5331bc66b7b.tar.zst
freebsd-ports-gnome-0139ecdc77cf0a7a87f8542e4fbdb5331bc66b7b.zip
Simple integration of Flask and WTForms, including CSRF, file upload
and Recaptcha integration. WWW: https://flask-wtf.readthedocs.org/en/latest/
-rw-r--r--www/Makefile1
-rw-r--r--www/py-flask-wtf/Makefile32
-rw-r--r--www/py-flask-wtf/distinfo2
-rw-r--r--www/py-flask-wtf/pkg-descr4
4 files changed, 39 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index aa49979f94c6..c3aae0e6bbc1 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1536,6 +1536,7 @@
SUBDIR += py-flask-flatpages
SUBDIR += py-flask-sockets
SUBDIR += py-flask-uploads
+ SUBDIR += py-flask-wtf
SUBDIR += py-flexget
SUBDIR += py-flup
SUBDIR += py-formalchemy
diff --git a/www/py-flask-wtf/Makefile b/www/py-flask-wtf/Makefile
new file mode 100644
index 000000000000..79751614e101
--- /dev/null
+++ b/www/py-flask-wtf/Makefile
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+PORTNAME= Flask-WTF
+PORTVERSION= 0.10.3
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= rm@FreeBSD.org
+COMMENT= Simple integration of Flask and WTForms
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>0:${PORTSDIR}/www/py-flask \
+ ${PYTHON_PKGNAMEPREFIX}werkzeug>0:${PORTSDIR}/www/py-werkzeug \
+ ${PYTHON_PKGNAMEPREFIX}wtforms>0:${PORTSDIR}/textproc/py-wtforms
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \
+ ${PYTHON_PKGNAMEPREFIX}Flask-Babel>0:${PORTSDIR}/devel/py-flask-babel
+
+OPTIONS_DEFINE= TESTS
+TESTS_DESC= Install test suite dependencies
+TESTS_BUILD_DEPENDS= ${RUN_DEPENDS} \
+ ${TEST_DEPENDS}
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>
diff --git a/www/py-flask-wtf/distinfo b/www/py-flask-wtf/distinfo
new file mode 100644
index 000000000000..ec7961a12408
--- /dev/null
+++ b/www/py-flask-wtf/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Flask-WTF-0.10.3.tar.gz) = 40da66462df074c2a0fd209e6047972bc226125f6c484c8e367ea10e71ddd718
+SIZE (Flask-WTF-0.10.3.tar.gz) = 247240
diff --git a/www/py-flask-wtf/pkg-descr b/www/py-flask-wtf/pkg-descr
new file mode 100644
index 000000000000..13939fe937b6
--- /dev/null
+++ b/www/py-flask-wtf/pkg-descr
@@ -0,0 +1,4 @@
+Simple integration of Flask and WTForms, including CSRF, file upload
+and Recaptcha integration.
+
+WWW: https://flask-wtf.readthedocs.org/en/latest/