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

1.114   ! wiz         1: # $NetBSD: versioned_dependencies.mk,v 1.113 2024/05/10 10:24:49 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: #
1.114   ! wiz        12: #       Possible values: OpenSSL cryptography
1.1       wiz        13: #       Default: (nothing)
                     14: #
                     15: 
                     16: .include "../../lang/python/pyversion.mk"
                     17: 
1.90      joerg      18: # _PY_VERS_PKG.${PYTHON_VERSION}.${pkg} is the path used for the dependency
                     19: # for a specific Python version. This can be "missing", if this Python
                     20: # version is not supported for this package.
                     21: #
                     22: # _PY_VERS_PKG.default.${pkg} is the fallback version if a specific version
                     23: # isn't known.
                     24: #
                     25: # _PY_VERS_PKG.dependency.${PKG} flags packages that need Rust-specific
                     26: # handling.
                     27: 
                     28: _PY_VERS_PKG.default.OpenSSL=  security/py-OpenSSL
                     29: _PY_VERS_PKG.dependency.OpenSSL=       yes
                     30: 
                     31: _PY_VERS_PKG.default.cryptography=     security/py-cryptography
                     32: _PY_VERS_PKG.dependency.cryptography=  yes
                     33: 
1.9       wiz        34: .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES}
                     35: pkg:=  ${pattern:C/:.*//}
                     36: type:= ${pattern:C/[^:]*//}
1.90      joerg      37: dir:=  ${_PY_VERS_PKG.${_PYTHON_VERSION}.${pkg}:U${_PY_VERS_PKG.default.${pkg}:Umissing}}
                     38: .  if ${dir} == "missing"
                     39: PKG_FAIL_REASON+=      "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES"
                     40: .  else
                     41: .    if ${_PY_VERS_PKG.dependency.${pkg}:Uno} == "yes"
                     42: .      include "../../${_PY_VERS_PKG.default.${pkg}}/dependency.mk"
                     43: .    endif
                     44: .    if "${type}" == ":link"
1.9       wiz        45: .include "../../${dir}/buildlink3.mk"
1.90      joerg      46: .    elif "${type}" == ":build"
1.98      riastrad   47: TOOL_DEPENDS:= ${TOOL_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.90      joerg      48: .    elif "${type}" == ":test"
1.32      adam       49: TEST_DEPENDS:= ${TEST_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.90      joerg      50: .    elif "${type}" == ":tool"
1.34      adam       51: TOOL_DEPENDS:= ${TOOL_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.90      joerg      52: .    else
1.10      wiz        53: DEPENDS:=      ${DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.25      rillig     54: .    endif
                     55: .  endif
1.1       wiz        56: .endfor

CVSweb <webmaster@jp.NetBSD.org>