From dc4bbbce24394eba535e5709fa2ccac770efe6da Mon Sep 17 00:00:00 2001 From: Andrej Zverev Date: Tue, 25 Dec 2007 08:57:51 +0000 Subject: [PATCH] Regexp::Copy allows you to copy the contents of one Regexp object to another. A problem that I have found with the qr// operator is that the Regexp objects that it creates are is impossible to dereference. This causes problems if you want to change the data in the regexp without losing the reference to it. Its impossible. Regexp::Copy allows you to change the Regexp by copying one object created through qr// to another. PR: ports/118991 Submitted by: az@ --- textproc/Makefile | 1 + textproc/p5-Regexp-Copy/Makefile | 25 +++++++++++++++++++++++++ textproc/p5-Regexp-Copy/distinfo | 3 +++ textproc/p5-Regexp-Copy/pkg-descr | 9 +++++++++ textproc/p5-Regexp-Copy/pkg-plist | 10 ++++++++++ 5 files changed, 48 insertions(+) create mode 100644 textproc/p5-Regexp-Copy/Makefile create mode 100644 textproc/p5-Regexp-Copy/distinfo create mode 100644 textproc/p5-Regexp-Copy/pkg-descr create mode 100644 textproc/p5-Regexp-Copy/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index 90a45a41b076..4a0c571802fc 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -483,6 +483,7 @@ SUBDIR += p5-Regex-PreSuf SUBDIR += p5-Regexp-Common SUBDIR += p5-Regexp-Common-profanity_us + SUBDIR += p5-Regexp-Copy SUBDIR += p5-Regexp-DefaultFlags SUBDIR += p5-Regexp-Log SUBDIR += p5-Regexp-Log-Common diff --git a/textproc/p5-Regexp-Copy/Makefile b/textproc/p5-Regexp-Copy/Makefile new file mode 100644 index 000000000000..8c7946194257 --- /dev/null +++ b/textproc/p5-Regexp-Copy/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: p5-Regexp-Copy +# Date created: 2007-12-24 +# Whom: Andrej Zverev +# +# $FreeBSD$ +# + +PORTNAME= Regexp-Copy +PORTVERSION= 0.06 +CATEGORIES= textproc perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= ../by-authors/id/J/JD/JDUNCAN +PKGNAMEPREFIX= p5- + +MAINTAINER= perl@FreeBSD.org +COMMENT= A copy the contents of one Regexp object to another + +BUILD_DEPENDS= p5-ExtUtils-MakeMaker>=6.11:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= Regexp::Copy.3 + +.include diff --git a/textproc/p5-Regexp-Copy/distinfo b/textproc/p5-Regexp-Copy/distinfo new file mode 100644 index 000000000000..74d77a9ff7e9 --- /dev/null +++ b/textproc/p5-Regexp-Copy/distinfo @@ -0,0 +1,3 @@ +MD5 (Regexp-Copy-0.06.tar.gz) = d0f3875e0655c0ac9eb37813ec82c137 +SHA256 (Regexp-Copy-0.06.tar.gz) = 972beb7a88ebcdb76f33e64ee9e11dc3d550be22479067145546873bc8ea8825 +SIZE (Regexp-Copy-0.06.tar.gz) = 3104 diff --git a/textproc/p5-Regexp-Copy/pkg-descr b/textproc/p5-Regexp-Copy/pkg-descr new file mode 100644 index 000000000000..ebca2a3472b4 --- /dev/null +++ b/textproc/p5-Regexp-Copy/pkg-descr @@ -0,0 +1,9 @@ +Regexp::Copy allows you to copy the contents of one Regexp object to another. +A problem that I have found with the qr// operator is that the Regexp objects +that it creates are is impossible to dereference. +This causes problems if you want to change the data in the regexp without +losing the reference to it. Its impossible. +Regexp::Copy allows you to change the Regexp by copying one object created +through qr// to another. + +WWW: http://search.cpan.org/~jduncan/ diff --git a/textproc/p5-Regexp-Copy/pkg-plist b/textproc/p5-Regexp-Copy/pkg-plist new file mode 100644 index 000000000000..f6f8bde330cc --- /dev/null +++ b/textproc/p5-Regexp-Copy/pkg-plist @@ -0,0 +1,10 @@ +@comment $FreeBSD$ +%%SITE_PERL%%/%%PERL_ARCH%%/Regexp/Storable.pm +%%SITE_PERL%%/%%PERL_ARCH%%/Regexp/Copy.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/Copy.so +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/Copy.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/autosplit.ix +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/.packlist +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Regexp