Fri May 10 10:07:26 2024 UTC (18d)
versioned_dependencies.mk: devel/py-setuptools_scm5 and devel/py-test4 are no longer around


(adam)
diff -r1.111 -r1.112 pkgsrc/lang/python/versioned_dependencies.mk

cvs diff -r1.111 -r1.112 pkgsrc/lang/python/versioned_dependencies.mk (expand / switch to unified diff)

--- pkgsrc/lang/python/versioned_dependencies.mk 2024/05/05 20:22:52 1.111
+++ pkgsrc/lang/python/versioned_dependencies.mk 2024/05/10 10:07:26 1.112
@@ -1,57 +1,51 @@ @@ -1,57 +1,51 @@
1# $NetBSD: versioned_dependencies.mk,v 1.111 2024/05/05 20:22:52 wiz Exp $ 1# $NetBSD: versioned_dependencies.mk,v 1.112 2024/05/10 10:07:26 adam Exp $
2# 2#
3# This file determines which separate distribution of a Python 3# This file determines which separate distribution of a Python
4# package is used as dependency, depending on the Python version 4# package is used as dependency, depending on the Python version
5# used. 5# used.
6# 6#
7# === User-settable variables === 7# === User-settable variables ===
8# 8#
9# PYTHON_VERSIONED_DEPENDENCIES 9# PYTHON_VERSIONED_DEPENDENCIES
10# The Python package which should be added as a dependency. 10# The Python package which should be added as a dependency.
11# 11#
12# Possible values: OpenSSL cryptography dns setuptools_scm test 12# Possible values: OpenSSL cryptography dns
13# Default: (nothing) 13# Default: (nothing)
14# 14#
15 15
16.include "../../lang/python/pyversion.mk" 16.include "../../lang/python/pyversion.mk"
17 17
18# _PY_VERS_PKG.${PYTHON_VERSION}.${pkg} is the path used for the dependency 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 19# for a specific Python version. This can be "missing", if this Python
20# version is not supported for this package. 20# version is not supported for this package.
21# 21#
22# _PY_VERS_PKG.default.${pkg} is the fallback version if a specific version 22# _PY_VERS_PKG.default.${pkg} is the fallback version if a specific version
23# isn't known. 23# isn't known.
24# 24#
25# _PY_VERS_PKG.dependency.${PKG} flags packages that need Rust-specific 25# _PY_VERS_PKG.dependency.${PKG} flags packages that need Rust-specific
26# handling. 26# handling.
27 27
28_PY_VERS_PKG.default.OpenSSL= security/py-OpenSSL 28_PY_VERS_PKG.default.OpenSSL= security/py-OpenSSL
29_PY_VERS_PKG.27.OpenSSL= security/py27-OpenSSL 29_PY_VERS_PKG.27.OpenSSL= security/py27-OpenSSL
30_PY_VERS_PKG.dependency.OpenSSL= yes 30_PY_VERS_PKG.dependency.OpenSSL= yes
31 31
32_PY_VERS_PKG.default.cryptography= security/py-cryptography 32_PY_VERS_PKG.default.cryptography= security/py-cryptography
33_PY_VERS_PKG.27.cryptography= security/py27-cryptography 33_PY_VERS_PKG.27.cryptography= security/py27-cryptography
34_PY_VERS_PKG.dependency.cryptography= yes 34_PY_VERS_PKG.dependency.cryptography= yes
35 35
36_PY_VERS_PKG.default.dns= net/py-dns 36_PY_VERS_PKG.default.dns= net/py-dns
37_PY_VERS_PKG.27.dns= net/py-dns1 37_PY_VERS_PKG.27.dns= net/py-dns1
38 38
39_PY_VERS_PKG.default.setuptools_scm= devel/py-setuptools_scm 
40_PY_VERS_PKG.27.setuptools_scm= devel/py-setuptools_scm5 
41 
42_PY_VERS_PKG.default.test= devel/py-test 
43_PY_VERS_PKG.27.test= devel/py-test4 
44 
45.for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} 39.for pattern in ${PYTHON_VERSIONED_DEPENDENCIES}
46pkg:= ${pattern:C/:.*//} 40pkg:= ${pattern:C/:.*//}
47type:= ${pattern:C/[^:]*//} 41type:= ${pattern:C/[^:]*//}
48dir:= ${_PY_VERS_PKG.${_PYTHON_VERSION}.${pkg}:U${_PY_VERS_PKG.default.${pkg}:Umissing}} 42dir:= ${_PY_VERS_PKG.${_PYTHON_VERSION}.${pkg}:U${_PY_VERS_PKG.default.${pkg}:Umissing}}
49. if ${dir} == "missing" 43. if ${dir} == "missing"
50PKG_FAIL_REASON+= "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES" 44PKG_FAIL_REASON+= "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES"
51. else 45. else
52. if ${_PY_VERS_PKG.dependency.${pkg}:Uno} == "yes" 46. if ${_PY_VERS_PKG.dependency.${pkg}:Uno} == "yes"
53. include "../../${_PY_VERS_PKG.default.${pkg}}/dependency.mk" 47. include "../../${_PY_VERS_PKG.default.${pkg}}/dependency.mk"
54. endif 48. endif
55. if "${type}" == ":link" 49. if "${type}" == ":link"
56.include "../../${dir}/buildlink3.mk" 50.include "../../${dir}/buildlink3.mk"
57. elif "${type}" == ":build" 51. elif "${type}" == ":build"