aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-Tie-Hash-Regex
diff options
context:
space:
mode:
authoraaron <aaron@FreeBSD.org>2007-01-02 00:09:31 +0800
committeraaron <aaron@FreeBSD.org>2007-01-02 00:09:31 +0800
commitd84a8599bd3387b584eecd5b854f47afc2d42d17 (patch)
treeb3eaf0082adba2037ab029088a0f4e34f45f3c1a /devel/p5-Tie-Hash-Regex
parentf23c8171f685141475e236d691f760a6b17ae62f (diff)
downloadfreebsd-ports-graphics-d84a8599bd3387b584eecd5b854f47afc2d42d17.tar.gz
freebsd-ports-graphics-d84a8599bd3387b584eecd5b854f47afc2d42d17.tar.zst
freebsd-ports-graphics-d84a8599bd3387b584eecd5b854f47afc2d42d17.zip
Adding port devel/p5-Tie-Hash-Regex, allows regex matching on hash keys.
Diffstat (limited to 'devel/p5-Tie-Hash-Regex')
-rw-r--r--devel/p5-Tie-Hash-Regex/Makefile32
-rw-r--r--devel/p5-Tie-Hash-Regex/distinfo3
-rw-r--r--devel/p5-Tie-Hash-Regex/pkg-descr15
-rw-r--r--devel/p5-Tie-Hash-Regex/pkg-plist7
4 files changed, 57 insertions, 0 deletions
diff --git a/devel/p5-Tie-Hash-Regex/Makefile b/devel/p5-Tie-Hash-Regex/Makefile
new file mode 100644
index 00000000000..af864330bc5
--- /dev/null
+++ b/devel/p5-Tie-Hash-Regex/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: p5-Tie-Hash-Regex
+# Date created: 01 Jan 2007
+# Whom: Aaron Dalton <aaron@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Tie-Hash-Regex
+PORTVERSION= 1.00
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Tie
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= aaron@FreeBSD.org
+COMMENT= Match hash keys using Regular Expressions
+
+BUILD_DEPENDS= p5-Attribute-Handlers>=0.76:${PORTSDIR}/devel/p5-Attribute-Handlers
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+MAN3= Tie::Hash::Regex.3
+
+PERL_CONFIGURE= yes
+
+.include <bsd.port.pre.mk>
+
+#due to p5-Attribute-Handlers dependency
+.if ${PERL_LEVEL} < 500600
+IGNORE= requires at least Perl 5.6. Please install lang/perl5.8 and try again
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Tie-Hash-Regex/distinfo b/devel/p5-Tie-Hash-Regex/distinfo
new file mode 100644
index 00000000000..52c7748c384
--- /dev/null
+++ b/devel/p5-Tie-Hash-Regex/distinfo
@@ -0,0 +1,3 @@
+MD5 (Tie-Hash-Regex-1.00.tar.gz) = 5d1afac135cb73151c4d03dc8a16461c
+SHA256 (Tie-Hash-Regex-1.00.tar.gz) = b0774626a0e747a5ae06294dea6c45c9788b15e567aa0b3d768034cb056b7df5
+SIZE (Tie-Hash-Regex-1.00.tar.gz) = 4234
diff --git a/devel/p5-Tie-Hash-Regex/pkg-descr b/devel/p5-Tie-Hash-Regex/pkg-descr
new file mode 100644
index 00000000000..fe84bce599c
--- /dev/null
+++ b/devel/p5-Tie-Hash-Regex/pkg-descr
@@ -0,0 +1,15 @@
+Someone asked on Perlmonks if a hash could do fuzzy matches on keys - this
+is the result.
+
+If there's no exact match on the key that you pass to the hash, then the
+key is treated as a regex and the first matching key is returned. You can
+force it to leap straight into the regex checking by passing a qr'ed regex
+into the hash like this:
+
+ my $val = $h{qr/key/};
+
+exists and delete also do regex matching. In the case of delete all vlaues
+matching your regex key will be deleted from the hash.
+
+WWW: http://search.cpan.org/dist/Tie-Hash-Regex
+Author: Dave Cross <dave@dave.org.uk>
diff --git a/devel/p5-Tie-Hash-Regex/pkg-plist b/devel/p5-Tie-Hash-Regex/pkg-plist
new file mode 100644
index 00000000000..903113e9304
--- /dev/null
+++ b/devel/p5-Tie-Hash-Regex/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/Tie/Hash/Regex.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie/Hash/Regex/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie/Hash/Regex
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie/Hash
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Tie
+@dirrmtry %%SITE_PERL%%/Tie/Hash
+@dirrmtry %%SITE_PERL%%/Tie