freebsd-ports/devel/p5-Algorithm-Numerical-Shuffle/Makefile
Erwin Lansing 15e1a07d56 Add p5-Algorithm-Numerical-Shuffle 1.4, shuffle a list.
Shuffle is a perl module which performs a one pass, fair shuffle on a
list. If the list is passed as a reference to an array, the shuffle
is done in situ.

The running time of the algorithm is linear in the size of the list.
For an in situ shuffle, the memory overhead is constant; otherwise,
linear extra memory is used.

The algorithm used is discussed by Knuth [3]. It was first published
by Fisher and Yates [2], and later by Durstenfeld [1].

PR:		55574
Submitted by:	andrew@scoop.co.nz
2003-08-20 06:56:11 +00:00

24 lines
540 B
Makefile

# New ports collection makefile for: p5-Algorithm-Numerical-Shuffle
# Date created: 14 August 2003
# Whom: andrew@scoop.co.nz
#
# $FreeBSD$
#
PORTNAME= Algorithm-Numerical-Shuffle
PORTVERSION= 1.4
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../by-authors/id/A/AB/ABIGAIL
PKGNAMEPREFIX= p5-
DISTNAME= Shuffle-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= andrew@scoop.co.nz
COMMENT= Shuffle a list
PERL_CONFIGURE= yes
MAN3= Algorithm::Numerical::Shuffle.3
.include <bsd.port.mk>