On Thu, 11 Jun 2026, Chris Billington wrote: > The present databases/sqlite3-tcl port is built with MODTCL_VERSION = 8.6, > producing /usr/local/lib/tcl/sqlite3/libsqlite3513.so Here is one way as a separate port. It has a run dep on the Tcl 8 version. The Tcl 8 version supplies all the files and here only the .so. This has the upside of leaving the current sqlite3-tcl port untouched, but a downside that this is a copy of another port, with minor changes - a future maintenance headache, and all for just one file. $ cd /usr/ports/databases && cp -a sqlite3-tcl sqlite3-tcl9 Then apply the patch, build, test, etc. Stu diff -Nurp /usr/ports/databases/sqlite3-tcl/Makefile ./Makefile --- /usr/ports/databases/sqlite3-tcl/Makefile Thu May 14 22:51:47 2026 +++ ./Makefile Thu Jun 11 07:46:34 2026 @@ -1,9 +1,9 @@ -COMMENT = Tcl bindings for SQLite3 +COMMENT = Tcl9 bindings for SQLite3 V = 3.53.0 DISTNAME = sqlite${V} -PKGNAME = sqlite3-tcl-${V} +PKGNAME = sqlite3-tcl9-${V} CATEGORIES = databases HOMEPAGE = https://cyqlite.sourceforge.io/cgi-bin/sqlite/home @@ -19,10 +19,11 @@ SITES = ${SITE_SOURCEFORGE:=tcl/} DISTFILES = tclsqlite{sqlite}${V}${EXTRACT_SUFX} MODULES = lang/tcl -MODTCL_VERSION = 8.6 +MODTCL_VERSION = 9 BUILD_DEPENDS = ${MODTCL_BUILD_DEPENDS} -RUN_DEPENDS = ${MODTCL_RUN_DEPENDS} +RUN_DEPENDS = ${MODTCL_RUN_DEPENDS} \ + databases/sqlite3-tcl FAKE_FLAGS = PKG_DIR=sqlite3 SEPARATE_BUILD = Yes @@ -45,5 +46,9 @@ VER = ${V:S/.//g} pre-configure: @${MODTCL_TCLSH_ADJ} ${WRKSRC}/compat/sqlite3/spaceanal.tcl + +do-install: + ${INSTALL_DATA_DIR} ${DESTDIR}${MODTCL_TCLDIR}/sqlite3 + ${INSTALL_DATA} ${WRKBUILD}/libtcl9sqlite${VER}.so ${DESTDIR}${MODTCL_TCLDIR}/sqlite3/ .include <bsd.port.mk> diff -Nurp /usr/ports/databases/sqlite3-tcl/pkg/PLIST ./pkg/PLIST --- /usr/ports/databases/sqlite3-tcl/pkg/PLIST Wed Nov 19 15:31:24 2025 +++ ./pkg/PLIST Thu Jun 11 07:38:35 2026 @@ -1,7 +1,2 @@ @pkgpath databases/sqlite3,-tcl -lib/tcl/sqlite3/ -@so lib/tcl/sqlite3/libsqlite${VER}.so -lib/tcl/sqlite3/pkgIndex.tcl -@man man/mann/sqlite3.n -share/examples/sqlite3-tcl/ -share/examples/sqlite3-tcl/sqlite3_analyzer +@so lib/tcl/sqlite3/libtcl9sqlite${VER}.so
No comments:
Post a Comment