pkgsrc-Changes archive

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

CVS commit: pkgsrc/databases/py-sqlite3



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue Nov  1 18:46:15 UTC 2022

Modified Files:
        pkgsrc/databases/py-sqlite3: Makefile

Log Message:
py-sqlite3: fix build with python 3.11


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 pkgsrc/databases/py-sqlite3/Makefile

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

Modified files:

Index: pkgsrc/databases/py-sqlite3/Makefile
diff -u pkgsrc/databases/py-sqlite3/Makefile:1.43 pkgsrc/databases/py-sqlite3/Makefile:1.44
--- pkgsrc/databases/py-sqlite3/Makefile:1.43   Mon Apr 18 19:10:45 2022
+++ pkgsrc/databases/py-sqlite3/Makefile        Tue Nov  1 18:46:15 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2022/04/18 19:10:45 adam Exp $
+# $NetBSD: Makefile,v 1.44 2022/11/01 18:46:15 wiz Exp $
 
 PKGNAME=       ${PYPKGPREFIX}-sqlite3-${PY_DISTVERSION}
 PKGREVISION=   22
@@ -15,6 +15,15 @@ PYDISTUTILSPKG=              yes
 PY_SETUP_SUBST+=       SQLITE_PREFIX=${BUILDLINK_PREFIX.sqlite3}
 PYSETUPINSTALLARGS+=   --install-lib ${PREFIX}/${PYLIB}/lib-dynload
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYPKGPREFIX} == "py311"
+SUBST_CLASSES+=                py311
+SUBST_FILES.py311+=    setup.py
+SUBST_SED.py311+=      -e "s+'_sqlite/cache.c',+'_sqlite/blob.c',+"
+SUBST_STAGE.py311=     pre-build
+.endif
+
 .include "../../databases/sqlite3/buildlink3.mk"
 .include "../../lang/python/extension.mk"
 .include "../../lang/python/srcdist.mk"



Home | Main Index | Thread Index | Old Index