| @@ -1,41 +1,40 @@ | | | @@ -1,41 +1,40 @@ |
1 | # $NetBSD: options.mk,v 1.16 2019/10/21 21:45:40 adam Exp $ | | 1 | # $NetBSD: options.mk,v 1.17 2020/12/09 01:46:07 gutteridge Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.py-trytond | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.py-trytond |
4 | PKG_SUPPORTED_OPTIONS= cdecimal mysql pydot psycopg pytz simplejson sphinx | | 4 | PKG_SUPPORTED_OPTIONS= cdecimal mysql pydot psycopg pytz simplejson sphinx |
5 | PKG_SUGGESTED_OPTIONS+= psycopg pytz simplejson sphinx | | 5 | PKG_SUGGESTED_OPTIONS+= psycopg pytz simplejson sphinx |
6 | | | 6 | |
7 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
8 | | | 8 | |
9 | # XXX: Supports unoconv http://dag.wieers.com/home-made/unoconv/) option and | | 9 | # XXX Also supports converters/unoconv and textproc/py-Levenshtein options. |
10 | # XXX: python-Levenshtein (http://github.com/miohtama/python-Levenshtein) option | | | |
11 | | | 10 | |
12 | .if !empty(PKG_OPTIONS:Mcdecimal) | | 11 | .if !empty(PKG_OPTIONS:Mcdecimal) |
13 | PYTHON_VERSIONS_ACCEPTED= 27 # py-cdecimal is obsolete for that version and thus not available | | 12 | PYTHON_VERSIONS_ACCEPTED= 27 # py-cdecimal is obsolete for that version and thus not available |
14 | DEPENDS+= ${PYPKGPREFIX}-cdecimal-[0-9]*:../../math/py-cdecimal | | 13 | DEPENDS+= ${PYPKGPREFIX}-cdecimal-[0-9]*:../../math/py-cdecimal |
15 | .endif | | 14 | .endif |
16 | | | 15 | |
17 | .if !empty(PKG_OPTIONS:Mmysql) | | 16 | .if !empty(PKG_OPTIONS:Mmysql) |
18 | PYTHON_VERSIONS_ACCEPTED= 27 # py-mysqldb | | 17 | PYTHON_VERSIONS_ACCEPTED= 27 # py-mysqldb |
19 | DEPENDS+= ${PYPKGPREFIX}-mysqldb-[0-9]*:../../databases/py-mysqldb | | 18 | DEPENDS+= ${PYPKGPREFIX}-mysqldb-[0-9]*:../../databases/py-mysqldb |
20 | .endif | | 19 | .endif |
21 | | | 20 | |
22 | .if !empty(PKG_OPTIONS:Mpydot) | | 21 | .if !empty(PKG_OPTIONS:Mpydot) |
23 | DEPENDS+= ${PYPKGPREFIX}-dot-[0-9]*:../../graphics/py-dot | | 22 | DEPENDS+= ${PYPKGPREFIX}-dot-[0-9]*:../../graphics/py-dot |
24 | .endif | | 23 | .endif |
25 | | | 24 | |
26 | .if !empty(PKG_OPTIONS:Mpsycopg) | | 25 | .if !empty(PKG_OPTIONS:Mpsycopg) |
27 | DEPENDS+= ${PYPKGPREFIX}-psycopg2>=2:../../databases/py-psycopg2 | | 26 | DEPENDS+= ${PYPKGPREFIX}-psycopg2>=2:../../databases/py-psycopg2 |
28 | .endif | | 27 | .endif |
29 | | | 28 | |
30 | .if !empty(PKG_OPTIONS:Mpytz) | | 29 | .if !empty(PKG_OPTIONS:Mpytz) |
31 | DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz | | 30 | DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz |
32 | .endif | | 31 | .endif |
33 | | | 32 | |
34 | .if !empty(PKG_OPTIONS:Msimplejson) | | 33 | .if !empty(PKG_OPTIONS:Msimplejson) |
35 | DEPENDS+= ${PYPKGPREFIX}-simplejson-[0-9]*:../../converters/py-simplejson | | 34 | DEPENDS+= ${PYPKGPREFIX}-simplejson-[0-9]*:../../converters/py-simplejson |
36 | .endif | | 35 | .endif |
37 | | | 36 | |
38 | .if !empty(PKG_OPTIONS:Msphinx) | | 37 | .if !empty(PKG_OPTIONS:Msphinx) |
39 | PYTHON_VERSIONED_DEPENDENCIES= sphinx | | 38 | PYTHON_VERSIONED_DEPENDENCIES= sphinx |
40 | .include "../../lang/python/versioned_dependencies.mk" | | 39 | .include "../../lang/python/versioned_dependencies.mk" |
41 | .endif | | 40 | .endif |