pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/py-sqlite3 py-sqlite3: fix build with python...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/994a9813ce36
branches:  trunk
changeset: 387575:994a9813ce36
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Nov 01 18:46:15 2022 +0000

description:
py-sqlite3: fix build with python 3.11

diffstat:

 databases/py-sqlite3/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 7b077a5912fe -r 994a9813ce36 databases/py-sqlite3/Makefile
--- a/databases/py-sqlite3/Makefile     Tue Nov 01 18:29:31 2022 +0000
+++ b/databases/py-sqlite3/Makefile     Tue Nov 01 18:46:15 2022 +0000
@@ -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 @@
 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