summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2009-03-22 07:31:43 +0000
committerseb <seb@pkgsrc.org>2009-03-22 07:31:43 +0000
commitfdf055398a4d80e2a9f65042b3451abb4a710bd8 (patch)
tree2376dac61c705bb2193e8f98aa826abe216682bc /devel
parent840cc6e0534113c1ee9a765218e2e48439d0cf5f (diff)
downloadpkgsrc-fdf055398a4d80e2a9f65042b3451abb4a710bd8.tar.gz
Initial import of p5-Hash-Util-FieldHash-Compat version 0.03 in the
NetBSD Packages Collection. The Perl 5 module 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. See Hash::Util::FieldHash for all the details of the API.
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-Hash-Util-FieldHash-Compat/DESCR9
-rw-r--r--devel/p5-Hash-Util-FieldHash-Compat/Makefile28
-rw-r--r--devel/p5-Hash-Util-FieldHash-Compat/distinfo5
3 files changed, 42 insertions, 0 deletions
diff --git a/devel/p5-Hash-Util-FieldHash-Compat/DESCR b/devel/p5-Hash-Util-FieldHash-Compat/DESCR
new file mode 100644
index 00000000000..5988cdd9c13
--- /dev/null
+++ b/devel/p5-Hash-Util-FieldHash-Compat/DESCR
@@ -0,0 +1,9 @@
+The Perl 5 module 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.
+See Hash::Util::FieldHash for all the details of the API.
diff --git a/devel/p5-Hash-Util-FieldHash-Compat/Makefile b/devel/p5-Hash-Util-FieldHash-Compat/Makefile
new file mode 100644
index 00000000000..4232fadf971
--- /dev/null
+++ b/devel/p5-Hash-Util-FieldHash-Compat/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/03/22 07:31:43 seb Exp $
+#
+
+DISTNAME= Hash-Util-FieldHash-Compat-0.03
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Hash/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Hash-Util-FieldHash-Compat/
+COMMENT= Perl 5 module to user Hash::Util::FieldHash or ties
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/Hash/Util/FieldHash/Compat/.packlist
+
+# This package was added after Perl 5.10 became the minimal required
+# version for pkgsrc. The module Hash::Util::FieldHash is a core
+# module since version 5.9.4. Thus this module/package does not need
+# any of the two dependencies below.
+#DEPENDS+= p5-Tie-RefHash>=1.38:../../devel/p5-Tie-RefHash
+#DEPENDS+= p5-Tie-RefHash-Weak>=0.08../../devel/p5-Tie-RefHash-Weak
+
+BUILD_DEPENDS+= p5-Test-use-ok-[0-9]*:../../devel/p5-Test-use-ok
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Hash-Util-FieldHash-Compat/distinfo b/devel/p5-Hash-Util-FieldHash-Compat/distinfo
new file mode 100644
index 00000000000..6af52044b38
--- /dev/null
+++ b/devel/p5-Hash-Util-FieldHash-Compat/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/03/22 07:31:43 seb Exp $
+
+SHA1 (Hash-Util-FieldHash-Compat-0.03.tar.gz) = 8bb573cb778734b98a2bc885239f1d4001a81311
+RMD160 (Hash-Util-FieldHash-Compat-0.03.tar.gz) = 1446afa0e2bcca69a714db3c63b8e8e65103b800
+Size (Hash-Util-FieldHash-Compat-0.03.tar.gz) = 4702 bytes