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.
This commit is contained in:
wiz 2013-10-11 11:04:10 +00:00
parent 9bdb024cab
commit 7b5c88d1cb
3 changed files with 38 additions and 0 deletions

View file

@ -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.

View file

@ -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"

View file

@ -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