pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel



Module Name:    pkgsrc
Committed By:   scole
Date:           Wed Feb 26 09:18:11 UTC 2025

Modified Files:
        pkgsrc/devel: Makefile
        pkgsrc/devel/tcllib: Makefile
Added Files:
        pkgsrc/devel/tcllib: Makefile.common
        pkgsrc/devel/tcllibc: DESCR Makefile PLIST

Log Message:
Add tcllibc 2.0

This package is the optional part of tcllib 2.0 that allows for
running of embedded c-code in Tcl scripts for improved performance.

I think I might actually prefer for tcllib and tcllibc to be contained
in the same pkgsrc package.  But, I'm not sure how portable tcllibc &
critcl are, as well as there might be some circular dependencies
between tcllib and critcl. So for now have separate packages


To generate a diff of this commit:
cvs rdiff -u -r1.4424 -r1.4425 pkgsrc/devel/Makefile
cvs rdiff -u -r1.23 -r1.24 pkgsrc/devel/tcllib/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/tcllib/Makefile.common
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/tcllibc/DESCR \
    pkgsrc/devel/tcllibc/Makefile pkgsrc/devel/tcllibc/PLIST

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

Modified files:

Index: pkgsrc/devel/Makefile
diff -u pkgsrc/devel/Makefile:1.4424 pkgsrc/devel/Makefile:1.4425
--- pkgsrc/devel/Makefile:1.4424        Wed Feb 26 03:35:14 2025
+++ pkgsrc/devel/Makefile       Wed Feb 26 09:18:10 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4424 2025/02/26 03:35:14 scole Exp $
+# $NetBSD: Makefile,v 1.4425 2025/02/26 09:18:10 scole Exp $
 #
 
 COMMENT=       Development utilities
@@ -3611,6 +3611,7 @@ SUBDIR+=  tavrasm
 SUBDIR+=       tcl-tclcl
 SUBDIR+=       tclap
 SUBDIR+=       tcllib
+SUBDIR+=       tcllibc
 SUBDIR+=       tclreadline
 SUBDIR+=       teem
 SUBDIR+=       termcolor

Index: pkgsrc/devel/tcllib/Makefile
diff -u pkgsrc/devel/tcllib/Makefile:1.23 pkgsrc/devel/tcllib/Makefile:1.24
--- pkgsrc/devel/tcllib/Makefile:1.23   Tue Feb 25 12:11:48 2025
+++ pkgsrc/devel/tcllib/Makefile        Wed Feb 26 09:18:10 2025
@@ -1,20 +1,12 @@
-# $NetBSD: Makefile,v 1.23 2025/02/25 12:11:48 scole Exp $
+# $NetBSD: Makefile,v 1.24 2025/02/26 09:18:10 scole Exp $
 
-DISTNAME=              tcllib-2.0
-CATEGORIES=            devel
-MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=tcllib/}
+.include "../../devel/tcllib/Makefile.common"
 
-MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=              https://core.tcl-lang.org/tcllib/
-COMMENT=               Collection of utility modules for Tcl
-LICENSE=               modified-bsd
+PKGNAME=       ${DISTNAME}
+COMMENT=       Collection of utility modules for Tcl
 
-USE_TOOLS+=            find tclsh wget:run
-
-GNU_CONFIGURE=         yes
-NO_BUILD=              yes
-
-CONFIGURE_ARGS+=       --with-tclsh=${TCLSH}
+USE_TOOLS+=    wget:run
+NO_BUILD=      yes
 
 TCL_EXDIR=             share/examples/tcllib
 INSTALLATION_DIRS+=    bin lib ${PKGMANDIR}/mann ${TCL_EXDIR}
@@ -45,8 +37,6 @@ SUBST_FILES.tclsh+=   apps/tcldocstrip
 SUBST_SED.tclsh=       -e "s,/usr/bin/env.*tclsh,${TCLSH},g"
 SUBST_MESSAGE.tclsh=   Fixing path to tclsh.
 
-TEST_TARGET=           test
-
 do-install:
        cd ${WRKSRC} && ${TCLSH} ./installer.tcl \
                -no-examples -no-html \

Added files:

Index: pkgsrc/devel/tcllib/Makefile.common
diff -u /dev/null pkgsrc/devel/tcllib/Makefile.common:1.1
--- /dev/null   Wed Feb 26 09:18:11 2025
+++ pkgsrc/devel/tcllib/Makefile.common Wed Feb 26 09:18:10 2025
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile.common,v 1.1 2025/02/26 09:18:10 scole Exp $
+#
+# used by devel/tcllib/Makefile
+# used by devel/tcllibc/Makefile
+
+DISTNAME=              tcllib-2.0
+CATEGORIES=            devel
+MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=tcllib/}
+
+MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=              https://core.tcl-lang.org/tcllib/
+LICENSE=               modified-bsd
+
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --with-tclsh=${TCLSH}
+USE_TOOLS+=            find tclsh
+
+TEST_TARGET=           test
+
+DISTINFO_FILE=         ${.CURDIR}/../../devel/tcllib/distinfo

Index: pkgsrc/devel/tcllibc/DESCR
diff -u /dev/null pkgsrc/devel/tcllibc/DESCR:1.1
--- /dev/null   Wed Feb 26 09:18:11 2025
+++ pkgsrc/devel/tcllibc/DESCR  Wed Feb 26 09:18:10 2025
@@ -0,0 +1,2 @@
+The c-based accelerated components of tcllib.  Allows running of
+embedded c-code in Tcl scripts for improved performance.
Index: pkgsrc/devel/tcllibc/Makefile
diff -u /dev/null pkgsrc/devel/tcllibc/Makefile:1.1
--- /dev/null   Wed Feb 26 09:18:11 2025
+++ pkgsrc/devel/tcllibc/Makefile       Wed Feb 26 09:18:10 2025
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2025/02/26 09:18:10 scole Exp $
+
+.include "../../devel/tcllib/Makefile.common"
+
+PKGNAME=       ${DISTNAME:S/tcllib/tcllibc/}
+COMMENT=       C-based accelerators for tcllib
+
+DEPENDS+=      tcllib>=${PKGVERSION}:../../devel/tcllib
+
+do-install:
+       cd ${WRKSRC} && ${TCLSH} sak.tcl critcl \
+       -includedir ${DESTDIR}${PREFIX}/include \
+       -libdir ${DESTDIR}${PREFIX}/lib \
+       -pkg tcllibc${PKGVERSION_NOREV}
+
+.include "../../devel/critcl/buildlink3.mk"
+.include "../../lang/tcl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/tcllibc/PLIST
diff -u /dev/null pkgsrc/devel/tcllibc/PLIST:1.1
--- /dev/null   Wed Feb 26 09:18:11 2025
+++ pkgsrc/devel/tcllibc/PLIST  Wed Feb 26 09:18:10 2025
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2025/02/26 09:18:10 scole Exp $
+include/sha256c/sha256.h
+include/sha256c/sha256c.decls
+include/sha256c/sha256cDecls.h
+include/sha256c/sha256cStubLib.h
+lib/tcllibc${PKGVERSION}/critcl-rt.tcl
+lib/tcllibc${PKGVERSION}/license.terms
+lib/tcllibc${PKGVERSION}/netbsd-x86_64/tcllibc.so
+lib/tcllibc${PKGVERSION}/pkgIndex.tcl
+lib/tcllibc${PKGVERSION}/teapot.txt



Home | Main Index | Thread Index | Old Index