BSD Ports

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

SystemPortVersion
FreeBSDdevel/p5-Keyword-Declare0.001018
DragonFlydevel/p5-Keyword-Declare0.001018
HardenedBSDdevel/p5-Keyword-Declare0.001018
GhostBSDdevel/p5-Keyword-Declare0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.0010180.0010180.0010180.0010180.001018
FreeBSD:14:quarterly0.0010180.001018n/a0.0010180.001018
FreeBSD:15:latest0.0010180.001018n/a0.0010180.001018
FreeBSD:15:quarterly0.0010180.001018n/an/an/a
FreeBSD:16:latest0.0010180.001018n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

Runtime 3

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
FileSizeSHA256
Keyword-Declare-0.001018.tar.gz48069f427a661ffba120330455e2b4457d98909356723cbd76aca2833faa387981754
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.