https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274671

Yasuhito FUTATSUKI <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |dclub.org

--- Comment #45 from Yasuhito FUTATSUKI <[email protected]> 
---
devel/commitizen and textproc/py-towncrier uses PYTHON_VER as numeric and it
prevents making ports index.

diff --git a/devel/commitizen/Makefile b/devel/commitizen/Makefile
index 42cff50d24ed..1c259db61f51 100644
--- a/devel/commitizen/Makefile
+++ b/devel/commitizen/Makefile
@@ -32,6 +32,6 @@ NO_ARCH=      yes

 .include <bsd.port.mk>

-.if ${PYTHON_MAJOR_VER} == 3 && ${PYTHON_VER:E} < 10
+.if ${PYTHON_MAJOR_VER} == 3 && ${PYTHON_BASEVER:E} < 10
 PY_RDEPS+=     importlib-metadata>=8.0.0:devel/py-importlib-metadata
 .endif
diff --git a/textproc/py-towncrier/Makefile b/textproc/py-towncrier/Makefile
index 5a358a1aa2ba..40b1316c1aba 100644
--- a/textproc/py-towncrier/Makefile
+++ b/textproc/py-towncrier/Makefile
@@ -25,7 +25,7 @@ NO_ARCH=      yes

 .include <bsd.port.pre.mk>

-.if defined(PYTHON_VER) && ${PYTHON_VER} < 3.10
+.if defined(PYTHON_BASEVER) && ${PYTHON_BASEVER} < 3.10
 BUILD_DEPENDS+=       
${PYTHON_PKGNAMEPREFIX}importlib-metadata>=7.1.0:devel/py-importlib-metadata@${PY_FLAVOR}
\
               
${PYTHON_PKGNAMEPREFIX}importlib-resources>=6.4.0:devel/py-importlib-resources@${PY_FLAVOR}
 RUN_DEPENDS+= 
${PYTHON_PKGNAMEPREFIX}importlib-metadata>=7.1.0:devel/py-importlib-metadata@${PY_FLAVOR}
\

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to