diff options
author | wiz <wiz@pkgsrc.org> | 2016-08-27 20:42:47 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2016-08-27 20:42:47 +0000 |
commit | 91723bfd92587f2aab42de93544ad8a13a2e6780 (patch) | |
tree | bda0105216fb639f8f30a44f0a33c0e54a601f4c | |
parent | 42cc9b2f0e07e019b3b005108c56432ad8cbec65 (diff) | |
download | pkgsrc-91723bfd92587f2aab42de93544ad8a13a2e6780.tar.gz |
Add PYVERSSUFFIX to PLIST and FILES substitutions
Used by many python packages with versioned binaries.
-rw-r--r-- | lang/python/extension.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk index 24a0f64fca5..f2e624b6740 100644 --- a/lang/python/extension.mk +++ b/lang/python/extension.mk @@ -1,4 +1,4 @@ -# $NetBSD: extension.mk,v 1.48 2016/07/09 10:00:26 rillig Exp $ +# $NetBSD: extension.mk,v 1.49 2016/08/27 20:42:47 wiz Exp $ .include "../../lang/python/pyversion.mk" @@ -57,8 +57,12 @@ INSTALL_ENV+= PKGSRC_PYTHON_NO_EGG=defined .if defined(PY_PATCHPLIST) PLIST_SUBST+= PYINC=${PYINC} PYLIB=${PYLIB} PYSITELIB=${PYSITELIB} +PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} .endif +# mostly for ALTERNATIVES files +FILES_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} + # prepare Python>=3.2 bytecode file location change # http://www.python.org/dev/peps/pep-3147/ .if empty(_PYTHON_VERSION:M2?) |