diff options
author | rh <rh@pkgsrc.org> | 2003-03-15 08:53:08 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2003-03-15 08:53:08 +0000 |
commit | aff0c946ff2962648b2aefbc569950b0afef6c52 (patch) | |
tree | 2618cdd5cd5f8e705d12445e1dc2d267d15bc153 | |
parent | d579efeb141047d95524ca645f60028081708c7c (diff) | |
download | pkgsrc-aff0c946ff2962648b2aefbc569950b0afef6c52.tar.gz |
Initial import of regexx-0.98.1, a C++ regular expression library
-rw-r--r-- | textproc/regexx/DESCR | 13 | ||||
-rw-r--r-- | textproc/regexx/Makefile | 19 | ||||
-rw-r--r-- | textproc/regexx/PLIST | 8 | ||||
-rw-r--r-- | textproc/regexx/buildlink2.mk | 27 | ||||
-rw-r--r-- | textproc/regexx/distinfo | 7 | ||||
-rw-r--r-- | textproc/regexx/patches/patch-aa | 22 | ||||
-rw-r--r-- | textproc/regexx/patches/patch-ab | 60 | ||||
-rw-r--r-- | textproc/regexx/patches/patch-ac | 13 |
8 files changed, 169 insertions, 0 deletions
diff --git a/textproc/regexx/DESCR b/textproc/regexx/DESCR new file mode 100644 index 00000000000..1fe2961313e --- /dev/null +++ b/textproc/regexx/DESCR @@ -0,0 +1,13 @@ + Regexx is a complete regular expressions C++ solution. It implements +easy expression execution, global searching, replace with atom +substitution, customized replaces, easy match and atom strings retrieving. +Also included in the library are functions to split strings using strings +or regular expressions. + + Since 0.97, Regexx is using Perl Compatible Regular Expressions. It +means that you can use regular expressions very similar to the ones you +use with Perl. + + It's very easy to use Regexx. Just include the "regexx" namespace and +the "regexx.hh" header in your project, create a Regexx instance and use +its methods as you like. diff --git a/textproc/regexx/Makefile b/textproc/regexx/Makefile new file mode 100644 index 00000000000..210a9f84fb7 --- /dev/null +++ b/textproc/regexx/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/03/15 08:53:08 rh Exp $ +# + +DISTNAME= regexx-0.98.1 +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=regexx/} + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://bazar.conectiva.com.br/~Eniemeyer/projects/regexx/ +COMMENT= C++ regular expression library + +USE_BUILDLINK2= YES +USE_GMAKE= YES +USE_LIBTOOL= YES +LIBTOOL_OVERRIDE= ${WRKSRC}/libtool +GNU_CONFIGURE= YES + +.include "../../devel/pcre/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/regexx/PLIST b/textproc/regexx/PLIST new file mode 100644 index 00000000000..ecec103771b --- /dev/null +++ b/textproc/regexx/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/15 08:53:08 rh Exp $ +include/regexx.hh +include/split.hh +lib/libregexx.a +lib/libregexx.la +lib/libregexx.so +lib/libregexx.so.2 +lib/libregexx.so.2.0 diff --git a/textproc/regexx/buildlink2.mk b/textproc/regexx/buildlink2.mk new file mode 100644 index 00000000000..bf1934bc488 --- /dev/null +++ b/textproc/regexx/buildlink2.mk @@ -0,0 +1,27 @@ +# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/03/15 08:53:09 rh Exp $ +# +# This Makefile fragment is included by packages that use regexx. +# +# This file was created automatically using createbuildlink 2.4. +# + +.if !defined(REGEXX_BUILDLINK2_MK) +REGEXX_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= regexx +BUILDLINK_DEPENDS.regexx?= regexx>=0.98.1 +BUILDLINK_PKGSRCDIR.regexx?= ../../textproc/regexx + +EVAL_PREFIX+= BUILDLINK_PREFIX.regexx=regexx +BUILDLINK_PREFIX.regexx_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.regexx+= include/regexx.hh +BUILDLINK_FILES.regexx+= include/split.hh +BUILDLINK_FILES.regexx+= lib/libregexx.* + +.include "../../devel/pcre/buildlink2.mk" + +BUILDLINK_TARGETS+= regexx-buildlink + +regexx-buildlink: _BUILDLINK_USE + +.endif # REGEXX_BUILDLINK2_MK diff --git a/textproc/regexx/distinfo b/textproc/regexx/distinfo new file mode 100644 index 00000000000..d0ec88fc212 --- /dev/null +++ b/textproc/regexx/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/03/15 08:53:09 rh Exp $ + +SHA1 (regexx-0.98.1.tar.gz) = 0ab71bd8d645d961d846445fd160b951e08d4514 +Size (regexx-0.98.1.tar.gz) = 422031 bytes +SHA1 (patch-aa) = 15d40e8c78fe8b31aa144e92d44d125872240f15 +SHA1 (patch-ab) = 3ab2e37f530b2489c3837e0a55e27c33fba02757 +SHA1 (patch-ac) = 12aa1a37bdccff90a7a7e7244f44890584ddd012 diff --git a/textproc/regexx/patches/patch-aa b/textproc/regexx/patches/patch-aa new file mode 100644 index 00000000000..d2310743d1f --- /dev/null +++ b/textproc/regexx/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/03/15 08:53:09 rh Exp $ + +--- configure.orig 2003-03-15 17:21:21.000000000 +1000 ++++ configure +@@ -1679,7 +1679,7 @@ exec 5>>./config.log + + + +-subdirs="pcre" ++subdirs="" + + + trap '' 1 2 15 +@@ -1991,7 +1991,7 @@ if test "$no_recursion" != yes; then + esac + done + +- for ac_config_dir in pcre; do ++ for ac_config_dir in ; do + + # Do not complain, so a configure script can configure whichever + # parts of a large source tree are present. diff --git a/textproc/regexx/patches/patch-ab b/textproc/regexx/patches/patch-ab new file mode 100644 index 00000000000..30ed7df373c --- /dev/null +++ b/textproc/regexx/patches/patch-ab @@ -0,0 +1,60 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/03/15 08:53:09 rh Exp $ + +--- src/regexx.cc.orig 2001-03-14 00:42:21.000000000 +1000 ++++ src/regexx.cc +@@ -28,5 +28,5 @@ + + #include "regexx.hh" +-#include "../pcre/pcre.h" ++#include <pcre.h> + + const unsigned int& +@@ -44,5 +44,5 @@ regexx::Regexx::exec(int _flags) + throw CompileException(errptr); + } +- pcre_fullinfo(m_preg, NULL, PCRE_INFO_CAPTURECOUNT, (void*)&m_capturecount); ++ pcre_fullinfo((const pcre *)m_preg, NULL, PCRE_INFO_CAPTURECOUNT, (void*)&m_capturecount); + m_compiled = true; + } +@@ -50,5 +50,5 @@ regexx::Regexx::exec(int _flags) + if(!m_study && (_flags&study)) { + const char *errptr; +- m_extra = pcre_study(m_preg, 0, &errptr); ++ m_extra = pcre_study((const pcre *)m_preg, 0, &errptr); + if(errptr != NULL) + throw CompileException(errptr); +@@ -64,5 +64,5 @@ regexx::Regexx::exec(int _flags) + m_matches = 0; + +- ssc = pcre_exec(m_preg,m_extra,m_str.c_str(),m_str.length(),0,eflags,ssv,33); ++ ssc = pcre_exec((const pcre *)m_preg, (const pcre_extra *)m_extra,m_str.c_str(),m_str.length(),0,eflags,ssv,33); + bool ret = (ssc > 0); + +@@ -71,5 +71,5 @@ regexx::Regexx::exec(int _flags) + while(ret) { + m_matches++; +- ret = (pcre_exec(m_preg,m_extra,m_str.c_str(),m_str.length(),ssv[1],eflags,ssv,33) > 0); ++ ret = (pcre_exec((const pcre *)m_preg, (const pcre_extra *)m_extra,m_str.c_str(),m_str.length(),ssv[1],eflags,ssv,33) > 0); + } + else if(_flags&noatom) +@@ -77,5 +77,5 @@ regexx::Regexx::exec(int _flags) + m_matches++; + match.push_back(RegexxMatch(m_str,ssv[0],ssv[1]-ssv[0])); +- ret = (pcre_exec(m_preg,m_extra,m_str.c_str(),m_str.length(),ssv[1],eflags,ssv,33) > 0); ++ ret = (pcre_exec((const pcre *)m_preg, (const pcre_extra *)m_extra,m_str.c_str(),m_str.length(),ssv[1],eflags,ssv,33) > 0); + } + else +@@ -90,5 +90,5 @@ regexx::Regexx::exec(int _flags) + match.back().atom.push_back(RegexxMatchAtom(m_str,0,0)); + } +- ret = (pcre_exec(m_preg,m_extra,m_str.c_str(),m_str.length(),ssv[1],eflags,ssv,33) > 0); ++ ret = (pcre_exec((const pcre *)m_preg, (const pcre_extra *)m_extra,m_str.c_str(),m_str.length(),ssv[1],eflags,ssv,33) > 0); + } + } +@@ -115,5 +115,5 @@ regexx::Regexx::exec(int _flags) + match.back().atom.push_back(RegexxMatchAtom(m_str,0,0)); + } +- ret = (pcre_exec(m_preg,m_extra,m_str.c_str(),m_str.length(),ssv[1],eflags,ssv,33) > 0); ++ ret = (pcre_exec((const pcre *)m_preg, (const pcre_extra *)m_extra,m_str.c_str(),m_str.length(),ssv[1],eflags,ssv,33) > 0); + } + } diff --git a/textproc/regexx/patches/patch-ac b/textproc/regexx/patches/patch-ac new file mode 100644 index 00000000000..2cc701f589c --- /dev/null +++ b/textproc/regexx/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/03/15 08:53:09 rh Exp $ + +--- src/Makefile.in.orig 2003-03-15 17:40:03.000000000 +1000 ++++ src/Makefile.in +@@ -74,7 +74,7 @@ VERSION = @VERSION@ + + lib_LTLIBRARIES = libregexx.la + libregexx_la_SOURCES = regexx.cc regexx.hh split.cc split.hh +-libregexx_la_LDFLAGS = -version-info 2:0:1 ../pcre/maketables.lo ../pcre/get.lo ../pcre/study.lo ../pcre/pcre.lo ++libregexx_la_LDFLAGS = -version-info 2:0:1 -lpcre + include_HEADERS = regexx.hh split.hh + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_CLEAN_FILES = |