From c16b4beb0ab32127d73e9a501142b61c90e64998 Mon Sep 17 00:00:00 2001 From: alek Date: Sun, 5 Dec 2004 14:16:40 +0000 Subject: [PATCH] Import pcre++ 0.9.5 PCRE++ is a C++ wrapper-class for the PCRE library (Perl Compatible Regular Expressions). From Tomasz Bak ok sturm@ --- devel/pcre++/Makefile | 31 +++++++++++++ devel/pcre++/distinfo | 3 ++ devel/pcre++/patches/patch-configure | 29 ++++++++++++ devel/pcre++/patches/patch-doc_Makefile_in | 14 ++++++ .../pcre++/patches/patch-examples_Makefile_in | 21 +++++++++ .../patches/patch-libpcre++_Makefile_in | 12 +++++ devel/pcre++/patches/patch-pcre++-config_in | 12 +++++ devel/pcre++/patches/patch-test_Makefile_in | 21 +++++++++ devel/pcre++/pkg/DESCR | 2 + devel/pcre++/pkg/PFRAG.shared | 2 + devel/pcre++/pkg/PLIST | 44 +++++++++++++++++++ 11 files changed, 191 insertions(+) create mode 100644 devel/pcre++/Makefile create mode 100644 devel/pcre++/distinfo create mode 100644 devel/pcre++/patches/patch-configure create mode 100644 devel/pcre++/patches/patch-doc_Makefile_in create mode 100644 devel/pcre++/patches/patch-examples_Makefile_in create mode 100644 devel/pcre++/patches/patch-libpcre++_Makefile_in create mode 100644 devel/pcre++/patches/patch-pcre++-config_in create mode 100644 devel/pcre++/patches/patch-test_Makefile_in create mode 100644 devel/pcre++/pkg/DESCR create mode 100644 devel/pcre++/pkg/PFRAG.shared create mode 100644 devel/pcre++/pkg/PLIST diff --git a/devel/pcre++/Makefile b/devel/pcre++/Makefile new file mode 100644 index 00000000000..cf746f6ee4f --- /dev/null +++ b/devel/pcre++/Makefile @@ -0,0 +1,31 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2004/12/05 14:16:40 alek Exp $ + +COMMENT= "wrapper class around the pcre library" + +DISTNAME= pcre++-0.9.5 +CATEGORIES= devel +HOMEPAGE= http://www.daemon.de/PCRE + +MASTER_SITES= ftp://ftp.daemon.de/scip/Apps/pcre++/ + +MAINTAINER= Tomasz Bak + +# LGPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +LIB_DEPENDS= pcre.0::devel/pcre + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS= ${CONFIGURE_SHARED} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +USE_GMAKE= Yes + +do-regress: + @cd ${WRKBUILD}/test && ./test testinput + +.include diff --git a/devel/pcre++/distinfo b/devel/pcre++/distinfo new file mode 100644 index 00000000000..812c923b816 --- /dev/null +++ b/devel/pcre++/distinfo @@ -0,0 +1,3 @@ +MD5 (pcre++-0.9.5.tar.gz) = 1fe6ea8e23ece01fde2ce5fb4746acc2 +RMD160 (pcre++-0.9.5.tar.gz) = 1aa3c933f271caacaeec08af02c7903dd4405c41 +SHA1 (pcre++-0.9.5.tar.gz) = 7cb640555c6adf34bf366139b22f6d1a66bd1fb0 diff --git a/devel/pcre++/patches/patch-configure b/devel/pcre++/patches/patch-configure new file mode 100644 index 00000000000..55866fcb3e5 --- /dev/null +++ b/devel/pcre++/patches/patch-configure @@ -0,0 +1,29 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2004/12/05 14:16:40 alek Exp $ +--- configure.orig Wed Aug 25 01:38:03 2004 ++++ configure Thu Dec 2 01:10:03 2004 +@@ -8594,7 +8594,7 @@ fi; + if test "${with_pcre_lib+set}" = set; then + withval="$with_pcre_lib" + if test "x$with_pcre_lib" != "x"; then +- LIBS="$LIBS -L$with_pcre_lib -lpcre" ++ LIBS="$LIBS" + fi + fi; + +@@ -8644,7 +8644,7 @@ if test "x$with_pcre_lib" = "x"; then + LIBS="$LIBS -L$prefix/lib -L/usr/local/lib `pcre-config --libs`" + ;; + *) +- LIBS="$LIBS -lpcre" ++ #LIBS="$LIBS -lpcre" + ;; + esac + fi +@@ -8718,7 +8718,6 @@ if test $ac_cv_lib_pcre_pcre_exec = yes; + #define HAVE_LIBPCRE 1 + _ACEOF + +- LIBS="-lpcre $LIBS" + + fi + diff --git a/devel/pcre++/patches/patch-doc_Makefile_in b/devel/pcre++/patches/patch-doc_Makefile_in new file mode 100644 index 00000000000..53cfb7c5b22 --- /dev/null +++ b/devel/pcre++/patches/patch-doc_Makefile_in @@ -0,0 +1,14 @@ +$OpenBSD: patch-doc_Makefile_in,v 1.1.1.1 2004/12/05 14:16:40 alek Exp $ +--- doc/Makefile.in.orig Wed Aug 25 01:38:04 2004 ++++ doc/Makefile.in Sun Nov 28 18:55:37 2004 +@@ -232,8 +232,8 @@ mostlyclean distclean maintainer-clean + + + install-data-local: +- $(INSTALL) -m 755 -d $(prefix)/doc/libpcre++-$(VERSION) +- $(INSTALL) -m 644 $(DOC_FILES) $(prefix)/doc/libpcre++-$(VERSION)/ ++ $(INSTALL) -m 755 -d $(DESTDIR)$(prefix)/share/doc/pcre++ ++ $(INSTALL) -m 644 $(DOC_FILES) $(DESTDIR)$(prefix)/share/doc/pcre++/ + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/devel/pcre++/patches/patch-examples_Makefile_in b/devel/pcre++/patches/patch-examples_Makefile_in new file mode 100644 index 00000000000..8551c182aa8 --- /dev/null +++ b/devel/pcre++/patches/patch-examples_Makefile_in @@ -0,0 +1,21 @@ +$OpenBSD: patch-examples_Makefile_in,v 1.1.1.1 2004/12/05 14:16:40 alek Exp $ +--- examples/Makefile.in.orig Wed Aug 25 01:38:04 2004 ++++ examples/Makefile.in Thu Dec 2 20:59:11 2004 +@@ -89,7 +89,7 @@ replace_demo_LDADD = $(pcre_linklib) + search_demo_SOURCES = search_demo.cc + search_demo_LDADD = $(pcre_linklib) + +-CXXFLAGS = -Wall -Wstrict-prototypes -O -g ++CXXFLAGS = -Wall -Wstrict-prototypes @CXXFLAGS@ + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_HEADER = ../libpcre++/config.h + CONFIG_CLEAN_FILES = +@@ -101,7 +101,7 @@ PROGRAMS = $(noinst_PROGRAMS) + DEFS = @DEFS@ -I. -I$(srcdir) -I../libpcre++ + CPPFLAGS = @CPPFLAGS@ + LDFLAGS = @LDFLAGS@ +-LIBS = @LIBS@ ++LIBS = @LIBS@ -lpcre + demo_OBJECTS = demo.$(OBJEXT) + demo_DEPENDENCIES = ../libpcre++/.libs/libpcre++.a + demo_LDFLAGS = diff --git a/devel/pcre++/patches/patch-libpcre++_Makefile_in b/devel/pcre++/patches/patch-libpcre++_Makefile_in new file mode 100644 index 00000000000..7e8a9f38c85 --- /dev/null +++ b/devel/pcre++/patches/patch-libpcre++_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-libpcre++_Makefile_in,v 1.1.1.1 2004/12/05 14:16:40 alek Exp $ +--- libpcre++/Makefile.in.orig Thu Dec 2 01:10:10 2004 ++++ libpcre++/Makefile.in Thu Dec 2 01:17:18 2004 +@@ -82,7 +82,7 @@ lib_LTLIBRARIES = libpcre++.la + libpcre___la_SOURCES = pcre++.h pcre++.cc get.cc replace.cc search.cc split.cc + include_HEADERS = pcre++.h + +-CXXFLAGS = -Wall -Wstrict-prototypes -O -g ++CXXFLAGS = -Wall -Wstrict-prototypes @CXXFLAGS@ + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_HEADER = config.h + CONFIG_CLEAN_FILES = diff --git a/devel/pcre++/patches/patch-pcre++-config_in b/devel/pcre++/patches/patch-pcre++-config_in new file mode 100644 index 00000000000..840d3dda20c --- /dev/null +++ b/devel/pcre++/patches/patch-pcre++-config_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-pcre++-config_in,v 1.1.1.1 2004/12/05 14:16:40 alek Exp $ +--- pcre++-config.in.orig Fri Dec 3 13:17:14 2004 ++++ pcre++-config.in Fri Dec 3 13:17:24 2004 +@@ -48,7 +48,7 @@ while test $# -gt 0; do + echo $includes + ;; + --libs) +- echo -L@libdir@ -lpcre++ ++ echo -L@libdir@ -lpcre++ -lpcre + ;; + *) + echo "${usage}" 1>&2 diff --git a/devel/pcre++/patches/patch-test_Makefile_in b/devel/pcre++/patches/patch-test_Makefile_in new file mode 100644 index 00000000000..4e8175d78cb --- /dev/null +++ b/devel/pcre++/patches/patch-test_Makefile_in @@ -0,0 +1,21 @@ +$OpenBSD: patch-test_Makefile_in,v 1.1.1.1 2004/12/05 14:16:40 alek Exp $ +--- test/Makefile.in.orig Wed Aug 25 01:38:04 2004 ++++ test/Makefile.in Thu Dec 2 20:49:56 2004 +@@ -83,7 +83,7 @@ noinst_PROGRAMS = test + test_SOURCES = test.cc + test_LDADD = $(pcre_linklib) + +-CXXFLAGS = -Wall -Wstrict-prototypes -O -g ++CXXFLAGS = -Wall -Wstrict-prototypes @CXXFLAGS@ + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_HEADER = ../libpcre++/config.h + CONFIG_CLEAN_FILES = +@@ -94,7 +94,7 @@ PROGRAMS = $(noinst_PROGRAMS) + DEFS = @DEFS@ -I. -I$(srcdir) -I../libpcre++ + CPPFLAGS = @CPPFLAGS@ + LDFLAGS = @LDFLAGS@ +-LIBS = @LIBS@ ++LIBS = @LIBS@ -lpcre + test_OBJECTS = test.$(OBJEXT) + test_DEPENDENCIES = ../libpcre++/.libs/libpcre++.a + test_LDFLAGS = diff --git a/devel/pcre++/pkg/DESCR b/devel/pcre++/pkg/DESCR new file mode 100644 index 00000000000..74cab43d7f0 --- /dev/null +++ b/devel/pcre++/pkg/DESCR @@ -0,0 +1,2 @@ +PCRE++ is a C++ wrapper-class for the PCRE library (Perl Compatible +Regular Expressions). diff --git a/devel/pcre++/pkg/PFRAG.shared b/devel/pcre++/pkg/PFRAG.shared new file mode 100644 index 00000000000..db4e2caf17a --- /dev/null +++ b/devel/pcre++/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2004/12/05 14:16:40 alek Exp $ +@lib lib/libpcre++.so.0.0 diff --git a/devel/pcre++/pkg/PLIST b/devel/pcre++/pkg/PLIST new file mode 100644 index 00000000000..40041547b6a --- /dev/null +++ b/devel/pcre++/pkg/PLIST @@ -0,0 +1,44 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2004/12/05 14:16:40 alek Exp $ +bin/pcre++-config +include/pcre++.h +lib/libpcre++.a +lib/libpcre++.la +@man man/man3/Pcre.3 +share/doc/pcre++/ +@comment share/doc/pcre++/AUTHORS +@comment share/doc/pcre++/COPYING +@comment share/doc/pcre++/ChangeLog +@comment share/doc/pcre++/INSTALL +@comment share/doc/pcre++/README +share/doc/pcre++/annotated.html +share/doc/pcre++/classPcre-members.html +share/doc/pcre++/classPcre.html +share/doc/pcre++/classPcre_1_1exception-members.html +share/doc/pcre++/classPcre_1_1exception.html +share/doc/pcre++/classpcrepp_1_1Pcre-members.html +share/doc/pcre++/classpcrepp_1_1Pcre.html +share/doc/pcre++/classpcrepp_1_1Pcre_1_1exception-members.html +share/doc/pcre++/classpcrepp_1_1Pcre_1_1exception.html +@comment share/doc/pcre++/config.log +share/doc/pcre++/doxygen.css +share/doc/pcre++/doxygen.png +share/doc/pcre++/files.html +share/doc/pcre++/functions.html +share/doc/pcre++/get_8cc-source.html +share/doc/pcre++/get_8cc.html +share/doc/pcre++/globals.html +share/doc/pcre++/index.html +share/doc/pcre++/namespacepcrepp.html +share/doc/pcre++/namespaces.html +share/doc/pcre++/namespacestd.html +share/doc/pcre++/pcre++_8cc-source.html +share/doc/pcre++/pcre++_8cc.html +share/doc/pcre++/pcre++_8h-source.html +share/doc/pcre++/pcre++_8h.html +share/doc/pcre++/replace_8cc-source.html +share/doc/pcre++/replace_8cc.html +share/doc/pcre++/search_8cc-source.html +share/doc/pcre++/search_8cc.html +share/doc/pcre++/split_8cc-source.html +share/doc/pcre++/split_8cc.html +%%SHARED%%