Add p5-Getopt-Declare, yet another (but very nice) perl module for

command-line argument parsing.
This commit is contained in:
Anton Berezin 2001-09-16 20:55:29 +00:00
parent 2786013a14
commit 42a2c84bca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47892
6 changed files with 50 additions and 0 deletions

View file

@ -348,6 +348,7 @@
SUBDIR += p5-File-Tools
SUBDIR += p5-Filter
SUBDIR += p5-FreezeThaw
SUBDIR += p5-Getopt-Declare
SUBDIR += p5-Getopt-Long
SUBDIR += p5-Glade-Perl
SUBDIR += p5-Heap

View file

@ -0,0 +1,25 @@
# New ports collection makefile for: devel/p5-Getopt-Declare
# Date created: 16 Sep 2001
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Getopt-Declare
PORTVERSION= 1.09
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Getopt
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Text/Balanced.pm:${PORTSDIR}/textproc/p5-Text-Balanced
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Getopt::Declare.3
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (Getopt-Declare-1.09.tar.gz) = 9b1dbe84adb34534e7986e0b5b7fdcf0

View file

@ -0,0 +1 @@
Declaratively Expressed Command-Line Arguments via Regular Expressions

View file

@ -0,0 +1,17 @@
Getopt::Declare is yet another command-line argument parser, one which
is specifically designed to be powerful but exceptionally easy to use.
To parse the command-line in @ARGV, one simply creates a Getopt::Declare
object, by passing Getopt::Declare::new() a specification of the various
parameters that may be encountered.
The specification is a single string, in which the syntax of each
parameter is declared, along with a description and (optionally) one or
more actions to be performed when the parameter is encountered. The
specification string may also include other usage formatting information
(such as group headings or separators) as well as standard Perl comments
(which are ignored).
WWW: http://search.cpan.org/search?dist=Getopt-Declare
-Anton

View file

@ -0,0 +1,5 @@
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Getopt/Declare/.packlist
lib/perl5/site_perl/%%PERL_VER%%/Getopt/Declare.pm
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Getopt/Declare
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Getopt 2>/dev/null || true
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Getopt 2>/dev/null || true