Adding port devel/p5-Lexical-Persistence, Persistent lexical variable values for arbitrary calls.
This commit is contained in:
parent
33f0c5dc45
commit
a841b9e43b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=181215
5 changed files with 60 additions and 0 deletions
|
@ -1195,6 +1195,7 @@
|
|||
SUBDIR += p5-Iterator-Misc
|
||||
SUBDIR += p5-Iterator-Util
|
||||
SUBDIR += p5-Java
|
||||
SUBDIR += p5-Lexical-Persistence
|
||||
SUBDIR += p5-List-Cycle
|
||||
SUBDIR += p5-List-Group
|
||||
SUBDIR += p5-List-Permutor
|
||||
|
|
32
devel/p5-Lexical-Persistence/Makefile
Normal file
32
devel/p5-Lexical-Persistence/Makefile
Normal file
|
@ -0,0 +1,32 @@
|
|||
# New ports collection makefile for: p5-Lexical-Persistence
|
||||
# Date created: 01 Jan 2007
|
||||
# Whom: Aaron Dalton <aaron@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Lexical-Persistence
|
||||
PORTVERSION= 0.96
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= Lexical
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= aaron@FreeBSD.org
|
||||
COMMENT= Persistent lexical variable values for arbitrary calls
|
||||
|
||||
BUILD_DEPENDS= p5-Devel-LexAlias>=0.04:${PORTSDIR}/devel/p5-Devel-LexAlias \
|
||||
p5-PadWalker>=1.1:${PORTSDIR}/devel/p5-PadWalker
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
MAN3= Lexical::Persistence.3
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PERL_LEVEL} < 500800
|
||||
IGNORE= requires at least Perl 5.8. Please install lang/perl5.8 and try again
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
devel/p5-Lexical-Persistence/distinfo
Normal file
3
devel/p5-Lexical-Persistence/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (Lexical-Persistence-0.96.tar.gz) = fba4489039f674e5b164abc97b30ca60
|
||||
SHA256 (Lexical-Persistence-0.96.tar.gz) = 14b824382aece07261379d0ceb34d466cb6f64e1eebd0ea1258d624da7b8de5f
|
||||
SIZE (Lexical-Persistence-0.96.tar.gz) = 9645
|
19
devel/p5-Lexical-Persistence/pkg-descr
Normal file
19
devel/p5-Lexical-Persistence/pkg-descr
Normal file
|
@ -0,0 +1,19 @@
|
|||
Lexical::Persistence does a few things, all related. Note that all the
|
||||
behaviors listed here are the defaults. Subclasses can override nearly
|
||||
every aspect of Lexical::Persistence's behavior.
|
||||
|
||||
Lexical::Persistence lets your code access persistent data through lexical
|
||||
variables. This example prints "some value" because the value of $x
|
||||
perists in the $lp object between setter() and getter().
|
||||
|
||||
use Lexical::Persistence;
|
||||
|
||||
my $lp = Lexical::Persistence->new();
|
||||
$lp->call(\&setter);
|
||||
$lp->call(\&getter);
|
||||
|
||||
sub setter { my $x = "some value" }
|
||||
sub getter { print my $x, "\n" }
|
||||
|
||||
WWW: http://search.cpan.org/dist/Lexical-Persistence
|
||||
Author: Rocco Caputo <rcaputo@cpan.org>
|
5
devel/p5-Lexical-Persistence/pkg-plist
Normal file
5
devel/p5-Lexical-Persistence/pkg-plist
Normal file
|
@ -0,0 +1,5 @@
|
|||
%%SITE_PERL%%/Lexical/Persistence.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical/Persistence/.packlist
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical/Persistence
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical
|
||||
@dirrmtry %%SITE_PERL%%/Lexical
|
Loading…
Reference in a new issue