mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 21:30:31 -04:00
- Add LICENSE
- Use USE_PERL5=configure - Update PLIST - Bump PORTREVISION for package change - Reformat and shorten pkg-descr - Use single space after WWW:
This commit is contained in:
parent
f9d3062684
commit
ff3e7424e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360975
3 changed files with 16 additions and 25 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= Data-Rmap
|
PORTNAME= Data-Rmap
|
||||||
PORTVERSION= 0.62
|
PORTVERSION= 0.62
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= devel perl5
|
CATEGORIES= devel perl5
|
||||||
MASTER_SITES= CPAN
|
MASTER_SITES= CPAN
|
||||||
PKGNAMEPREFIX= p5-
|
PKGNAMEPREFIX= p5-
|
||||||
|
@ -10,9 +11,12 @@ PKGNAMEPREFIX= p5-
|
||||||
MAINTAINER= sunpoet@FreeBSD.org
|
MAINTAINER= sunpoet@FreeBSD.org
|
||||||
COMMENT= Recursive map, apply a block to a data structure
|
COMMENT= Recursive map, apply a block to a data structure
|
||||||
|
|
||||||
|
LICENSE= ART10 GPLv1
|
||||||
|
LICENSE_COMB= dual
|
||||||
|
|
||||||
TEST_DEPENDS= p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception
|
TEST_DEPENDS= p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception
|
||||||
|
|
||||||
|
USE_PERL5= configure
|
||||||
USES= perl5
|
USES= perl5
|
||||||
USE_PERL5= modbuild
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,26 +1,10 @@
|
||||||
Recursively evaluate a BLOCK over a list of data structures (locally
|
Recursively evaluate a BLOCK over a list of data structures (locally setting $_
|
||||||
setting $_ to each element) and return the list composed of the
|
to each element) and return the list composed of the results of such
|
||||||
results of such evaluations. $_ can be used to modify the elements.
|
evaluations. $_ can be used to modify the elements.
|
||||||
|
|
||||||
Data::Rmap currently traverses HASH, ARRAY, SCALAR and GLOB reference
|
Data::Rmap currently traverses HASH, ARRAY, SCALAR and GLOB reference types and
|
||||||
types and ignores others. Depending on which rmap_* wrapper is used,
|
ignores others. Depending on which rmap_* wrapper is used, the BLOCK is called
|
||||||
the BLOCK is called for only scalar values, arrays, hashes,
|
for only scalar values, arrays, hashes, references, all elements or a
|
||||||
references, all elements or a customizable combination.
|
customizable combination.
|
||||||
|
|
||||||
The list of data structures is traversed pre-order in a depth-first
|
WWW: http://search.cpan.org/dist/Data-Rmap/
|
||||||
fashion. That is, the BLOCK is called for the container reference
|
|
||||||
before is it called for it's elements (although see "recurse" below
|
|
||||||
for post-order). The values of a hash are traversed in the usual
|
|
||||||
"values" order which may affect some applications.
|
|
||||||
|
|
||||||
If the "cut" subroutine is called in the BLOCK then the traversal
|
|
||||||
stops for that branch, say if you "cut" an array then the code is
|
|
||||||
never called for it's elements (or their sub-elements). To
|
|
||||||
simultaneously return values and cut, simply pass the return list to
|
|
||||||
cut: cut('add','to','returned');
|
|
||||||
|
|
||||||
The first parameter to the BLOCK is an object which maintains the
|
|
||||||
state of the traversal. Methods available on this object are
|
|
||||||
described in "State Object" below.
|
|
||||||
|
|
||||||
WWW: http://search.cpan.org/dist/Data-Rmap/
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
%%SITE_PERL%%/Data/Rmap.pm
|
%%SITE_PERL%%/Data/Rmap.pm
|
||||||
|
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Rmap/.packlist
|
||||||
%%PERL5_MAN3%%/Data::Rmap.3.gz
|
%%PERL5_MAN3%%/Data::Rmap.3.gz
|
||||||
|
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Rmap
|
||||||
|
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data
|
||||||
@dirrmtry %%SITE_PERL%%/Data
|
@dirrmtry %%SITE_PERL%%/Data
|
||||||
|
|
Loading…
Add table
Reference in a new issue