1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add p5-POSIX-Regex 0.89, OO interface for the gnu regex engine.

PR:		ports/102253
Submitted by:	Gea-Suan Lin <gslin at gslin.org>
This commit is contained in:
Cheng-Lung Sung 2006-09-26 08:18:26 +00:00
parent 2fbadb7a40
commit 6a772478f0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173867
5 changed files with 61 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,36 @@
# New ports collection makefile for: p5-POSIX-Regex
# Date created: 2006-08-19
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $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 <bsd.port.pre.mk>
.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 <bsd.port.post.mk>

View File

@ -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

View File

@ -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/

View File

@ -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