pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-link-grammar



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Mon Apr 29 00:12:29 UTC 2024

Modified Files:
        pkgsrc/textproc/py-link-grammar: Makefile

Log Message:
textproc/py-link-grammar: Enable for Python 3.12


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/textproc/py-link-grammar/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-link-grammar/Makefile
diff -u pkgsrc/textproc/py-link-grammar/Makefile:1.7 pkgsrc/textproc/py-link-grammar/Makefile:1.8
--- pkgsrc/textproc/py-link-grammar/Makefile:1.7        Sat Feb 10 10:13:42 2024
+++ pkgsrc/textproc/py-link-grammar/Makefile    Mon Apr 29 00:12:29 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2024/02/10 10:13:42 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2024/04/29 00:12:29 ryoon Exp $
 
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc
@@ -10,11 +10,16 @@ COMMENT=    Python binding of syntactic par
 
 DEPENDS+=      link-grammar-[0-9]*:../../textproc/link-grammar
 
-# not for 3.12: tries to use distutils
-PYTHON_VERSIONS_INCOMPATIBLE=  27 312
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 BUILDLINK_DEPMETHOD.python=    full
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYTHON_VERSION} > 311
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+.endif
+
 CONFIGURE_ARGS+=       --enable-python-bindings
 CONFIGURE_ARGS+=       PYTHON_VERSION=${PYVERSSUFFIX}
 



Home | Main Index | Thread Index | Old Index