pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/sds



Module Name:    pkgsrc
Committed By:   micha
Date:           Fri Jan 27 10:30:49 UTC 2023

Added Files:
        pkgsrc/devel/sds: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/devel/sds/files: libsds-2.pc.in
        pkgsrc/devel/sds/patches: patch-Makefile

Log Message:
devel/sds: Import version 2.2

SDS is a string library for C designed to augment the limited libc string
handling functionalities by adding heap allocated strings that are:

* Simpler to use.
* Binary safe.
* Computationally more efficient.
* But yet... Compatible with normal C string functions.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/sds/DESCR pkgsrc/devel/sds/Makefile \
    pkgsrc/devel/sds/PLIST pkgsrc/devel/sds/buildlink3.mk \
    pkgsrc/devel/sds/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/sds/files/libsds-2.pc.in
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/sds/patches/patch-Makefile

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

Added files:

Index: pkgsrc/devel/sds/DESCR
diff -u /dev/null pkgsrc/devel/sds/DESCR:1.1
--- /dev/null   Fri Jan 27 10:30:49 2023
+++ pkgsrc/devel/sds/DESCR      Fri Jan 27 10:30:49 2023
@@ -0,0 +1,7 @@
+SDS is a string library for C designed to augment the limited libc string
+handling functionalities by adding heap allocated strings that are:
+
+* Simpler to use.
+* Binary safe.
+* Computationally more efficient.
+* But yet... Compatible with normal C string functions.
Index: pkgsrc/devel/sds/Makefile
diff -u /dev/null pkgsrc/devel/sds/Makefile:1.1
--- /dev/null   Fri Jan 27 10:30:49 2023
+++ pkgsrc/devel/sds/Makefile   Fri Jan 27 10:30:49 2023
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2023/01/27 10:30:49 micha Exp $
+
+DISTNAME=      sds-2.2
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=jcorporation/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+EXTRACT_SUFX=  .zip
+
+MAINTAINER=    micha%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/jcorporation/sds/
+COMMENT=       Simple dynamic strings library for C
+LICENSE=       2-clause-bsd
+
+USE_LANGUAGES= c99
+USE_LIBTOOL=   yes
+
+TEST_TARGET=   test
+
+INSTALLATION_DIRS=     lib/pkgconfig
+
+post-extract:
+       ${CP} ${FILESDIR}/libsds-2.pc.in ${WRKDIR}
+       cd ${WRKDIR} && ${SED} -e "s,@prefix@,${PREFIX},g" \
+            -e "s,@release@,${PKGVERSION_NOREV},g" <libsds-2.pc.in >libsds-2.pc
+
+post-install:
+       cd ${WRKDIR} && ${INSTALL_DATA} libsds-2.pc \
+            ${DESTDIR}${PREFIX}/lib/pkgconfig/libsds-2.pc
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/sds/PLIST
diff -u /dev/null pkgsrc/devel/sds/PLIST:1.1
--- /dev/null   Fri Jan 27 10:30:49 2023
+++ pkgsrc/devel/sds/PLIST      Fri Jan 27 10:30:49 2023
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2023/01/27 10:30:49 micha Exp $
+include/sds.h
+lib/libsds.la
+lib/pkgconfig/libsds-2.pc
+share/doc/sds/README.md
Index: pkgsrc/devel/sds/buildlink3.mk
diff -u /dev/null pkgsrc/devel/sds/buildlink3.mk:1.1
--- /dev/null   Fri Jan 27 10:30:49 2023
+++ pkgsrc/devel/sds/buildlink3.mk      Fri Jan 27 10:30:49 2023
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2023/01/27 10:30:49 micha Exp $
+
+BUILDLINK_TREE+=       sds
+
+.if !defined(SDS_BUILDLINK3_MK)
+SDS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.sds+=    sds>=2.2
+BUILDLINK_PKGSRCDIR.sds?=      ../../devel/sds
+.endif # SDS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -sds
Index: pkgsrc/devel/sds/distinfo
diff -u /dev/null pkgsrc/devel/sds/distinfo:1.1
--- /dev/null   Fri Jan 27 10:30:49 2023
+++ pkgsrc/devel/sds/distinfo   Fri Jan 27 10:30:49 2023
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2023/01/27 10:30:49 micha Exp $
+
+BLAKE2s (sds-2.2.zip) = 199d2a4a6437bc0ba8e86cd99bce86337e90cf20cc202f0b74e81ebbf0639bd2
+SHA512 (sds-2.2.zip) = d72c7de87b7fc3030a1525b8905cd04168bc910a4109d31faf47d928be9cbb80264d6fae38c5a05c8b22926ee2b3faed641fb330b6f3021cd671274149384ce1
+Size (sds-2.2.zip) = 33055 bytes
+SHA1 (patch-Makefile) = faaf0b298c874c3b67a3d8e59228502538227cb2

Index: pkgsrc/devel/sds/files/libsds-2.pc.in
diff -u /dev/null pkgsrc/devel/sds/files/libsds-2.pc.in:1.1
--- /dev/null   Fri Jan 27 10:30:49 2023
+++ pkgsrc/devel/sds/files/libsds-2.pc.in       Fri Jan 27 10:30:49 2023
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+includedir=${prefix}/include
+libdir=${prefix}/lib
+bindir=${prefix}/bin
+
+Name: SDS
+Description: Simple dynamic strings library for C
+URL: https://github.com/jcorporation/sds/
+Version: @release@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lsds

Index: pkgsrc/devel/sds/patches/patch-Makefile
diff -u /dev/null pkgsrc/devel/sds/patches/patch-Makefile:1.1
--- /dev/null   Fri Jan 27 10:30:49 2023
+++ pkgsrc/devel/sds/patches/patch-Makefile     Fri Jan 27 10:30:49 2023
@@ -0,0 +1,58 @@
+$NetBSD: patch-Makefile,v 1.1 2023/01/27 10:30:49 micha Exp $
+
+* Add targets for object file, library, test and install.
+* Honor CPPFLAGS, CFLAGS and LDFLAGS
+* Use libtool
+
+--- Makefile.orig      2021-07-14 10:28:45.000000000 +0000
++++ Makefile
+@@ -1,8 +1,44 @@
+-all: sds-test
++# Switch make into POSIX conformant mode (must be the first non-comment line)
++.POSIX:
+ 
+-sds-test: sds.c sds.h testhelp.h
+-      $(CC) -o sds-test sds.c -Wall -std=c99 -pedantic -O2 -DSDS_TEST_MAIN
+-      @echo ">>> Type ./sds-test to run the sds.c unit tests."
++# Clear suffix list for inference rules
++.SUFFIXES:
++
++# ABI version for shared library
++MAJOR=  2
++MINOR=  2
++PATCH=  0
++
++all: libsds.la
++
++test: sds-test
++      ./sds-test
++
++install: libsds.la
++      @set +u ; test "x$$PREFIX" != "x" || \
++            ! echo "Error: PREFIX not defined in environment"
++      install -d -m 755 "${DESTDIR}${PREFIX}/lib"
++      libtool --mode=install \
++            install -m 755 libsds.la "${DESTDIR}${PREFIX}/lib"
++      install -d -m 755 "${DESTDIR}${PREFIX}/include"
++      install -m 644 sds.h "${DESTDIR}${PREFIX}/include"
++      install -d -m 755 "${DESTDIR}${PREFIX}/share/doc/sds"
++      install -m 644 README.md "${DESTDIR}${PREFIX}/share/doc/sds"
+ 
+ clean:
+-      rm -f sds-test
++      rm -f sds-test sds.o sds.lo libsds.la
++      rm -rf ./.libs
++
++sds.lo: sds.c sds.h
++      libtool --tag=CC --mode=compile \
++            $(CC) $(CPPFLAGS) $(CFLAGS) -c -Wall -std=c99 -pedantic -O2 sds.c
++
++libsds.la: sds.lo
++      libtool --tag=CC --mode=link \
++            $(CC) $(LDFLAGS) -shared -o libsds.la sds.lo \
++            -version-number ${MAJOR}:${MINOR}:${PATCH} \
++            -rpath ${PREFIX}/lib
++
++sds-test: sds.c sds.h testhelp.h
++      $(CC) $(CPPFLAGS) $(CFLAGS) -Wall -std=c99 -pedantic -O2 \
++            -DSDS_TEST_MAIN -o sds-test sds.c



Home | Main Index | Thread Index | Old Index