Port details on branch 2022Q2 |
- p5-constant-defer Constant subs with deferred value calculation
- 6 devel =0 6Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2015-04-26 12:28:48
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- Also Listed In: perl5
- License: GPLv3
- WWW:
- https://metacpan.org/release/constant-defer
- Description:
- constant::defer creates a subroutine which on the first call runs given code to
calculate its value, and on any subsequent calls just returns that value, like a
constant. The value code is discarded once run, allowing it to be garbage
collected.
Deferring a calculation is good if it might take a lot of work or produce a big
result but is only needed sometimes or only well into a program run. If it's
never needed then the value code never runs.
A deferred constant is generally not inlined or folded (see "Constant Folding"
in perlop) since it's not a single scalar value. In the current implementation a
deferred constant becomes a plain constant after the first use, so may inline
etc in code compiled after that (see "IMPLEMENTATION" below).
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-constant-defer>0:devel/p5-constant-defer
- To install the port:
- cd /usr/ports/devel/p5-constant-defer/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/p5-constant-defer
- pkg install p5-constant-defer
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-constant-defer
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (constant-defer-6.tar.gz) = 7b21263198ca22686efff3ae987a240be423dd2160afdeb29fe716d032986ffa
SIZE (constant-defer-6.tar.gz) = 43427
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:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- This port is required by:
- for Build
-
- textproc/p5-HTML-FormatExternal
- for Run
-
- textproc/p5-HTML-FormatExternal
Configuration Options:
- No options to configure
- Options name:
- devel_p5-constant-defer
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|