1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Add p5-Hash-Util-FieldHash-Compat, use Hash::Util::FieldHash or ties,

depending on availability.

Under older perls this module provides a drop in compatible api to
Hash::Util::FieldHash using perltie. When Hash::Util::FieldHash is available
it will use that instead.

This way code requiring field hashes can benefit from fast, robust field
hashes on Perl 5.10 and newer, but still run on older perls that don't ship
with that module.

WWW: http://search.cpan.org/dist/Hash-Util-FieldHash-Compat/
This commit is contained in:
Chin-San Huang 2008-08-30 14:50:02 +00:00
parent 0eeeca4c46
commit 9d40d01bfd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=219463
5 changed files with 51 additions and 0 deletions

View File

@ -1339,6 +1339,7 @@
SUBDIR += p5-Hash-AsObject
SUBDIR += p5-Hash-Case
SUBDIR += p5-Hash-MultiKey
SUBDIR += p5-Hash-Util-FieldHash-Compat
SUBDIR += p5-Hash-WithDefaults
SUBDIR += p5-Heap
SUBDIR += p5-Heap-Simple

View File

@ -0,0 +1,27 @@
# New ports collection makefile for: devel/p5-Hash-Util-FieldHash-Compat
# Date created: 2008/08/30
# Whom: chinsan
#
# $FreeBSD$
#
PORTNAME= Hash-Util-FieldHash-Compat
PORTVERSION= 0.03
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= chinsan@FreeBSD.org
COMMENT= Use Hash::Util::FieldHash or ties, depending on availability
RUN_DEPENDS= p5-Test-use-ok>=0:${PORTSDIR}/devel/p5-Test-use-ok \
p5-Tie-RefHash>=0:${PORTSDIR}/devel/p5-Tie-RefHash \
p5-Tie-RefHash-Weak>=0:${PORTSDIR}/devel/p5-Tie-RefHash-Weak
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= 5.8.0+
MAN3= Hash::Util::FieldHash::Compat::Heavy.3 \
Hash::Util::FieldHash::Compat.3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (Hash-Util-FieldHash-Compat-0.03.tar.gz) = 7f5c4a37f1e3d9eb9530597fca299825
SHA256 (Hash-Util-FieldHash-Compat-0.03.tar.gz) = 8774e81a2033304a0ea2ebe4498e9535de9ad7415d393da5134826a4508aaa5e
SIZE (Hash-Util-FieldHash-Compat-0.03.tar.gz) = 4702

View File

@ -0,0 +1,9 @@
Under older perls this module provides a drop in compatible api to
Hash::Util::FieldHash using perltie. When Hash::Util::FieldHash is available
it will use that instead.
This way code requiring field hashes can benefit from fast, robust field
hashes on Perl 5.10 and newer, but still run on older perls that don't ship
with that module.
WWW: http://search.cpan.org/dist/Hash-Util-FieldHash-Compat/

View File

@ -0,0 +1,11 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Hash/Util/FieldHash/Compat/.packlist
%%SITE_PERL%%/Hash/Util/FieldHash/Compat.pm
%%SITE_PERL%%/Hash/Util/FieldHash/Compat/Heavy.pm
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Hash/Util/FieldHash/Compat
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Hash/Util/FieldHash
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Hash/Util
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Hash
@dirrmtry %%SITE_PERL%%/Hash/Util/FieldHash/Compat
@dirrmtry %%SITE_PERL%%/Hash/Util/FieldHash
@dirrmtry %%SITE_PERL%%/Hash/Util
@dirrmtry %%SITE_PERL%%/Hash