Add p5-Search-Binary 0.95, perl module that implements a generic binary

search algorithm.

PR:		24029
Submitted by:	Anton Berezin <tobez@tobez.org>
This commit is contained in:
Will Andrews 2001-01-04 00:10:30 +00:00
parent 3db2036684
commit b678d6f47b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36756
6 changed files with 43 additions and 0 deletions

View file

@ -269,6 +269,7 @@
SUBDIR += p5-ReadLine-Perl
SUBDIR += p5-Religion
SUBDIR += p5-Resources
SUBDIR += p5-Search-Binary
SUBDIR += p5-Server-FastPL
SUBDIR += p5-Set-NestedGroups
SUBDIR += p5-Set-Object

View file

@ -0,0 +1,26 @@
# New ports collection makefile for: devel/p5-Search-Binary
# Date created: 03 January 2001
# Whom: Anton Berezin <tobez@tobez.org>
#
# $FreeBSD$
#
PORTNAME= Search-Binary
PORTVERSION= 0.95
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Search
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@tobez.org
USE_PERL5= yes
PERL_CONFIGURE= yes
MAN3= Search::Binary.3
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
pre-patch:
@${PERL} -pi -e 's|Seach|Search|' ${WRKSRC}/Binary.pm
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (Search-Binary-0.95.tar.gz) = b75a99c0dedd05cb455686fc547cc78f

View file

@ -0,0 +1 @@
Perl module that implements a generic binary search algorithm

View file

@ -0,0 +1,9 @@
Binary_search implements a generic binary search algorithm returning the
position of the first record whose index value is greater than or equal
to $val. The search routine does not define any of the terms position,
record or index value, but leaves their interpretation and
implementation to the user supplied function &$read(). The only
restriction is that positions must be integer scalars.
-Anton
<tobez@tobez.org>

View file

@ -0,0 +1,5 @@
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Search/Binary/.packlist
lib/perl5/site_perl/%%PERL_VER%%/Search/Binary.pm
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Search/Binary
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Search 2>/dev/null || true
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Search 2>/dev/null || true