From 6a772478f0c4490e27c585bbca74fbaa53e32074 Mon Sep 17 00:00:00 2001 From: Cheng-Lung Sung Date: Tue, 26 Sep 2006 08:18:26 +0000 Subject: Add p5-POSIX-Regex 0.89, OO interface for the gnu regex engine. PR: ports/102253 Submitted by: Gea-Suan Lin --- textproc/Makefile | 1 + textproc/p5-POSIX-Regex/Makefile | 36 ++++++++++++++++++++++++++++++++++++ textproc/p5-POSIX-Regex/distinfo | 3 +++ textproc/p5-POSIX-Regex/pkg-descr | 12 ++++++++++++ textproc/p5-POSIX-Regex/pkg-plist | 9 +++++++++ 5 files changed, 61 insertions(+) create mode 100644 textproc/p5-POSIX-Regex/Makefile create mode 100644 textproc/p5-POSIX-Regex/distinfo create mode 100644 textproc/p5-POSIX-Regex/pkg-descr create mode 100644 textproc/p5-POSIX-Regex/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index dbfd1dd08ff6..b33a4549a92f 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -394,6 +394,7 @@ SUBDIR += p5-PDF-FromHTML SUBDIR += p5-PDF-Writer SUBDIR += p5-POE-Filter-XML + SUBDIR += p5-POSIX-Regex SUBDIR += p5-PPI SUBDIR += p5-PPI-HTML SUBDIR += p5-Parse-FixedLength diff --git a/textproc/p5-POSIX-Regex/Makefile b/textproc/p5-POSIX-Regex/Makefile new file mode 100644 index 000000000000..49a1ba235b3c --- /dev/null +++ b/textproc/p5-POSIX-Regex/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: p5-POSIX-Regex +# Date created: 2006-08-19 +# Whom: Gea-Suan Lin +# +# $FreeBSD$ +# + +PORTNAME= POSIX-Regex +PORTVERSION= 0.89 +CATEGORIES= textproc perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= POSIX +PKGNAMEPREFIX= p5- + +MAINTAINER= gslin@gslin.org +COMMENT= OO interface for the gnu regex engine + +PERL_CONFIGURE= yes +USE_GCC= 3.2+ + +MAN3= POSIX::Regex.3 + +post-patch: + ${PERL} -pi -e 's/REG_NOERROR/0/g' ${WRKSRC}/Regex.xs + +.include + +.if ${PERL_LEVEL} < 500703 +BUILD_DEPENDS+= ${SITE_PERL}/ExtUtils/Constant.pm:${PORTSDIR}/devel/p5-ExtUtils-Constant +.endif + +.if ${PERL_LEVEL} < 500601 +IGNORE= requires perl 5.6.x or later. Install lang/perl5 then try again +.endif + +.include diff --git a/textproc/p5-POSIX-Regex/distinfo b/textproc/p5-POSIX-Regex/distinfo new file mode 100644 index 000000000000..b6fb7efcb2bd --- /dev/null +++ b/textproc/p5-POSIX-Regex/distinfo @@ -0,0 +1,3 @@ +MD5 (POSIX-Regex-0.89.tar.gz) = 0b37034a809231c4581476339fa32c39 +SHA256 (POSIX-Regex-0.89.tar.gz) = 08e253fe0c9ac3b5be5f85454e51fd64fad6a21f15b258385bbfd5878794a579 +SIZE (POSIX-Regex-0.89.tar.gz) = 5001 diff --git a/textproc/p5-POSIX-Regex/pkg-descr b/textproc/p5-POSIX-Regex/pkg-descr new file mode 100644 index 000000000000..ea7f000ff351 --- /dev/null +++ b/textproc/p5-POSIX-Regex/pkg-descr @@ -0,0 +1,12 @@ +This is a port of the glibc gnu regex engine into perl. There are few +reasons you would need this. The few I can think of include: + +0) You wish to use untrusted user expressions in such a way as to be +able to catch errors. Example: eval { alarm 2; m/((){1024}){1024}/ } +is an instant uncatchable segmentation fault. GNU's regexps will still +fail, but in a timeout way rather than an instant segfault way. + +1) You wish to have POSIX compliance on ... something ... Perl's +regexps are slightly different -- arguably better, but different. + +WWW: http://search.cpan.org/dist/POSIX-Regex/ diff --git a/textproc/p5-POSIX-Regex/pkg-plist b/textproc/p5-POSIX-Regex/pkg-plist new file mode 100644 index 000000000000..4e051a646e24 --- /dev/null +++ b/textproc/p5-POSIX-Regex/pkg-plist @@ -0,0 +1,9 @@ +@comment $FreeBSD$ +%%SITE_PERL%%/%%PERL_ARCH%%/POSIX/Regex.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/POSIX/Regex/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/POSIX/Regex/Regex.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/POSIX/Regex/Regex.so +%%SITE_PERL%%/%%PERL_ARCH%%/auto/POSIX/Regex/autosplit.ix +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POSIX/Regex +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/POSIX +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/POSIX -- cgit v1.2.3