Port details on branch 2022Q3 |
- p5-Lexical-Import Clean imports from package-exporting modules
- 0.002_2 devel =0 0.002_2Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2012-03-05 01:23:16
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/Lexical-Import
- Description:
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Lexical-Import>0:devel/p5-Lexical-Import
- To install the port:
- cd /usr/ports/devel/p5-Lexical-Import/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/p5-Lexical-Import
- pkg install p5-Lexical-Import
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Lexical-Import
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (Lexical-Import-0.002.tar.gz) = 5a555f870f09776d2d94b222a07c6a549896da751175bcc6714f1160b21d11fe
SIZE (Lexical-Import-0.002.tar.gz) = 11432
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- p5-Lexical-Var>=0.006 : devel/p5-Lexical-Var
- p5-Module-Runtime>=0.011 : devel/p5-Module-Runtime
- p5-Params-Classify>=0 : devel/p5-Params-Classify
- perl5>=5.32.r0<5.33 : lang/perl5.32
- p5-Module-Build>=0.4206 : devel/p5-Module-Build
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- p5-Lexical-Var>=0.006 : devel/p5-Lexical-Var
- p5-Module-Runtime>=0.011 : devel/p5-Module-Runtime
- p5-Params-Classify>=0 : devel/p5-Params-Classify
- perl5>=5.32.r0<5.33 : lang/perl5.32
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_p5-Lexical-Import
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|