| @@ -1,33 +1,34 @@ | | | @@ -1,33 +1,34 @@ |
1 | # $NetBSD: versioned_dependencies.mk,v 1.1 2014/01/16 10:27:36 wiz Exp $ | | 1 | # $NetBSD: versioned_dependencies.mk,v 1.2 2014/01/17 23:10:05 wiz 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 | # |
15 | | | 15 | |
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+=cairo graphics/py-cairo graphics/py-cairo3 | | 19 | #_SUPPORTED_PACKAGES+=cairo graphics/py-cairo graphics/py-cairo3 |
20 | _SUPPORTED_PACKAGES+=dateutil time/py-dateutil time/py-dateutil2 | | 20 | _SUPPORTED_PACKAGES+=dateutil time/py-dateutil time/py-dateutil2 |
| | | 21 | _SUPPORTED_PACKAGES+=dns net/py-dns net/py-dns3 |
21 | | | 22 | |
22 | .for pkg in ${PYTHON_VERSIONED_DEPENDENCIES} | | 23 | .for pkg in ${PYTHON_VERSIONED_DEPENDENCIES} |
23 | _PKG_MATCHED= no | | 24 | _PKG_MATCHED= no |
24 | .for name py2dir py3dir in ${_SUPPORTED_PACKAGES} | | 25 | .for name py2dir py3dir in ${_SUPPORTED_PACKAGES} |
25 | .if ${pkg} == ${name} | | 26 | .if ${pkg} == ${name} |
26 | _PKG_MATCHED= yes | | 27 | _PKG_MATCHED= yes |
27 | .if ${PYPKGPREFIX} == "py26" || ${PYPKGPREFIX} == "py27" | | 28 | .if ${PYPKGPREFIX} == "py26" || ${PYPKGPREFIX} == "py27" |
28 | DEPENDS+= ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${py2dir} | | 29 | DEPENDS+= ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${py2dir} |
29 | .else | | 30 | .else |
30 | DEPENDS+= ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${py3dir} | | 31 | DEPENDS+= ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${py3dir} |
31 | .endif | | 32 | .endif |
32 | .endif | | 33 | .endif |
33 | .endfor | | 34 | .endfor |