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.
This commit is contained in:
parent
3c07440b6c
commit
64d54b6a46
2 changed files with 20 additions and 5 deletions
|
@ -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}
|
||||
|
||||
.include "options.mk"
|
||||
|
||||
DEPENDS+= ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask
|
||||
DEPENDS+= ${PYPKGPREFIX}-wtforms>=1.0.5:../../www/py-wtforms
|
||||
|
||||
DEPENDS+= ${PYPKGPREFIX}-wtforms>=1.0.5<2.0:../../www/py-wtforms
|
||||
.include "../../lang/python/egg.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
13
www/py-flask-wtf/options.mk
Normal file
13
www/py-flask-wtf/options.mk
Normal file
|
@ -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
|
Loading…
Reference in a new issue