diff options
author | rodent <rodent@pkgsrc.org> | 2014-01-10 02:21:53 +0000 |
---|---|---|
committer | rodent <rodent@pkgsrc.org> | 2014-01-10 02:21:53 +0000 |
commit | c6100628a800606206faab3a5bc7c9db56620604 (patch) | |
tree | a839b30ebf72b3186b0acb03343d0c695be1adda /www/py-flask-wtf | |
parent | bafcafd1105ba3427b5f1a426cf708243e6fe9be (diff) | |
download | pkgsrc-c6100628a800606206faab3a5bc7c9db56620604.tar.gz |
Set py-wtforms acceptable dependency versions based on documentation. Added
options framework to allow user to run the unit tests during the build.
Requires py-nose and py-flask-babel, but is disabled by default.
Diffstat (limited to 'www/py-flask-wtf')
-rw-r--r-- | www/py-flask-wtf/Makefile | 12 | ||||
-rw-r--r-- | www/py-flask-wtf/options.mk | 13 |
2 files changed, 20 insertions, 5 deletions
diff --git a/www/py-flask-wtf/Makefile b/www/py-flask-wtf/Makefile index 71d3b64435a..9c911cec7ed 100644 --- a/www/py-flask-wtf/Makefile +++ b/www/py-flask-wtf/Makefile @@ -1,9 +1,10 @@ -# $NetBSD: Makefile,v 1.7 2014/01/01 17:51:49 kleink Exp $ +# $NetBSD: Makefile,v 1.8 2014/01/10 02:21:53 rodent Exp $ DISTNAME= Flask-WTF-0.9.4 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} CATEGORIES= www python -MASTER_SITES= http://pypi.python.org/packages/source/F/Flask-WTF/ +MASTER_SITES= https://pypi.python.org/packages/source/F/Flask-WTF/ +FETCH_USING= curl MAINTAINER= kleink@NetBSD.org HOMEPAGE= http://github.com/lepture/flask-wtf @@ -15,10 +16,11 @@ USE_LANGUAGES= # empty PYTHON_VERSIONS_INCLUDE_3X= yes PYTHON_VERSIONS_INCOMPATIBLE= 31 32 -EGG_NAME= ${DISTNAME:S/-/_/} +EGG_NAME= ${DISTNAME:S/-/_/1} -DEPENDS+= ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask -DEPENDS+= ${PYPKGPREFIX}-wtforms>=1.0.5:../../www/py-wtforms +.include "options.mk" +DEPENDS+= ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask +DEPENDS+= ${PYPKGPREFIX}-wtforms>=1.0.5<2.0:../../www/py-wtforms .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/py-flask-wtf/options.mk b/www/py-flask-wtf/options.mk new file mode 100644 index 00000000000..936c0d978bf --- /dev/null +++ b/www/py-flask-wtf/options.mk @@ -0,0 +1,13 @@ +# $NetBSD: options.mk,v 1.1 2014/01/10 02:21:53 rodent Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.py-flask-wtf +PKG_SUPPORTED_OPTIONS= tests +PKG_SUGGESTED_OPTIONS+= # blank + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mtests) +DEPENDS+= ${PYPKGPREFIX}-flask-babel-[0-9]*:../../www/py-flask-babel +DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose +PYSETUPBUILDTARGET= test +.endif |