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

1.38    ! wiz         1: # $NetBSD: versioned_dependencies.mk,v 1.37 2020/03/12 07:37:11 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.38    ! wiz        12: #       Possible values: Pmw X cherrypy dialog html2text ipython jsonlib more-itertools python-digest sphinx zipp
1.1       wiz        13: #       Default: (nothing)
                     14: #
                     15: 
                     16: .include "../../lang/python/pyversion.mk"
                     17: 
1.35      wiz        18: # format: short name for PYTHON_VERSIONED_DEPENDENCIES<space>python-2.x path<space>python-3.x path
1.25      rillig     19: _SUPPORTED_PACKAGES=   # empty
                     20: _SUPPORTED_PACKAGES+=  Pmw x11/py-Pmw x11/py-Pmw2
                     21: _SUPPORTED_PACKAGES+=  X textproc/py-X2 textproc/py-X
1.33      adam       22: _SUPPORTED_PACKAGES+=  cherrypy www/py-cherrypy17 www/py-cherrypy
1.25      rillig     23: _SUPPORTED_PACKAGES+=  dialog devel/py-dialog2 devel/py-dialog
1.38    ! wiz        24: _SUPPORTED_PACKAGES+=  html2text textproc/py-html2text-2019.8.11 textproc/py-html2text
1.28      adam       25: _SUPPORTED_PACKAGES+=  ipython devel/py-ipython5 devel/py-ipython
1.25      rillig     26: _SUPPORTED_PACKAGES+=  jsonlib textproc/py-jsonlib textproc/py-jsonlib3
1.36      wiz        27: _SUPPORTED_PACKAGES+=  more-itertools devel/py-more-itertools2 devel/py-more-itertools
1.25      rillig     28: _SUPPORTED_PACKAGES+=  python-digest www/py-python-digest www/py-python3-digest
1.34      adam       29: _SUPPORTED_PACKAGES+=  sphinx textproc/py-sphinx1 textproc/py-sphinx
1.37      wiz        30: _SUPPORTED_PACKAGES+=  zipp archivers/py-zipp1 archivers/py-zipp
1.1       wiz        31: 
1.9       wiz        32: .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES}
1.1       wiz        33: _PKG_MATCHED=  no
1.9       wiz        34: pkg:=  ${pattern:C/:.*//}
                     35: type:= ${pattern:C/[^:]*//}
1.25      rillig     36: .  for name py2dir py3dir in ${_SUPPORTED_PACKAGES}
                     37: .    if "${pkg}" == "${name}"
1.1       wiz        38: _PKG_MATCHED=  yes
1.25      rillig     39: .      if ${PYPKGPREFIX} == "py27"
1.9       wiz        40: dir:=  ${py2dir}
1.25      rillig     41: .      else
1.9       wiz        42: dir:=  ${py3dir}
1.25      rillig     43: .      endif
                     44: .      if "${type}" == ":link"
1.9       wiz        45: .include "../../${dir}/buildlink3.mk"
1.25      rillig     46: .      elif "${type}" == ":build"
1.10      wiz        47: BUILD_DEPENDS:=        ${BUILD_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.32      adam       48: .      elif "${type}" == ":test"
                     49: TEST_DEPENDS:= ${TEST_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.34      adam       50: .      elif "${type}" == ":tool"
                     51: TOOL_DEPENDS:= ${TOOL_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.25      rillig     52: .      else
1.10      wiz        53: DEPENDS:=      ${DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.25      rillig     54: .      endif
                     55: .    endif
                     56: .  endfor
                     57: .  if ${_PKG_MATCHED} == "no"
1.22      dbj        58: PKG_FAIL_REASON+=      "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES"
1.25      rillig     59: .  endif
1.1       wiz        60: .endfor

CVSweb <webmaster@jp.NetBSD.org>