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

1.25    ! rillig      1: # $NetBSD: versioned_dependencies.mk,v 1.24 2016/06/30 18:03:46 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: 
1.25    ! rillig     18: _SUPPORTED_PACKAGES=   # empty
        !            19: _SUPPORTED_PACKAGES+=  Pmw x11/py-Pmw x11/py-Pmw2
        !            20: _SUPPORTED_PACKAGES+=  X textproc/py-X2 textproc/py-X
        !            21: _SUPPORTED_PACKAGES+=  cairo graphics/py-cairo graphics/py-cairo3
        !            22: _SUPPORTED_PACKAGES+=  dateutil time/py-dateutil time/py-dateutil
        !            23: _SUPPORTED_PACKAGES+=  dialog devel/py-dialog2 devel/py-dialog
        !            24: _SUPPORTED_PACKAGES+=  ephem math/py-ephem math/py-ephem3
        !            25: _SUPPORTED_PACKAGES+=  flup www/py-flup www/py-flup3
        !            26: _SUPPORTED_PACKAGES+=  gobject devel/py-gobject devel/py-gobject3
        !            27: _SUPPORTED_PACKAGES+=  google-api-python-client www/py-google-api-python-client www/py-google-api-python-client-py3
        !            28: _SUPPORTED_PACKAGES+=  jsonlib textproc/py-jsonlib textproc/py-jsonlib3
        !            29: _SUPPORTED_PACKAGES+=  python-digest www/py-python-digest www/py-python3-digest
1.1       wiz        30: 
1.9       wiz        31: .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES}
1.1       wiz        32: _PKG_MATCHED=  no
1.9       wiz        33: pkg:=  ${pattern:C/:.*//}
                     34: type:= ${pattern:C/[^:]*//}
1.25    ! rillig     35: .  for name py2dir py3dir in ${_SUPPORTED_PACKAGES}
        !            36: .    if "${pkg}" == "${name}"
1.1       wiz        37: _PKG_MATCHED=  yes
1.25    ! rillig     38: .      if ${PYPKGPREFIX} == "py27"
1.9       wiz        39: dir:=  ${py2dir}
1.25    ! rillig     40: .      else
1.9       wiz        41: dir:=  ${py3dir}
1.25    ! rillig     42: .      endif
        !            43: .      if "${type}" == ":link"
1.9       wiz        44: .include "../../${dir}/buildlink3.mk"
1.25    ! rillig     45: .      elif "${type}" == ":build"
1.10      wiz        46: BUILD_DEPENDS:=        ${BUILD_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.25    ! rillig     47: .      else
1.10      wiz        48: DEPENDS:=      ${DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
1.25    ! rillig     49: .      endif
        !            50: .    endif
        !            51: .  endfor
        !            52: .  if ${_PKG_MATCHED} == "no"
1.22      dbj        53: PKG_FAIL_REASON+=      "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES"
1.25    ! rillig     54: .  endif
1.1       wiz        55: .endfor

CVSweb <webmaster@jp.NetBSD.org>