aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Lexical-Import
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-03-05 01:23:05 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-03-05 01:23:05 +0000
commit2663ea9501d564570d7bd22729ed7f614e61b092 (patch)
tree43d2b1dbde667a4e32ebaffd399e12fe90b6670c /devel/p5-Lexical-Import
parent18170beb1dd6e8e0219067191c579baae91b356f (diff)
Notes
Diffstat (limited to 'devel/p5-Lexical-Import')
-rw-r--r--devel/p5-Lexical-Import/Makefile31
-rw-r--r--devel/p5-Lexical-Import/distinfo2
-rw-r--r--devel/p5-Lexical-Import/pkg-descr24
-rw-r--r--devel/p5-Lexical-Import/pkg-plist7
4 files changed, 64 insertions, 0 deletions
diff --git a/devel/p5-Lexical-Import/Makefile b/devel/p5-Lexical-Import/Makefile
new file mode 100644
index 000000000000..897864789137
--- /dev/null
+++ b/devel/p5-Lexical-Import/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: p5-Lexical-Import
+# Date created: 2012-02-07
+# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Lexical-Import
+PORTVERSION= 0.002
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Clean imports from package-exporting modules
+
+BUILD_DEPENDS= p5-Lexical-Var>=0.006:${PORTSDIR}/devel/p5-Lexical-Var \
+ p5-Module-Runtime>=0.011:${PORTSDIR}/devel/p5-Module-Runtime \
+ p5-Params-Classify>=0:${PORTSDIR}/devel/p5-Params-Classify
+RUN_DEPENDS= p5-Lexical-Var>=0.006:${PORTSDIR}/devel/p5-Lexical-Var \
+ p5-Module-Runtime>=0.011:${PORTSDIR}/devel/p5-Module-Runtime \
+ p5-Params-Classify>=0:${PORTSDIR}/devel/p5-Params-Classify
+
+TEST_DEPENDS= p5-Test-Pod>=1:${PORTSDIR}/devel/p5-Test-Pod \
+ p5-Test-Pod-Coverage>=0:${PORTSDIR}/devel/p5-Test-Pod-Coverage
+
+PERL_CONFIGURE= 5.12.0+
+
+MAN3= Lexical::Import.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Lexical-Import/distinfo b/devel/p5-Lexical-Import/distinfo
new file mode 100644
index 000000000000..5ee8b188a0a0
--- /dev/null
+++ b/devel/p5-Lexical-Import/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Lexical-Import-0.002.tar.gz) = 5a555f870f09776d2d94b222a07c6a549896da751175bcc6714f1160b21d11fe
+SIZE (Lexical-Import-0.002.tar.gz) = 11432
diff --git a/devel/p5-Lexical-Import/pkg-descr b/devel/p5-Lexical-Import/pkg-descr
new file mode 100644
index 000000000000..3f46ca7f0f56
--- /dev/null
+++ b/devel/p5-Lexical-Import/pkg-descr
@@ -0,0 +1,24 @@
+Lexical::Import allows functions and other items, from a separate module, to be
+imported into the lexical namespace (as implemented by Lexical::Var), when the
+exporting module exports non-lexically to a package in the traditional manner.
+This is a translation layer, to help code written in the new way to use modules
+written in the old way.
+
+A lexically-imported item takes effect from the end of the definition statement
+up to the end of the immediately enclosing block, except where it is shadowed
+within a nested block. This is the same lexical scoping that the my, our, and
+state keywords supply. Within its scope, any use of the single-part name of the
+item (e.g., "$foo") refers directly to that item, regardless of what is in any
+package. Explicitly package-qualified names (e.g., "$main::foo") still refer to
+the package. There is no conflict between a lexical name definition and the same
+name in any package.
+
+This mechanism only works on Perl 5.11.2 and later. Prior to that, it is
+impossible for lexical subroutine imports to work for bareword subroutine calls.
+(See "BUGS" in Lexical::Var for details.) Other kinds of lexical importing are
+possible on earlier Perls, but because this is such a critical kind of usage in
+most code, this module will ensure that it works, for convenience. If the
+limited lexical importing is desired on earlier Perls, use Lexical::Var
+directly.
+
+WWW: http://search.cpan.org/dist/Lexical-Import/
diff --git a/devel/p5-Lexical-Import/pkg-plist b/devel/p5-Lexical-Import/pkg-plist
new file mode 100644
index 000000000000..c3661c1a1ab4
--- /dev/null
+++ b/devel/p5-Lexical-Import/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/Lexical/Import.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical/Import/.packlist
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical/Import/Import.bs
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical/Import/Import.so
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical/Import
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lexical
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Lexical