pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-pygments Fix _PYTHON_VERSION check to avoi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/589a67f52aaa
branches:  trunk
changeset: 389009:589a67f52aaa
user:      abs <abs%pkgsrc.org@localhost>
date:      Mon Nov 28 20:54:40 2022 +0000

description:
Fix _PYTHON_VERSION check to avoid error

Replace .if ${_PYTHON_VERSION} < 38 with .if ${_PYTHON_VERSION} == 37
as otherwise will fail when ${_PYTHON_VERSION} is "none".

Triggered for "make clean-depends" for a package with
PYTHON_VERSIONS_ACCEPTED=27 which depends on textproc/py-pygments

diffstat:

 textproc/py-pygments/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 47093197f831 -r 589a67f52aaa textproc/py-pygments/Makefile
--- a/textproc/py-pygments/Makefile     Mon Nov 28 20:50:15 2022 +0000
+++ b/textproc/py-pygments/Makefile     Mon Nov 28 20:54:40 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2022/09/05 07:38:41 martin Exp $
+# $NetBSD: Makefile,v 1.44 2022/11/28 20:54:40 abs Exp $
 
 DISTNAME=      Pygments-2.13.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
@@ -19,7 +19,7 @@
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} < 38
+.if ${_PYTHON_VERSION} == 37
 DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
 .endif
 



Home | Main Index | Thread Index | Old Index