ports/118991: [NEW PORT] textproc/p5-Regexp-Copy
Andrej Zverev
andrey.zverev at electro-com.ru
Mon Dec 24 13:50:02 UTC 2007
>Number: 118991
>Category: ports
>Synopsis: [NEW PORT] textproc/p5-Regexp-Copy
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 24 13:50:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Andrej Zverev
>Release: FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
>Description:
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.
>How-To-Repeat:
>Fix:
--- p5-Regexp-Copy.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# p5-Regexp-Copy
# p5-Regexp-Copy/pkg-descr
# p5-Regexp-Copy/Makefile
# p5-Regexp-Copy/pkg-plist
# p5-Regexp-Copy/distinfo
#
echo c - p5-Regexp-Copy
mkdir -p p5-Regexp-Copy > /dev/null 2>&1
echo x - p5-Regexp-Copy/pkg-descr
sed 's/^X//' >p5-Regexp-Copy/pkg-descr << 'END-of-p5-Regexp-Copy/pkg-descr'
XRegexp::Copy allows you to copy the contents of one Regexp object to another.
XA problem that I have found with the qr// operator is that the Regexp objects
Xthat it creates are is impossible to dereference.
XThis causes problems if you want to change the data in the regexp without
Xlosing the reference to it. Its impossible.
XRegexp::Copy allows you to change the Regexp by copying one object created
Xthrough qr// to another.
X
XWWW: http://search.cpan.org/~jduncan/
END-of-p5-Regexp-Copy/pkg-descr
echo x - p5-Regexp-Copy/Makefile
sed 's/^X//' >p5-Regexp-Copy/Makefile << 'END-of-p5-Regexp-Copy/Makefile'
X# New ports collection makefile for: p5-Regexp-Copy
X# Date created: 2007-12-24
X# Whom: Andrej Zverev <andrey.zverev at electro-com.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME= Regexp-Copy
XPORTVERSION= 0.06
XCATEGORIES= textproc perl5
XMASTER_SITES= ${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR= ../by-authors/id/J/JD/JDUNCAN
XPKGNAMEPREFIX= p5-
X
XMAINTAINER= perl at FreeBSD.org
XCOMMENT= A copy the contents of one Regexp object to another
X
XBUILD_DEPENDS= p5-ExtUtils-MakeMaker>=6.11:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
XPERL_CONFIGURE= yes
X
XMAN3= Regexp::Copy.3
X
X.include <bsd.port.mk>
END-of-p5-Regexp-Copy/Makefile
echo x - p5-Regexp-Copy/pkg-plist
sed 's/^X//' >p5-Regexp-Copy/pkg-plist << 'END-of-p5-Regexp-Copy/pkg-plist'
X at comment $FreeBSD$
X%%SITE_PERL%%/%%PERL_ARCH%%/Regexp/Storable.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/Regexp/Copy.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/Copy.so
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/Copy.bs
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/autosplit.ix
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy/.packlist
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Regexp/Copy
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Regexp
END-of-p5-Regexp-Copy/pkg-plist
echo x - p5-Regexp-Copy/distinfo
sed 's/^X//' >p5-Regexp-Copy/distinfo << 'END-of-p5-Regexp-Copy/distinfo'
XMD5 (Regexp-Copy-0.06.tar.gz) = d0f3875e0655c0ac9eb37813ec82c137
XSHA256 (Regexp-Copy-0.06.tar.gz) = 972beb7a88ebcdb76f33e64ee9e11dc3d550be22479067145546873bc8ea8825
XSIZE (Regexp-Copy-0.06.tar.gz) = 3104
END-of-p5-Regexp-Copy/distinfo
exit
--- p5-Regexp-Copy.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list