devel/p5-Keyword-Declare 0.001018 FreeBSD
Declare new Perl keywords...via a keyword...named keyword
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 50.4 KiB, 160.1 KiB installed
Description
Keyword::Declare implements a new Perl keyword: keyword, which you can use to specify other new keywords.
Normally, to define new keywords in Perl, you either have to write them in XS (shiver!) or use a module like Keyword::Simple or Keyword::API. Using any of these approaches requires you to grab all the source code after the keyword, manually parse out the components of the keyword's syntax, construct the replacement source code, and then substitute it for the original source code you just parsed.
Using Keyword::Declare, you define a new keyword by specifying its name and a parameter list corresponding to the syntactic components that must follow the keyword. You then use those parameters to construct and return the replacement source code. The module takes care of setting up the keyword, and of the associated syntax parsing, and of inserting the replacement source code in the correct place.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Keyword-Declare | 0.001018 |
| DragonFly | devel/p5-Keyword-Declare | 0.001018 |
| HardenedBSD | devel/p5-Keyword-Declare | 0.001018 |
| GhostBSD | devel/p5-Keyword-Declare | 0.001018 |
Install
Binary package:
pkg install p5-Keyword-Declare
From the ports tree:
cd /usr/ports/devel/p5-Keyword-Declare/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Keyword-Declare>0:devel/p5-Keyword-Declare
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.001018 | 0.001018 | 0.001018 | 0.001018 | 0.001018 |
| FreeBSD:14:quarterly | 0.001018 | 0.001018 | n/a | 0.001018 | 0.001018 |
| FreeBSD:15:latest | 0.001018 | 0.001018 | n/a | 0.001018 | 0.001018 |
| FreeBSD:15:quarterly | 0.001018 | 0.001018 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.001018 | 0.001018 | 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 3
p5-B-Hooks-EndOfScope>=0: devel/p5-B-Hooks-EndOfScopep5-Keyword-Simple>=0: devel/p5-Keyword-Simplep5-PPR>=0.000015: devel/p5-PPR
Runtime 3
p5-B-Hooks-EndOfScope>=0: devel/p5-B-Hooks-EndOfScopep5-Keyword-Simple>=0: devel/p5-Keyword-Simplep5-PPR>=0.000015: devel/p5-PPR
The full lists below include those, and their dependencies in turn.
Build dependencies 13
Run dependencies 13
Required by 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Keyword/Declare.pm
- %%PERL5_MAN3%%/Keyword::Declare.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Keyword-Declare-0.001018.tar.gz | 48069 | f427a661ffba120330455e2b4457d98909356723cbd76aca2833faa387981754 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.