diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2025-08-07 13:59:20 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2025-08-07 13:59:20 +0000 |
commit | 0279898b1329e46a2a527a2254d46ea3fa08eaaf (patch) | |
tree | 5bfcb0a6a46608375432d7336f1e89d279cf9099 | |
parent | devel/pycharm: update to 2025.2 (diff) |
devel/tcl[89]-thread: Thread extensions for Tcl 8.x and Tcl 9.x
Theold devel/tclthread has been renamed to devel/tcl8-thread, and a new devel/tcl9-thread port as been added.
-rw-r--r-- | MOVED | 1 | ||||
-rw-r--r-- | devel/Makefile | 3 | ||||
-rw-r--r-- | devel/tcl8-thread/Makefile (renamed from devel/tclthread/Makefile) | 6 | ||||
-rw-r--r-- | devel/tcl8-thread/distinfo (renamed from devel/tclthread/distinfo) | 0 | ||||
-rw-r--r-- | devel/tcl8-thread/pkg-descr (renamed from devel/tclthread/pkg-descr) | 2 | ||||
-rw-r--r-- | devel/tcl8-thread/pkg-plist (renamed from devel/tclthread/pkg-plist) | 0 | ||||
-rw-r--r-- | devel/tcl9-thread/Makefile | 52 | ||||
-rw-r--r-- | devel/tcl9-thread/distinfo | 3 | ||||
-rw-r--r-- | devel/tcl9-thread/pkg-descr | 3 | ||||
-rw-r--r-- | devel/tcl9-thread/pkg-plist | 6 |
10 files changed, 70 insertions, 6 deletions
@@ -4710,3 +4710,4 @@ security/openssl31||2025-08-04|Has expired: End-of-Life, will be removed when ne databases/pear-DoctrineDBAL||2025-08-04|Has expired: Upstream no longer serves through PEAR channel and has been moved to Composer www/py-wsaccel||2025-08-04|Has expired: Upstream ceased development databases/pear-DoctrineCommon||2025-08-05|Has expired: Upstream no longer serves through PEAR channel and has been moved to Composer +devel/tclthread|devel/tcl8-thread|2025-08-07|Use tcl8-thread with Tcl8 and tcl9-thread Tcl9 diff --git a/devel/Makefile b/devel/Makefile index 0bae517e60df..9cf9aaf398b0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -8317,7 +8317,8 @@ SUBDIR += tcllib SUBDIR += tcllibc SUBDIR += tclreadline - SUBDIR += tclthread + SUBDIR += tcl8-thread + SUBDIR += tcl9-thread SUBDIR += tcltls SUBDIR += tclxml SUBDIR += tdl diff --git a/devel/tclthread/Makefile b/devel/tcl8-thread/Makefile index e0f9a78a1f2c..6d1f63f858cb 100644 --- a/devel/tclthread/Makefile +++ b/devel/tcl8-thread/Makefile @@ -2,7 +2,7 @@ PORTNAME= thread PORTVERSION= 2.8.10 CATEGORIES= devel MASTER_SITES= SF/tcl/Tcl/8.6.15/ -PKGNAMEPREFIX= tcl +PKGNAMEPREFIX= tcl8 DISTNAME= ${PORTNAME}${PORTVERSION} MAINTAINER= tcltk@FreeBSD.org @@ -12,9 +12,7 @@ WWW= https://wiki.tcl.tk/2770 LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/license.terms -USES= autoreconf tcl:tea - -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share +USES= tcl:tcl8,tea DOCSDIR= ${PREFIX}/share/doc/${TCL_PKG} USE_LDCONFIG= ${PREFIX}/lib/${TCL_PKG} diff --git a/devel/tclthread/distinfo b/devel/tcl8-thread/distinfo index 00e7ba71c9c1..00e7ba71c9c1 100644 --- a/devel/tclthread/distinfo +++ b/devel/tcl8-thread/distinfo diff --git a/devel/tclthread/pkg-descr b/devel/tcl8-thread/pkg-descr index 5ccdc04bb9a4..bbf8f7d97f85 100644 --- a/devel/tclthread/pkg-descr +++ b/devel/tcl8-thread/pkg-descr @@ -1,3 +1,3 @@ -Tcl Thread extension +Tcl 8.x Thread extension Script-level access to Tcl threading capabilities. diff --git a/devel/tclthread/pkg-plist b/devel/tcl8-thread/pkg-plist index 6dd31ea4f498..6dd31ea4f498 100644 --- a/devel/tclthread/pkg-plist +++ b/devel/tcl8-thread/pkg-plist diff --git a/devel/tcl9-thread/Makefile b/devel/tcl9-thread/Makefile new file mode 100644 index 000000000000..b27c592ef125 --- /dev/null +++ b/devel/tcl9-thread/Makefile @@ -0,0 +1,52 @@ +PORTNAME= thread +PORTVERSION= 3.0.2 +CATEGORIES= devel +MASTER_SITES= SF/tcl/Tcl/9.0.2 +PKGNAMEPREFIX= tcl9 +DISTNAME= ${PORTNAME}${PORTVERSION} + +MAINTAINER= tcltk@FreeBSD.org +COMMENT= Scripting level thread extension for Tcl 9 +WWW= https://wiki.tcl.tk/2770 + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/license.terms + +USES= tcl:90,tea + +DOCSDIR= ${PREFIX}/share/doc/${TCL_PKG} +USE_LDCONFIG= ${PREFIX}/lib/${TCL_PKG} + +PLIST_SUB+= VERSION="${PORTVERSION}" + +INSTALL_TARGET= install-binaries install-doc +TEST_TARGET= test + +OPTIONS_DEFINE= DOCS GDBM LMDB +OPTIONS_DEFAULT=GDBM +GDBM_DESC= Persistent shared variables using GDBM +LMDB_DESC= Persistent shared variables using LMDB +GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm +GDBM_CONFIGURE_WITH= gdbm +LMDB_LIB_DEPENDS= liblmdb.so:databases/lmdb +LMDB_CONFIGURE_WITH= lmdb + +PORTDOCS= * + +post-patch: + @${REINPLACE_CMD} "/INSTALL_LIBRARY=/s|'\$$| -s'|" \ + ${WRKSRC}/tclconfig/tcl.m4 + @${FIND} ${WRKSRC}/doc/man -name "*.n" | \ + while read f; \ + do \ + ${MV} "$${f}" "$$(echo $${f} | ${SED} 's|.n$$|.${TCL_PKG_LIB_PREFIX}.n|')"; \ + done + +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR}/html +.for FILE in ChangeLog README + ${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR} +.endfor + cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/html + +.include <bsd.port.mk> diff --git a/devel/tcl9-thread/distinfo b/devel/tcl9-thread/distinfo new file mode 100644 index 000000000000..51723a070ff8 --- /dev/null +++ b/devel/tcl9-thread/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1754574219 +SHA256 (thread3.0.2.tar.gz) = fb565622621582ab81b958a5d6732846da2a455284f8a1fd82e821b5d093c590 +SIZE (thread3.0.2.tar.gz) = 342813 diff --git a/devel/tcl9-thread/pkg-descr b/devel/tcl9-thread/pkg-descr new file mode 100644 index 000000000000..1206678a5ab4 --- /dev/null +++ b/devel/tcl9-thread/pkg-descr @@ -0,0 +1,3 @@ +Tcl 9.x Thread extension + +Script-level access to Tcl threading capabilities. diff --git a/devel/tcl9-thread/pkg-plist b/devel/tcl9-thread/pkg-plist new file mode 100644 index 000000000000..54aaa3c6db20 --- /dev/null +++ b/devel/tcl9-thread/pkg-plist @@ -0,0 +1,6 @@ +lib/%%TCL_PKG%%/lib%%TCL_PKG_LIB_PREFIX%%%%TCL_PKG%%.so +lib/%%TCL_PKG%%/pkgIndex.tcl +share/man/mann/thread.%%TCL_PKG_LIB_PREFIX%%.n.gz +share/man/mann/tpool.%%TCL_PKG_LIB_PREFIX%%.n.gz +share/man/mann/tsv.%%TCL_PKG_LIB_PREFIX%%.n.gz +share/man/mann/ttrace.%%TCL_PKG_LIB_PREFIX%%.n.gz |