summaryrefslogtreecommitdiff
path: root/devel/p5-Data-Record
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-10-11 11:04:10 +0000
committerwiz <wiz@pkgsrc.org>2013-10-11 11:04:10 +0000
commitfeb3bd85c6d61719d1089fb654063574868286cc (patch)
treebc992770555c3aafceec235518bb91cff5386e64 /devel/p5-Data-Record
parentf80078da38de1b54880c3371edd4bf97b03dff22 (diff)
downloadpkgsrc-feb3bd85c6d61719d1089fb654063574868286cc.tar.gz
Import p5-Data-Record-0.02 as devel/p5-Data-Record.
Sometimes we need data split into records and a simple split on the input record separator ($/) or some other value fails because the values we're splitting on may allowed in other parts of the data. Perhaps they're quoted. Perhaps they're embedded in other data which should not be split up. This module allows you to specify what you wish to split the data on, but also speficy an "unless" regular expression. If the text in question matches the "unless" regex, it will not be split there. This allows us to do things like split on newlines unless newlines are embedded in quotes.
Diffstat (limited to 'devel/p5-Data-Record')
-rw-r--r--devel/p5-Data-Record/DESCR11
-rw-r--r--devel/p5-Data-Record/Makefile22
-rw-r--r--devel/p5-Data-Record/distinfo5
3 files changed, 38 insertions, 0 deletions
diff --git a/devel/p5-Data-Record/DESCR b/devel/p5-Data-Record/DESCR
new file mode 100644
index 00000000000..b08fe40e9f9
--- /dev/null
+++ b/devel/p5-Data-Record/DESCR
@@ -0,0 +1,11 @@
+Sometimes we need data split into records and a simple split on
+the input record separator ($/) or some other value fails because
+the values we're splitting on may allowed in other parts of the
+data. Perhaps they're quoted. Perhaps they're embedded in other
+data which should not be split up.
+
+This module allows you to specify what you wish to split the data
+on, but also speficy an "unless" regular expression. If the text
+in question matches the "unless" regex, it will not be split there.
+This allows us to do things like split on newlines unless newlines
+are embedded in quotes.
diff --git a/devel/p5-Data-Record/Makefile b/devel/p5-Data-Record/Makefile
new file mode 100644
index 00000000000..03bb3aced21
--- /dev/null
+++ b/devel/p5-Data-Record/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2013/10/11 11:04:10 wiz Exp $
+
+DISTNAME= Data-Record-0.02
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Data/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Data-Record/
+COMMENT= Perl5 module for "split" on steroids
+LICENSE= ${PERL5_LICENSE}
+
+# actually, TEST_DEPENDS
+BUILD_DEPENDS+= p5-Test-Exception-[0-9]*:../../devel/p5-Test-Exception
+BUILD_DEPENDS+= p5-Test-Pod-[0-9]*:../../devel/p5-Test-Pod
+BUILD_DEPENDS+= p5-Test-Pod-Coverage-[0-9]*:../../devel/p5-Test-Pod-Coverage
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/Data/Record/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Data-Record/distinfo b/devel/p5-Data-Record/distinfo
new file mode 100644
index 00000000000..3ce3b875f83
--- /dev/null
+++ b/devel/p5-Data-Record/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/10/11 11:04:10 wiz Exp $
+
+SHA1 (Data-Record-0.02.tar.gz) = 0d9cbd2b3119aa65c9f4ca6cb6333eb921e1e1be
+RMD160 (Data-Record-0.02.tar.gz) = 21dd12e9e087ba7886bea60fbedca9d7c56e2c02
+Size (Data-Record-0.02.tar.gz) = 7029 bytes