From 304edd494c6a421b442d7c06e471c0082c8c29ab Mon Sep 17 00:00:00 2001 From: markus Date: Sun, 16 Feb 2003 14:59:42 +0000 Subject: [PATCH] Simple regular expression library from Plan 9; ok lebel@ --- devel/libregexp9/Makefile | 23 +++++++++++++++++++ devel/libregexp9/distinfo | 3 +++ .../libregexp9/patches/patch-Make_OpenBSD-386 | 12 ++++++++++ devel/libregexp9/patches/patch-Makefile | 10 ++++++++ devel/libregexp9/pkg/DESCR | 14 +++++++++++ devel/libregexp9/pkg/PLIST | 5 ++++ 6 files changed, 67 insertions(+) create mode 100644 devel/libregexp9/Makefile create mode 100644 devel/libregexp9/distinfo create mode 100644 devel/libregexp9/patches/patch-Make_OpenBSD-386 create mode 100644 devel/libregexp9/patches/patch-Makefile create mode 100644 devel/libregexp9/pkg/DESCR create mode 100644 devel/libregexp9/pkg/PLIST diff --git a/devel/libregexp9/Makefile b/devel/libregexp9/Makefile new file mode 100644 index 00000000000..ce600b7dda4 --- /dev/null +++ b/devel/libregexp9/Makefile @@ -0,0 +1,23 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2003/02/16 14:59:42 markus Exp $ + +COMMENT= "Simple regular expression library from Plan 9" + +VERSION= 2.0 +DISTNAME= libregexp9-${VERSION} +CATEGORIES= devel plan9 +MASTER_SITES= http://pdos.lcs.mit.edu/~rsc/software/ +HOMEPAGE= http://pdos.lcs.mit.edu/~rsc/software/ +MAINTAINER= Markus Friedl +EXTRACT_SUFX= .tgz + +LIB_DEPENDS= utf::devel/libutf \ + fmt::devel/libfmt + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +FAKE_FLAGS= PREFIX=${WRKINST}${PREFIX} + +.include diff --git a/devel/libregexp9/distinfo b/devel/libregexp9/distinfo new file mode 100644 index 00000000000..af9a0d53182 --- /dev/null +++ b/devel/libregexp9/distinfo @@ -0,0 +1,3 @@ +MD5 (libregexp9-2.0.tgz) = bcf91b15944f8aeba5d15fe9620bf897 +RMD160 (libregexp9-2.0.tgz) = 3fce6545f795072ecd050594109482d05fa98032 +SHA1 (libregexp9-2.0.tgz) = cde4e29d503e9433831a25efaea17b0361966fea diff --git a/devel/libregexp9/patches/patch-Make_OpenBSD-386 b/devel/libregexp9/patches/patch-Make_OpenBSD-386 new file mode 100644 index 00000000000..e1a8f49a432 --- /dev/null +++ b/devel/libregexp9/patches/patch-Make_OpenBSD-386 @@ -0,0 +1,12 @@ +$OpenBSD: patch-Make_OpenBSD-386,v 1.1.1.1 2003/02/16 14:59:42 markus Exp $ +--- Make.OpenBSD-386.orig Fri Feb 14 18:43:41 2003 ++++ Make.OpenBSD-386 Fri Feb 14 18:43:41 2003 +@@ -0,0 +1,8 @@ ++CC=gcc ++CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -I$(PREFIX)/include ++O=o ++AR=ar ++ARFLAGS=rvc ++NAN=nan64.$O # default, can be overriden by Make.$(SYSNAME) ++NAN=nan64.$O ++RANLIB=ranlib diff --git a/devel/libregexp9/patches/patch-Makefile b/devel/libregexp9/patches/patch-Makefile new file mode 100644 index 00000000000..d96ebb3ce4e --- /dev/null +++ b/devel/libregexp9/patches/patch-Makefile @@ -0,0 +1,10 @@ +--- Makefile.orig Thu Feb 13 16:05:34 2003 ++++ Makefile Fri Feb 14 18:43:41 2003 +@@ -54,6 +54,7 @@ test2: test2.$O $(LIB) + + $(LIB): $(OFILES) + $(AR) $(ARFLAGS) $(LIB) $(OFILES) ++ $(RANLIB) $(LIB) + + NUKEFILES+=$(LIB) + .c.$O: diff --git a/devel/libregexp9/pkg/DESCR b/devel/libregexp9/pkg/DESCR new file mode 100644 index 00000000000..8bbc9a04b41 --- /dev/null +++ b/devel/libregexp9/pkg/DESCR @@ -0,0 +1,14 @@ +Libregexp9 is a port of Plan 9's regexp library. +It is small and simple and provides the traditional +extended regular expressions (as opposed to the +current extended regular expressions, which add {} +and various \x character classes, among other +complications). + +It handles Unicode in wide character or UTF8 format! + +WWW: http://pdos.lcs.mit.edu/~rsc/software/ +http://plan9.bell-labs.com/magic/man2html/2/regexp + +Russ Cox +rsc@post.harvard.edu diff --git a/devel/libregexp9/pkg/PLIST b/devel/libregexp9/pkg/PLIST new file mode 100644 index 00000000000..70445fcbf4b --- /dev/null +++ b/devel/libregexp9/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2003/02/16 14:59:42 markus Exp $ +include/regexp9.h +lib/libregexp9.a +man/man3/regexp9.3 +man/man7/regexp9.7