pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
devel/gnuregex: import gnuregex-0.12 as wip/gnuregex.
Module Name: pkgsrc-wip
Committed By: Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By: vms
Date: Wed Dec 21 15:13:39 2022 +0100
Changeset: 7899bca15a6872e8c275ba1215132e77e6cd6d35
Added Files:
gnuregex/DESCR
gnuregex/Makefile
gnuregex/PLIST
gnuregex/distinfo
gnuregex/patches/patch-Makefile.in
Log Message:
devel/gnuregex: import gnuregex-0.12 as wip/gnuregex.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7899bca15a6872e8c275ba1215132e77e6cd6d35
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gnuregex/DESCR | 5 +++++
gnuregex/Makefile | 34 ++++++++++++++++++++++++++++++++++
gnuregex/PLIST | 3 +++
gnuregex/distinfo | 6 ++++++
gnuregex/patches/patch-Makefile.in | 23 +++++++++++++++++++++++
5 files changed, 71 insertions(+)
diffs:
diff --git a/gnuregex/DESCR b/gnuregex/DESCR
new file mode 100644
index 0000000000..8d11bce8cb
--- /dev/null
+++ b/gnuregex/DESCR
@@ -0,0 +1,5 @@
+GNU Regex is the regex subset of Gnulib, the GNU portability library.
+It offers an extension of the regex(3) API to allow more flexibility
+in the flavor of regular expressions.
+The GNU regex library is compliant with POSIX.2, except for
+internationalization features.
diff --git a/gnuregex/Makefile b/gnuregex/Makefile
new file mode 100644
index 0000000000..fadb6bb430
--- /dev/null
+++ b/gnuregex/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD$
+
+DISTNAME= regex-0.12
+PKGNAME= ${DISTNAME:S/^/gnu/}
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.gnu.org/old-gnu/regex/
+
+MAINTAINER= vins%NetBSD.org@localhost
+HOMEPAGE= https://directory.fsf.org/wiki/Regex
+COMMENT= GNU Regex library
+LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2
+
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+
+LIB= libgnuregex.la
+INC= gnuregex.h
+
+MAKE_FLAGS+= CC=${CC:Q}
+MAKE_FLAGS+= SHELL=${SH:Q}
+MAKE_FLAGS+= CFLAGS=${CFLAGS:Q}
+MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
+MAKE_FLAGS+= subdirs=
+
+INSTALLATION_DIRS= ${PREFIX}/include ${PREFIX}/lib
+
+do-install:
+ ${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/${LIB} \
+ ${DESTDIR}${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/${INC:S/gnu//} \
+ ${DESTDIR}${PREFIX}/include/${INC}
+
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/gnuregex/PLIST b/gnuregex/PLIST
new file mode 100644
index 0000000000..bd428c68bd
--- /dev/null
+++ b/gnuregex/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+include/gnuregex.h
+lib/libgnuregex.la
diff --git a/gnuregex/distinfo b/gnuregex/distinfo
new file mode 100644
index 0000000000..e3d4889ebd
--- /dev/null
+++ b/gnuregex/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (regex-0.12.tar.gz) = c372aeb7906d9b6c626656b2af02e22619446ef5cc669a5076a60eb49964ecb4
+SHA512 (regex-0.12.tar.gz) = 85a4f5161759646b3cf5484539cebe92e51ee1896f7853084d4aba2b5399164922103dc2b49971eca9821bec56195fef999f100f61b6d734955ccd7c81ca3ca7
+Size (regex-0.12.tar.gz) = 297790 bytes
+SHA1 (patch-Makefile.in) = 100748772d017efb9fa17951ccf3669b97078205
diff --git a/gnuregex/patches/patch-Makefile.in b/gnuregex/patches/patch-Makefile.in
new file mode 100644
index 0000000000..c39d4b5b9d
--- /dev/null
+++ b/gnuregex/patches/patch-Makefile.in
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Use libtool to build shared ojects.
+
+--- Makefile.in.orig 1993-04-02 23:12:15.000000000 +0000
++++ Makefile.in
+@@ -45,11 +45,14 @@ SHELL = /bin/sh
+
+ subdirs = doc test
+
+-default all:: regex.o
++default all:: libgnuregex.a regex.o
+ .PHONY: default all
+
++libgnuregex.a: regex.o
++ ${LIBTOOL} --mode=link --tag=CC ${CC} -o ${.TARGET:.a=.la} ${regex.o:.o=.lo} -rpath ${PREFIX}/lib -version-info 0:12
++
+ regex.o: regex.c regex.h
+- $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $<
++ ${LIBTOOL} --mode=compile --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) -c $<
+
+ clean mostlyclean::
+ rm -f *.o
Home |
Main Index |
Thread Index |
Old Index