ports/81572: New Port: math/p5-Math-Combinatorics
Aaron Dalton
aaron at daltons.ca
Sat May 28 01:10:02 UTC 2005
>Number: 81572
>Category: ports
>Synopsis: New Port: math/p5-Math-Combinatorics
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat May 28 01:10:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Aaron Dalton
>Release: FreeBSD 5.2.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD chariss.finch.st 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #1: Sat Mar 5 16:29:20 MST 2005 ross at chariss.finch.st:/usr/src/sys/i386/compile/CHARISS i386
>Description:
Combinatorics is the branch of mathematics studying the
enumeration, combination, and permutation of sets of
elements and the mathematical relations that characterize
their properties. As a jumping off point, refer to:
http://mathworld.wolfram.com/Combinatorics.html
This module provides a pure-perl implementation of nCk,
nPk, and n! (combination, permutation, and factorial,
respectively). Functional and object-oriented usages allow
problems such as the following to be solved:
nCk "Fun questions to ask the pizza parlor wait staff: how
many possible combinations of 2 toppings can I get on my
pizza?".
nPk "Master Mind Game: ways to arrange pieces of different
colors in a certain number of positions, without repetition
of a color".
Object-oriented usage additionally allows solving these
problems by calling "new()" with a frequency vector:
nPRk "morse signals: diferent signals of 3 positions using
the 2 two symbol - and .".
nCRk "ways to extract 3 balls at once of a bag with black
and white balls".
nPRk "different words obtained permuting the letters of the
word PARROT".
>How-To-Repeat:
>Fix:
--- submission.txt begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# p5-Math-Combinatorics
# p5-Math-Combinatorics/Makefile
# p5-Math-Combinatorics/distinfo
# p5-Math-Combinatorics/pkg-descr
# p5-Math-Combinatorics/pkg-plist
#
echo c - p5-Math-Combinatorics
mkdir -p p5-Math-Combinatorics > /dev/null 2>&1
echo x - p5-Math-Combinatorics/Makefile
sed 's/^X//' >p5-Math-Combinatorics/Makefile << 'END-of-p5-Math-Combinatorics/Makefile'
X# New ports collection makefile for: Math-Combinatorics
X# Date created: 27 May 2005
X# Whom: Aaron Dalton <aaron at daltons.ca>
X#
X# $FreeBSD$
X#
X
XPORTNAME= Math-Combinatorics
XPORTVERSION= 0.04
XCATEGORIES= math perl5
XMASTER_SITES= ${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR= Math
XPKGNAMEPREFIX= p5-
X
XMAINTAINER= aaron at daltons.ca
XCOMMENT= Perform combinations and permutations on lists
X
XMAN3= Math::Combinatorics.3
X
XPERL_CONFIGURE= yes
X
X.include <bsd.port.mk>
END-of-p5-Math-Combinatorics/Makefile
echo x - p5-Math-Combinatorics/distinfo
sed 's/^X//' >p5-Math-Combinatorics/distinfo << 'END-of-p5-Math-Combinatorics/distinfo'
XMD5 (Math-Combinatorics-0.04.tar.gz) = bb2db2b6cfff4188a6b14f218c2f8f21
XSIZE (Math-Combinatorics-0.04.tar.gz) = 6618
END-of-p5-Math-Combinatorics/distinfo
echo x - p5-Math-Combinatorics/pkg-descr
sed 's/^X//' >p5-Math-Combinatorics/pkg-descr << 'END-of-p5-Math-Combinatorics/pkg-descr'
XCombinatorics is the branch of mathematics studying the enumeration,
Xcombination, and permutation of sets of elements and the mathematical
Xrelations that characterize their properties. As a jumping off point,
Xrefer to:
X
Xhttp://mathworld.wolfram.com/Combinatorics.html
X
XThis module provides a pure-perl implementation of nCk, nPk, and n!
X(combination, permutation, and factorial, respectively).
X
XWWW: http://search.cpan.org/dist/Math-Combinatorics/
XAuthor: Allen Day <allenday at ucla.edu>
X
X- Aaron Dalton
Xaaron at daltons.ca
END-of-p5-Math-Combinatorics/pkg-descr
echo x - p5-Math-Combinatorics/pkg-plist
sed 's/^X//' >p5-Math-Combinatorics/pkg-plist << 'END-of-p5-Math-Combinatorics/pkg-plist'
X%%SITE_PERL%%/Math/Combinatorics.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Combinatorics/.packlist
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Math/Combinatorics
X at unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Math 2>/dev/null || true
X at unexec rmdir %D/%%SITE_PERL%%/Math 2>/dev/null || true
X
END-of-p5-Math-Combinatorics/pkg-plist
exit
--- submission.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list