pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/stringswitch



Module Name:    pkgsrc
Committed By:   agc
Date:           Thu Nov 19 21:48:03 UTC 2026

Added Files:
        pkgsrc/devel/stringswitch: DESCR Makefile PLIST distinfo

Log Message:
devel/stringswitch: Add version 20261119 version of stringswitch package to devel category

        This is stringswitch, which calculates numeric values for strings.
        Using these numeric values, strings can be used as part of switch
        statements. Dispatcher functions can then be used to process
        strings in an efficient manner. In normal use, compilers will
        flag any hash collisions at compile-time, which removes a large
        class of bugs.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/stringswitch/DESCR \
    pkgsrc/devel/stringswitch/Makefile pkgsrc/devel/stringswitch/PLIST \
    pkgsrc/devel/stringswitch/distinfo

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

Added files:

Index: pkgsrc/devel/stringswitch/DESCR
diff -u /dev/null pkgsrc/devel/stringswitch/DESCR:1.1
--- /dev/null   Thu Nov 19 21:48:03 2026
+++ pkgsrc/devel/stringswitch/DESCR     Thu Nov 19 21:48:03 2026
@@ -0,0 +1,6 @@
+This is stringswitch, which calculates numeric values for strings.
+Using these numeric values, strings can be used as part of switch
+statements. Dispatcher functions can then be used to process
+strings in an efficient manner. In normal use, compilers will
+flag any hash collisions at compile-time, which removes a large
+class of bugs.
Index: pkgsrc/devel/stringswitch/Makefile
diff -u /dev/null pkgsrc/devel/stringswitch/Makefile:1.1
--- /dev/null   Thu Nov 19 21:48:03 2026
+++ pkgsrc/devel/stringswitch/Makefile  Thu Nov 19 21:48:03 2026
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2026/11/19 21:48:03 agc Exp $
+
+DISTNAME=              stringswitch-${VERSION}
+VERSION=               20261119
+CATEGORIES=            devel
+MASTER_SITES=          -${MASTER_SITE_CODEBERG:=agc-codeberg/stringswitch/archive/${VERSION}.tar.gz}
+
+MAINTAINER=            agc%NetBSD.org@localhost
+HOMEPAGE=              https://codeberg.org/agc-codeberg/stringswitch/
+COMMENT=               Use strings in C switch statements
+LICENSE=               mit
+
+WRKSRC=                        ${WRKDIR}/stringswitch/dist
+
+USE_LANGUAGES=         c
+
+GNU_CONFIGURE=         yes
+AUTO_MKDIRS=           yes
+TEST_TARGET=           t
+
+_WRAP_EXTRA_ARGS.CC+=  ${_RELRO_LDFLAGS}
+CWRAPPERS_PREPEND.cc+= ${_RELRO_LDFLAGS}
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/stringswitch/PLIST
diff -u /dev/null pkgsrc/devel/stringswitch/PLIST:1.1
--- /dev/null   Thu Nov 19 21:48:03 2026
+++ pkgsrc/devel/stringswitch/PLIST     Thu Nov 19 21:48:03 2026
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2026/11/19 21:48:03 agc Exp $
+bin/stringswitch
+man/man1/stringswitch.1
Index: pkgsrc/devel/stringswitch/distinfo
diff -u /dev/null pkgsrc/devel/stringswitch/distinfo:1.1
--- /dev/null   Thu Nov 19 21:48:03 2026
+++ pkgsrc/devel/stringswitch/distinfo  Thu Nov 19 21:48:03 2026
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2026/11/19 21:48:03 agc Exp $
+
+BLAKE2s (stringswitch-20261119.tar.gz) = 3708607b0d9781fd1d241e3944b61bd57e099e247e6ffbb87ae44c102c753e8b
+SHA512 (stringswitch-20261119.tar.gz) = 6a00c3e928294b7ee3a76195318b51fcb75541cef113692bf121ff22a1a3aa5a16a9774ec38c5b8bcd54b596da7a004d769e870ff5d0df000289905abf942a85
+Size (stringswitch-20261119.tar.gz) = 4267 bytes



Home | Main Index | Thread Index | Old Index