| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: versioned_dependencies.mk,v 1.16 2014/12/05 21:44:10 rodent Exp $ | | 1 | # $NetBSD: versioned_dependencies.mk,v 1.17 2014/12/13 09:05:30 obache Exp $ |
2 | # | | 2 | # |
3 | # This file determines which separate distribution of a Python | | 3 | # This file determines which separate distribution of a Python |
4 | # package is used as dependency, depending on the Python version | | 4 | # package is used as dependency, depending on the Python version |
5 | # used. | | 5 | # used. |
6 | # | | 6 | # |
7 | # === User-settable variables === | | 7 | # === User-settable variables === |
8 | # | | 8 | # |
9 | # PYTHON_VERSIONED_DEPENDENCIES | | 9 | # PYTHON_VERSIONED_DEPENDENCIES |
10 | # The Python package which should be added as a dependency. | | 10 | # The Python package which should be added as a dependency. |
11 | # | | 11 | # |
12 | # Possible values: dateutil | | 12 | # Possible values: dateutil |
13 | # Default: (nothing) | | 13 | # Default: (nothing) |
14 | # | | 14 | # |
| @@ -16,27 +16,26 @@ | | | @@ -16,27 +16,26 @@ |
16 | .include "../../lang/python/pyversion.mk" | | 16 | .include "../../lang/python/pyversion.mk" |
17 | | | 17 | |
18 | _SUPPORTED_PACKAGES=# empty | | 18 | _SUPPORTED_PACKAGES=# empty |
19 | _SUPPORTED_PACKAGES+=Pmw x11/py-Pmw x11/py-Pmw2 | | 19 | _SUPPORTED_PACKAGES+=Pmw x11/py-Pmw x11/py-Pmw2 |
20 | _SUPPORTED_PACKAGES+=X textproc/py-X2 textproc/py-X | | 20 | _SUPPORTED_PACKAGES+=X textproc/py-X2 textproc/py-X |
21 | _SUPPORTED_PACKAGES+=cairo graphics/py-cairo graphics/py-cairo3 | | 21 | _SUPPORTED_PACKAGES+=cairo graphics/py-cairo graphics/py-cairo3 |
22 | _SUPPORTED_PACKAGES+=dateutil time/py-dateutil time/py-dateutil2 | | 22 | _SUPPORTED_PACKAGES+=dateutil time/py-dateutil time/py-dateutil2 |
23 | _SUPPORTED_PACKAGES+=dns net/py-dns net/py-dns3 | | 23 | _SUPPORTED_PACKAGES+=dns net/py-dns net/py-dns3 |
24 | _SUPPORTED_PACKAGES+=ephem math/py-ephem math/py-ephem3 | | 24 | _SUPPORTED_PACKAGES+=ephem math/py-ephem math/py-ephem3 |
25 | _SUPPORTED_PACKAGES+=flup www/py-flup www/py-flup3 | | 25 | _SUPPORTED_PACKAGES+=flup www/py-flup www/py-flup3 |
26 | _SUPPORTED_PACKAGES+=google-api-python-client www/py-google-api-python-client www/py-google-api-python-client-py3 | | 26 | _SUPPORTED_PACKAGES+=google-api-python-client www/py-google-api-python-client www/py-google-api-python-client-py3 |
27 | _SUPPORTED_PACKAGES+=jsonlib textproc/py-jsonlib textproc/py-jsonlib3 | | 27 | _SUPPORTED_PACKAGES+=jsonlib textproc/py-jsonlib textproc/py-jsonlib3 |
28 | _SUPPORTED_PACKAGES+=python-digest www/py-python-digest www/py-python3-digest | | 28 | _SUPPORTED_PACKAGES+=python-digest www/py-python-digest www/py-python3-digest |
29 | _SUPPORTED_PACKAGES+=unittest2 devel/py-unittest2 devel/py-unittest2py3k | | | |
30 | | | 29 | |
31 | .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} | | 30 | .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} |
32 | _PKG_MATCHED= no | | 31 | _PKG_MATCHED= no |
33 | pkg:= ${pattern:C/:.*//} | | 32 | pkg:= ${pattern:C/:.*//} |
34 | type:= ${pattern:C/[^:]*//} | | 33 | type:= ${pattern:C/[^:]*//} |
35 | .for name py2dir py3dir in ${_SUPPORTED_PACKAGES} | | 34 | .for name py2dir py3dir in ${_SUPPORTED_PACKAGES} |
36 | .if "${pkg}" == "${name}" | | 35 | .if "${pkg}" == "${name}" |
37 | _PKG_MATCHED= yes | | 36 | _PKG_MATCHED= yes |
38 | .if ${PYPKGPREFIX} == "py26" || ${PYPKGPREFIX} == "py27" | | 37 | .if ${PYPKGPREFIX} == "py26" || ${PYPKGPREFIX} == "py27" |
39 | dir:= ${py2dir} | | 38 | dir:= ${py2dir} |
40 | .else | | 39 | .else |
41 | dir:= ${py3dir} | | 40 | dir:= ${py3dir} |
42 | .endif | | 41 | .endif |