pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc
Module Name: pkgsrc
Committed By: agc
Date: Wed Oct 14 04:05:12 UTC 2026
Modified Files:
pkgsrc/textproc: Makefile
Added Files:
pkgsrc/textproc/agcre: DESCR Makefile PLIST distinfo
pkgsrc/textproc/agcre/patches: patch-Makefile.in
Log Message:
textproc/agcre: Add new package which uses the libagcre library to provide
an egrep-style program for searching.
This is agcre, the egrep-alike which uses the libagcre regular expression
library (see pkgsrc/devel/libagcre) to search for regular expressions
in files or in data streams.
In general, the emphasis is on using a modern, predictable, VM-style,
well-featured regexp library, in C, with an MIT license. In
particular, most Perl regexp features are supported, as are back
references, and UTF-8, and wide characters (wchar_t).
I wouldn't expect anyone to use this as their main regex engine a la egrep
but this may prove food for thought:
% time agcre '(a?){9999}aaaaaaaaaaaaaaaaaaaaaaaaaaaaa' dist/tests/2.in
aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
0.063u 0.000s 0:00.06 100.0% 0+0k 0+0io 0pf+0w
% time egrep '(a?){9999}aaaaaaaaaaaaaaaaaaaaaaaaaaaaa' dist/tests/2.in
^C88.462u 0.730s 1:29.21 99.9% 0+0k 0+0io 0pf+0w
%
To generate a diff of this commit:
cvs rdiff -u -r1.1610 -r1.1611 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/agcre/DESCR \
pkgsrc/textproc/agcre/Makefile pkgsrc/textproc/agcre/PLIST \
pkgsrc/textproc/agcre/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/agcre/patches/patch-Makefile.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/Makefile
diff -u pkgsrc/textproc/Makefile:1.1610 pkgsrc/textproc/Makefile:1.1611
--- pkgsrc/textproc/Makefile:1.1610 Thu Oct 1 17:22:00 2026
+++ pkgsrc/textproc/Makefile Wed Oct 14 04:05:11 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1610 2026/10/01 17:22:00 adam Exp $
+# $NetBSD: Makefile,v 1.1611 2026/10/14 04:05:11 agc Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@@ -60,6 +60,7 @@ SUBDIR+= ada-vss-25
SUBDIR+= ada-xmlada-24
SUBDIR+= ada-xmlada-25
SUBDIR+= ada-xmlada26
+SUBDIR+= agcre
SUBDIR+= aha
SUBDIR+= aiksaurus
SUBDIR+= align
Added files:
Index: pkgsrc/textproc/agcre/DESCR
diff -u /dev/null pkgsrc/textproc/agcre/DESCR:1.1
--- /dev/null Wed Oct 14 04:05:12 2026
+++ pkgsrc/textproc/agcre/DESCR Wed Oct 14 04:05:11 2026
@@ -0,0 +1,19 @@
+This is agcre, the egrep-alike which uses the libagcre regular expression
+library (see pkgsrc/devel/libagcre) to search for regular expressions
+in files or in data streams.
+
+In general, the emphasis is on using a modern, predictable, VM-style,
+well-featured regexp library, in C, with an MIT license. In
+particular, most Perl regexp features are supported, as are back
+references, and UTF-8, and wide characters (wchar_t).
+
+I wouldn't expect anyone to use this as ther main regex engine a la egrep
+but this may prove food for thought:
+
+ % time agcre '(a?){9999}aaaaaaaaaaaaaaaaaaaaaaaaaaaaa' dist/tests/2.in
+ aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ 0.063u 0.000s 0:00.06 100.0% 0+0k 0+0io 0pf+0w
+ % time egrep '(a?){9999}aaaaaaaaaaaaaaaaaaaaaaaaaaaaa' dist/tests/2.in
+ ^C88.462u 0.730s 1:29.21 99.9% 0+0k 0+0io 0pf+0w
+ %
+
Index: pkgsrc/textproc/agcre/Makefile
diff -u /dev/null pkgsrc/textproc/agcre/Makefile:1.1
--- /dev/null Wed Oct 14 04:05:12 2026
+++ pkgsrc/textproc/agcre/Makefile Wed Oct 14 04:05:11 2026
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2026/10/14 04:05:11 agc Exp $
+
+DISTNAME= agcre-${VERSION}
+VERSION= 20261013
+CATEGORIES= textproc
+MASTER_SITES= -${MASTER_SITE_CODEBERG:=agc-codeberg/agcre/archive/${VERSION}.tar.gz}
+
+MAINTAINER= agc%NetBSD.org@localhost
+HOMEPAGE= https://codeberg.org/agc-codeberg/agcre/
+COMMENT= Efficient grep program for UTF-8 and wide chars
+LICENSE= mit
+
+WRKSRC= ${WRKDIR}/agcre/dist
+
+USE_LANGUAGES= c
+
+GNU_CONFIGURE= yes
+AUTO_MKDIRS= yes
+TEST_TARGET= tst
+
+_WRAP_EXTRA_ARGS.CC+= ${_RELRO_LDFLAGS}
+CWRAPPERS_PREPEND.cc+= ${_RELRO_LDFLAGS}
+
+.include "../../devel/libagcre/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/agcre/PLIST
diff -u /dev/null pkgsrc/textproc/agcre/PLIST:1.1
--- /dev/null Wed Oct 14 04:05:12 2026
+++ pkgsrc/textproc/agcre/PLIST Wed Oct 14 04:05:11 2026
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2026/10/14 04:05:11 agc Exp $
+bin/agcre
+man/man1/agcre.1
Index: pkgsrc/textproc/agcre/distinfo
diff -u /dev/null pkgsrc/textproc/agcre/distinfo:1.1
--- /dev/null Wed Oct 14 04:05:12 2026
+++ pkgsrc/textproc/agcre/distinfo Wed Oct 14 04:05:11 2026
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2026/10/14 04:05:11 agc Exp $
+
+BLAKE2s (agcre-20261013.tar.gz) = 8387cba28a9d3fd5d63ec096681587a5439786354439ed260e364dfb59bfceb0
+SHA512 (agcre-20261013.tar.gz) = 603107c62e137f55bc587fe3586c03a24d65853ab20caf3596a6a8fa953cbab9b53aa234cfa3054b42b640e6da1ca5139799ff0c8e9c87e7be6bd1d47b99c0ee
+Size (agcre-20261013.tar.gz) = 802495 bytes
+SHA1 (patch-Makefile.in) = af6c31cc0908d9581f3bfd2f659657936b1e9b8c
Index: pkgsrc/textproc/agcre/patches/patch-Makefile.in
diff -u /dev/null pkgsrc/textproc/agcre/patches/patch-Makefile.in:1.1
--- /dev/null Wed Oct 14 04:05:12 2026
+++ pkgsrc/textproc/agcre/patches/patch-Makefile.in Wed Oct 14 04:05:11 2026
@@ -0,0 +1,35 @@
+$NetBSD: patch-Makefile.in,v 1.1 2026/10/14 04:05:11 agc Exp $
+
+Make sure we link the library we're depending on
+
+don't install library manual pages in the binary package
+
+--- Makefile.in 2026/10/14 03:46:16 1.1
++++ Makefile.in 2026/10/14 03:46:30
+@@ -2,7 +2,7 @@
+
+ PROG= agcre
+
+-OBJS= agcre.o main.o
++OBJS= main.o
+
+ PREFIX=@PREFIX@
+ MANDIR=@MANDIR@
+@@ -14,7 +14,7 @@
+ COPT?= -g -O0
+
+ ${PROG}: ${OBJS}
+- ${CC} ${COPT} ${OBJS} -o ${PROG}
++ ${CC} ${COPT} ${OBJS} -L${PREFIX}/lib -Wl,-R${PREFIX}/lib -l agcre -o ${PROG}
+
+ .c.o:
+ ${CC} ${COPT} -c $<
+@@ -22,8 +22,6 @@
+ install:
+ install -c -s ${PROG} ${DESTDIR}${PREFIX}/bin
+ install -c agcre.1 ${DESTDIR}${MANDIR}/man1
+- install -c libagcre.3 ${DESTDIR}${MANDIR}/man3
+- install -c agcre_format.7 ${DESTDIR}${MANDIR}/man7
+
+ clean cleandir:
+ rm -f *.o *.core ${PROG}
Home |
Main Index |
Thread Index |
Old Index