From 7b5c88d1cbb1222c26baf3c90b452137f352a5d8 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 11 Oct 2013 11:04:10 +0000 Subject: [PATCH] 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. --- devel/p5-Data-Record/DESCR | 11 +++++++++++ devel/p5-Data-Record/Makefile | 22 ++++++++++++++++++++++ devel/p5-Data-Record/distinfo | 5 +++++ 3 files changed, 38 insertions(+) create mode 100644 devel/p5-Data-Record/DESCR create mode 100644 devel/p5-Data-Record/Makefile create mode 100644 devel/p5-Data-Record/distinfo diff --git a/devel/p5-Data-Record/DESCR b/devel/p5-Data-Record/DESCR new file mode 100644 index 000000000000..b08fe40e9f91 --- /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 000000000000..03bb3aced213 --- /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 000000000000..3ce3b875f837 --- /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