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

1.12    ! asau        1: # $NetBSD: versioned_dependencies.mk,v 1.11 2014/01/31 11:26:12 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
1.6       wiz        19: _SUPPORTED_PACKAGES+=Pmw x11/py-Pmw x11/py-Pmw2
1.12    ! asau       20: _SUPPORTED_PACKAGES+=X textproc/py-X2 textproc/py-X
1.9       wiz        21: _SUPPORTED_PACKAGES+=cairo graphics/py-cairo graphics/py-cairo3
1.1       wiz        22: _SUPPORTED_PACKAGES+=dateutil time/py-dateutil time/py-dateutil2
1.2       wiz        23: _SUPPORTED_PACKAGES+=dns net/py-dns net/py-dns3
1.8       wiz        24: _SUPPORTED_PACKAGES+=ephem math/py-ephem math/py-ephem3
1.5       wiz        25: _SUPPORTED_PACKAGES+=flup www/py-flup www/py-flup3
1.4       wiz        26: _SUPPORTED_PACKAGES+=jsonlib textproc/py-jsonlib textproc/py-jsonlib3
1.11      wiz        27: _SUPPORTED_PACKAGES+=unittest2 devel/py-unittest2 devel/py-unittest2py3k
1.1       wiz        28: 
1.9       wiz        29: .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES}
1.1       wiz        30: _PKG_MATCHED=  no
1.9       wiz        31: pkg:=  ${pattern:C/:.*//}
                     32: type:= ${pattern:C/[^:]*//}
1.1       wiz        33: .for name py2dir py3dir in ${_SUPPORTED_PACKAGES}
1.3       wiz        34: .if "${pkg}" == "${name}"
1.1       wiz        35: _PKG_MATCHED=  yes
                     36: .if ${PYPKGPREFIX} == "py26" || ${PYPKGPREFIX} == "py27"
1.9       wiz        37: dir:=  ${py2dir}
1.1       wiz        38: .else
1.9       wiz        39: dir:=  ${py3dir}
                     40: .endif
                     41: .if "${type}" == ":link"
                     42: .include "../../${dir}/buildlink3.mk"
1.10      wiz        43: .elif "${type}" == ":build"
                     44: BUILD_DEPENDS:=        ${BUILD_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.9       wiz        45: .else
1.10      wiz        46: DEPENDS:=      ${DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.1       wiz        47: .endif
                     48: .endif
                     49: .endfor
                     50: .if ${_PKG_MATCHED} == "no"
1.9       wiz        51: PKG_FAIL_REASON=       "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES"
1.1       wiz        52: .endif
                     53: .endfor

CVSweb <webmaster@jp.NetBSD.org>