Annotation of pkgsrc/lang/python/versioned_dependencies.mk, revision 1.2

1.2     ! wiz         1: # $NetBSD: versioned_dependencies.mk,v 1.1 2014/01/16 10:27:36 wiz Exp $
1.1       wiz         2: #
                      3: # This file determines which separate distribution of a Python
                      4: # package is used as dependency, depending on the Python version
                      5: # used.
                      6: #
                      7: # === User-settable variables ===
                      8: #
                      9: # PYTHON_VERSIONED_DEPENDENCIES
                     10: #       The Python package which should be added as a dependency.
                     11: #
                     12: #       Possible values: dateutil
                     13: #       Default: (nothing)
                     14: #
                     15: 
                     16: .include "../../lang/python/pyversion.mk"
                     17: 
                     18: _SUPPORTED_PACKAGES=# empty
                     19: #_SUPPORTED_PACKAGES+=cairo graphics/py-cairo graphics/py-cairo3
                     20: _SUPPORTED_PACKAGES+=dateutil time/py-dateutil time/py-dateutil2
1.2     ! wiz        21: _SUPPORTED_PACKAGES+=dns net/py-dns net/py-dns3
1.1       wiz        22: 
                     23: .for pkg in ${PYTHON_VERSIONED_DEPENDENCIES}
                     24: _PKG_MATCHED=  no
                     25: .for name py2dir py3dir in ${_SUPPORTED_PACKAGES}
                     26: .if ${pkg} == ${name}
                     27: _PKG_MATCHED=  yes
                     28: .if ${PYPKGPREFIX} == "py26" || ${PYPKGPREFIX} == "py27"
                     29: DEPENDS+=      ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${py2dir}
                     30: .else
                     31: DEPENDS+=      ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${py3dir}
                     32: .endif
                     33: .endif
                     34: .endfor
                     35: .if ${_PKG_MATCHED} == "no"
                     36: PKG_FAIL_REASON=       "${pkg} unsupported in PYTHON_PACKAGE_AUTOSWITCH"
                     37: .endif
                     38: .endfor

CVSweb <webmaster@jp.NetBSD.org>