head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2026.10.14.21.33.36; author agc; state dead; branches; next 1.1; commitid hX45u69PjJGwuuZG; 1.1 date 2026.10.14.04.05.11; author agc; state Exp; branches; next ; commitid aqdlLZNNrNTVGoZG; desc @@ 1.2 log @textproc/agcre: update package to version 20261014 Upstream were very quick to merge the pkgsrc patch, so update to the latest version, 20261014 agcre: various bug fixes, mainly relating to packaging: Fix up the main Makefile, bump version number, don't install manual pages that aren't ours @ text @$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} @ 1.1 log @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 % @ text @d1 1 a1 1 $NetBSD$ @