mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Add p5-Data-OptList 0.100, parse and validate simple name/value option
pairs.
This commit is contained in:
parent
e70e814306
commit
066ce7c5ce
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164570
@ -851,6 +851,7 @@
|
||||
SUBDIR += p5-Data-Hexdumper
|
||||
SUBDIR += p5-Data-Hierarchy
|
||||
SUBDIR += p5-Data-Lazy
|
||||
SUBDIR += p5-Data-OptList
|
||||
SUBDIR += p5-Data-Properties
|
||||
SUBDIR += p5-Data-Random
|
||||
SUBDIR += p5-Data-Serializer
|
||||
|
31
devel/p5-Data-OptList/Makefile
Normal file
31
devel/p5-Data-OptList/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# New ports collection makefile for: devel/p5-Data-OptList
|
||||
# Date created: 6/6/6
|
||||
# Whom: Lars Balker Rasmussen <lbr@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Data-OptList
|
||||
PORTVERSION= 0.100
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= Data
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= lbr@FreeBSD.org
|
||||
COMMENT= Parse and validate simple name/value option pairs
|
||||
|
||||
BUILD_DEPENDS= p5-Sub-Install>=0.92:${PORTSDIR}/devel/p5-Sub-Install \
|
||||
p5-Scalar-List-Utils>=0:${PORTSDIR}/lang/p5-Scalar-List-Utils \
|
||||
p5-Params-Util>=0.14:${PORTSDIR}/devel/p5-Params-Util
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= Data::OptList.3
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.if ${PERL_LEVEL} < 500800
|
||||
IGNORE= requires perl 5.8.0 or later. Install lang/perl5.8 and try again
|
||||
.endif
|
||||
.include <bsd.port.post.mk>
|
3
devel/p5-Data-OptList/distinfo
Normal file
3
devel/p5-Data-OptList/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (Data-OptList-0.100.tar.gz) = de684b0eab4e49a53584a91a77761412
|
||||
SHA256 (Data-OptList-0.100.tar.gz) = b532827ad0aab5d928ab70b413444b940c37da556dd54da329e3ebc19f4a28b7
|
||||
SIZE (Data-OptList-0.100.tar.gz) = 13080
|
22
devel/p5-Data-OptList/pkg-descr
Normal file
22
devel/p5-Data-OptList/pkg-descr
Normal file
@ -0,0 +1,22 @@
|
||||
Hashes are great for storing named data, but if you want more than one entry
|
||||
for a name, you have to use a list of pairs. Even then, this is really boring
|
||||
to write:
|
||||
|
||||
@values = (
|
||||
foo => undef,
|
||||
bar => undef,
|
||||
baz => undef,
|
||||
xyz => { ... },
|
||||
);
|
||||
|
||||
With Data::OptList, you can do this instead:
|
||||
|
||||
Data::OptList::mkopt([
|
||||
qw(foo bar baz),
|
||||
xyz => { ... },
|
||||
]);
|
||||
|
||||
This works by assuming that any defined scalar is a name and any reference
|
||||
following a name is its value.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Data-OptList/
|
5
devel/p5-Data-OptList/pkg-plist
Normal file
5
devel/p5-Data-OptList/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
%%SITE_PERL%%/Data/OptList.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/OptList/.packlist
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/OptList
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data
|
||||
@dirrmtry %%SITE_PERL%%/Data
|
Loading…
Reference in New Issue
Block a user