Wednesday, July 08, 2026

Re: databases/sqlite3-tcl for Tcl 8 and 9

On Sun, 5 Jul 2026, Stuart Cassoff wrote: > Here is a Tcl 8/9 version of sqlite3-tcl. Based on the teachings of sthen@, here are the 8/9 version bits, with the FLAVOR, and comments in the PLIST. It's also possible to have two PLISTS instead. Looks good so far, but I suspect not quite there yet: Warning: @option no-default-conflict without @conflict Stu Additions to the Makefile, and the PLIST: SUBST_VARS += TCL8 TCL9 FLAVORS = tcl8 FLAVOR ?= .if ${FLAVOR:Mtcl8} COMMENT += (Tcl8) MODTCL_VERSION = 8.6 TCL8 = TCL9 = "@comment " INSTALL_TARGET = all install-lib-binaries .else COMMENT += (Tcl9) MODTCL_VERSION = 9 TCL8 = "@comment " TCL9 = RUN_DEPENDS += databases/sqlite3-tcl,tcl8 TEST_FLAGS = TCLSH_PROG=${MODTCL_BIN} .endif .if ${FLAVOR:Mtcl8} post-install: rm ${WRKINST}${MODTCL_TCLDIR}/sqlite3/pkgIndex.tcl .endif @pkgpath databases/sqlite3,-tcl @option no-default-conflict lib/tcl/sqlite3/ ${TCL8}@so lib/tcl/sqlite3/libsqlite${VER}.so ${TCL9}@so lib/tcl/sqlite3/libtcl9sqlite${VER}.so ${TCL9}@man man/mann/sqlite3.n ${TCL9}share/examples/sqlite3-tcl/ ${TCL9}share/examples/sqlite3-tcl/sqlite3_analyzer ${TCL9}lib/tcl/sqlite3/pkgIndex.tcl

No comments:

Post a Comment