From c6100628a800606206faab3a5bc7c9db56620604 Mon Sep 17 00:00:00 2001 From: rodent Date: Fri, 10 Jan 2014 02:21:53 +0000 Subject: 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. --- www/py-flask-wtf/Makefile | 12 +++++++----- www/py-flask-wtf/options.mk | 13 +++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 www/py-flask-wtf/options.mk (limited to 'www/py-flask-wtf') 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 -- cgit v1.2.3