devel/p5-Eval-Closure 0.14 FreeBSD
Safely and cleanly create closures via string eval
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 10.9 KiB, 19.5 KiB installed
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).
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Eval-Closure | 0.14 |
| OpenBSD | devel/p5-Eval-Closure | 0.14p0 |
| NetBSD | devel/p5-Eval-Closure | 0.14nb11 |
| DragonFly | devel/p5-Eval-Closure | 0.14 |
| MidnightBSD | devel/p5-Eval-Closure | 0.14 |
| HardenedBSD | devel/p5-Eval-Closure | 0.14 |
| GhostBSD | devel/p5-Eval-Closure | 0.14 |
| OPNsense | devel/p5-Eval-Closure | 0.14 |
Install
Binary package:
pkg install p5-Eval-Closure
From the ports tree:
cd /usr/ports/devel/p5-Eval-Closure/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Eval-Closure>0:devel/p5-Eval-Closure
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.14 | 0.14 | 0.14 | 0.14 | 0.14 |
| FreeBSD:14:quarterly | 0.14 | 0.14 | n/a | 0.14 | 0.14 |
| FreeBSD:15:latest | 0.14 | 0.14 | n/a | 0.14 | 0.14 |
| FreeBSD:15:quarterly | 0.14 | 0.14 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.14 | 0.14 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
p5-Try-Tiny>=0: lang/p5-Try-Tiny
Runtime 1
p5-Try-Tiny>=0: lang/p5-Try-Tiny
Test 3
p5-Devel-LexAlias>=0.05: devel/p5-Devel-LexAliasp5-Test-Fatal>=0: devel/p5-Test-Fatalp5-Test-Requires>=0: devel/p5-Test-Requires
The full lists below include those, and their dependencies in turn.
Build dependencies 2
Run dependencies 2
Required by 610
- astro/p5-Astro-ADS
- astro/p5-Astro-Catalog
- astro/p5-Astro-Coords
- astro/p5-Astro-Flux
- astro/p5-Astro-Sunrise
- astro/p5-GPS-Babel
- astro/p5-Net-GPSD3
- audio/mythplugin-mythmusic
- audio/p5-Audio-MPD
- audio/p5-Audio-MPD-Common
- biology/p5-Bio-MAGETAB
- biology/p5-Bio-Phylo
- converters/p5-Data-AMF
- databases/p5-App-Sqitch
- databases/p5-CHI-Driver-Memcached
- databases/p5-DBICx-MapMaker
- databases/p5-DBIWrapper
- databases/p5-DBIx-Class-AuditLog
- databases/p5-DBIx-Class-DateTime-Epoch
- databases/p5-DBIx-Class-DeploymentHandler
- databases/p5-DBIx-Class-Fixtures
- databases/p5-DBIx-Class-Migration
- databases/p5-DBIx-Class-MooseColumns
- databases/p5-DBIx-Class-ResultSet-RecursiveUpdate
- databases/p5-DBIx-Class-Schema-PopulateMore
- databases/p5-DBIx-Class-TimeStamp
- databases/p5-DBIx-NoSQL
- databases/p5-DBIx-Skinny-InflateColumn-DateTime
- databases/p5-DBIx-VersionedDDL
- databases/p5-HTML-FormHandler-Model-DBIC
- databases/p5-Jifty-DBI
- databases/p5-Mongoose
- databases/p5-Rose-DB
- databases/p5-Rose-DB-Object
- databases/p5-Rose-DBx-Object-MoreHelpers
- databases/p5-Rose-DBx-Object-Renderer
- databases/p5-Test-Cukes
- deskutils/p5-Data-ICal-DateTime
- devel/bugzilla50
- devel/bugzilla52
- devel/p5-Algorithm-Networksort
- devel/p5-AnyEvent-Subprocess
- devel/p5-App-GitHub
- devel/p5-App-SD
- devel/p5-BZ-Client
- devel/p5-Bread-Board
- devel/p5-Bread-Board-Declare
- devel/p5-CHI-Driver-DBI
- devel/p5-Carp-REPL
- devel/p5-Class-Workflow
- devel/p5-CommitBit
- devel/p5-Config-JFDI
- devel/p5-Config-MVP
- devel/p5-Config-MVP-Reader-INI
- devel/p5-Config-Versioned
- devel/p5-Connector
- devel/p5-Data-Dumper-Interp
- devel/p5-Data-Serializable
- devel/p5-Data-Stream-Bulk
- devel/p5-Data-Visitor
- devel/p5-Data-Visitor-Encode
- devel/p5-Date-Extract
- devel/p5-DateTime
- devel/p5-DateTime-Astro
- devel/p5-DateTime-Calendar-Chinese
- devel/p5-DateTime-Calendar-Christian
- devel/p5-DateTime-Calendar-Discordian
- devel/p5-DateTime-Calendar-FrenchRevolutionary
- devel/p5-DateTime-Calendar-Hebrew
- devel/p5-DateTime-Calendar-Japanese
- devel/p5-DateTime-Calendar-Julian
- devel/p5-DateTime-Calendar-Mayan
- devel/p5-DateTime-Calendar-Pataphysical
- devel/p5-DateTime-Event-Chinese
- devel/p5-DateTime-Event-Cron
- devel/p5-DateTime-Event-Easter
- devel/p5-DateTime-Event-ICal
- devel/p5-DateTime-Event-Lunar
- devel/p5-DateTime-Event-NameDay
- devel/p5-DateTime-Event-Random
- devel/p5-DateTime-Event-Recurrence
- devel/p5-DateTime-Event-Sunrise
- devel/p5-DateTime-Event-Zodiac
- devel/p5-DateTime-Fiscal-Year
- devel/p5-DateTime-Format-Baby
- devel/p5-DateTime-Format-Bork
- devel/p5-DateTime-Format-Builder
- devel/p5-DateTime-Format-DBI
- devel/p5-DateTime-Format-DateManip
- devel/p5-DateTime-Format-DateParse
- devel/p5-DateTime-Format-Duration
- devel/p5-DateTime-Format-Epoch
- devel/p5-DateTime-Format-Excel
- devel/p5-DateTime-Format-Flexible
- devel/p5-DateTime-Format-HTTP
- devel/p5-DateTime-Format-IBeat
- devel/p5-DateTime-Format-ICal
- devel/p5-DateTime-Format-ISO8601
- devel/p5-DateTime-Format-Mail
- devel/p5-DateTime-Format-MySQL
The first 100 are listed.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Eval/Closure.pm
- %%PERL5_MAN3%%/Eval::Closure.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Eval-Closure-0.14.tar.gz | 20128 | ea0944f2f5ec98d895bef6d503e6e4a376fea6383a6bc64c7670d46ff2218cad |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.