Port details on branch 2022Q2 |
- p5-Eval-Closure Safely and cleanly create closures via string eval
- 0.14 devel =15 0.14Version of this port present on the latest quarterly branch.
- Maintainer: perl@FreeBSD.org
- Port Added: 2011-06-06 09:27:55
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- People watching this port, also watch:: curl, libidn, p5-Package-Stash-XS, expat, p5-Digest-HMAC
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/Eval-Closure
- Description:
- String eval is often used for dynamic code generation. For instance, Moose uses
it heavily, to generate inlined versions of accessors and constructors, which
speeds code up at runtime by a significant amount. String eval is not without
its issues however - it's difficult to control the scope it's used in (which
determines which variables are in scope inside the eval), and it can be quite
slow, especially if doing a large number of evals.
This module attempts to solve both of those problems. It provides an
eval_closure function, which evals a string in a clean environment, other than
a fixed list of specified variables. It also caches the result of the eval, so
that doing repeated evals of the same source, even with a different
environment, will be much faster (but note that the description is part of the
string to be evaled, so it must also be the same (or non-existent) if caching
is to work properly).
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Eval-Closure>0:devel/p5-Eval-Closure
- To install the port:
- cd /usr/ports/devel/p5-Eval-Closure/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/p5-Eval-Closure
- pkg install p5-Eval-Closure
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Eval-Closure
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1466511227
SHA256 (Eval-Closure-0.14.tar.gz) = ea0944f2f5ec98d895bef6d503e6e4a376fea6383a6bc64c7670d46ff2218cad
SIZE (Eval-Closure-0.14.tar.gz) = 20128
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-Try-Tiny>=0 : lang/p5-Try-Tiny
- perl5>=5.32.r0<5.33 : lang/perl5.32
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- p5-Try-Tiny>=0 : lang/p5-Try-Tiny
- perl5>=5.32.r0<5.33 : lang/perl5.32
- This port is required by:
- for Build
-
- devel/p5-Moose
- devel/p5-Params-ValidationCompiler
- devel/p5-Reply
- devel/p5-Specio
- for Run
-
- devel/p5-Moose
- devel/p5-Params-ValidationCompiler
- devel/p5-Reply
- devel/p5-Specio
Configuration Options:
- No options to configure
- Options name:
- devel_p5-Eval-Closure
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|