Use the proper idiom to test the python FLAVOR
Using ".if empty(FLAVOR)" means you can't have FLAVORS unrelated to python handling. ".if !${FLAVOR:Mpython3}" is less readable but more generic. No functional change.
This commit is contained in:
parent
88bbcf8d8e
commit
48d9b9cc0e
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.39 2018/11/26 20:33:48 danj Exp $
|
||||
# $OpenBSD: Makefile,v 1.40 2019/01/04 13:27:13 jca Exp $
|
||||
|
||||
COMMENT-main = database toolkit for Python
|
||||
COMMENT-docs = documentation and examples for sqlalchemy
|
||||
@ -40,7 +40,7 @@ MAKE_ENV += PYTHONPATH=.
|
||||
TEST_DEPENDS = devel/py-test-xdist${MODPY_FLAVOR} \
|
||||
devel/py-mock${MODPY_FLAVOR}
|
||||
# On python3, sqlite3 is used.
|
||||
.if empty(FLAVOR)
|
||||
.if !${FLAVOR:Mpython3}
|
||||
TEST_DEPENDS += databases/py-sqlite2${MODPY_FLAVOR}>=2.8.3
|
||||
.endif
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.10 2018/11/10 20:52:35 pvk Exp $
|
||||
# $OpenBSD: Makefile,v 1.11 2019/01/04 13:27:13 jca Exp $
|
||||
|
||||
COMMENT = asynchronous networking Python framework
|
||||
|
||||
@ -41,7 +41,7 @@ RUN_DEPENDS = devel/py-hamcrest${MODPY_FLAVOR} \
|
||||
FLAVORS = python3
|
||||
FLAVOR ?=
|
||||
|
||||
.if empty(FLAVOR)
|
||||
.if !${FLAVOR:Mpython3}
|
||||
RUN_DEPENDS += devel/py-SOAPpy
|
||||
.endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user