Adding port math/p5-Set-Partition, Enumerate all arrangements of a set in

fixed subsets.

Approved by:	tobez (implicit)
This commit is contained in:
Aaron Dalton 2006-06-06 00:40:10 +00:00
parent 86a03ac793
commit 2ca026de42
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164542
5 changed files with 55 additions and 0 deletions

View File

@ -229,6 +229,7 @@
SUBDIR += p5-Number-WithError-LaTeX
SUBDIR += p5-Roman
SUBDIR += p5-Set-IntSpan
SUBDIR += p5-Set-Partition
SUBDIR += p5-Set-Window
SUBDIR += p5-Statistics-ChiSquare
SUBDIR += p5-Statistics-Contingency

View File

@ -0,0 +1,34 @@
# New ports collection makefile for: p5-Set-Partition
# Date created: 05 Jun 2006
# Whom: Aaron Dalton <aaron@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Set-Partition
PORTVERSION= 0.02
CATEGORIES= math perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Set
PKGNAMEPREFIX= p5-
MAINTAINER= aaron@FreeBSD.org
COMMENT= Enumerate all arrangements of a set in fixed subsets
MAN3= Set::Partition.3
PERL_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
#IGNORE= requires at least Perl 5.6. Please install lang/perl5.8 and try again
#post-patch:
# @${PERL} -pi -e 's/^our (\$$VERSION)/use vars qw($$1); $$1/g;' \
# -e '$$_ = "" if /use warnings/;' \
# ${WRKSRC}/lib/GraphViz/Traverse.pm \
# ${WRKSRC}/t/*.t \
# ${WRKSRC}/Makefile.PL
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (Set-Partition-0.02.tar.gz) = 592308e0393b5d9698a87041a07f5019
SHA256 (Set-Partition-0.02.tar.gz) = f5309861e017697bafbf4ba33093265e32db699d31d480c24b729caffc4f0456
SIZE (Set-Partition-0.02.tar.gz) = 6935

View File

@ -0,0 +1,12 @@
Set::Partition takes a list or hash of elements and a list numbers that
represent the sizes of the partitions into which the list of elements
should be arranged.
The resulting object can then be used as an iterator which returns a
reference to an array of lists, that represents the original list arranged
according to the given partitioning. All possible arrangements are
returned, and the object returns undef when the entire combination space
has been exhausted.
WWW: http://search.cpan.org/dist/Set-Partition
Author: David Landgren (http://www.landgren.net/perl/)

View File

@ -0,0 +1,5 @@
%%SITE_PERL%%/Set/Partition.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Set/Partition/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Set/Partition
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Set
@dirrmtry %%SITE_PERL%%/Set