diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-07-18 17:46:41 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2021-07-18 17:46:41 +0000 |
commit | ef9d54613baa8b2019522337763284cc6b35957e (patch) | |
tree | a8efd55769d3741ec12edc4514f31025c4358615 | |
parent | 4f636753cc3ed36059d5b658f37403df607ef3d9 (diff) | |
download | ports-ef9d54613baa8b2019522337763284cc6b35957e.tar.gz ports-ef9d54613baa8b2019522337763284cc6b35957e.zip |
devel/p5-File-LoadLines: Add p5-File-LoadLines 1.020.2
File::LoadLines provides an easy way to load the contents of a text file into an
array of lines. It is intended for relatively small files like config files that
are often produced by weird tools (and users).
It automatically handles ASCII, Latin-1 and UTF-8 text. When the file has a BOM,
it handles UTF-8, UTF-16 LE and BE, and UTF-32 LE and BE.
Recognized line terminators are NL (Unix, Linux), CRLF (DOS, Windows) and CR
(Mac)
WWW: https://metacpan.org/dist/File-LoadLines
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-File-LoadLines/Makefile | 23 | ||||
-rw-r--r-- | devel/p5-File-LoadLines/distinfo | 3 | ||||
-rw-r--r-- | devel/p5-File-LoadLines/pkg-descr | 11 | ||||
-rw-r--r-- | devel/p5-File-LoadLines/pkg-plist | 2 |
5 files changed, 40 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 00c324b80999..d9d8b180b906 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2398,6 +2398,7 @@ SUBDIR += p5-File-HomeDir-Tiny SUBDIR += p5-File-Iterator SUBDIR += p5-File-LibMagic + SUBDIR += p5-File-LoadLines SUBDIR += p5-File-MMagic SUBDIR += p5-File-MMagic-XS SUBDIR += p5-File-Map diff --git a/devel/p5-File-LoadLines/Makefile b/devel/p5-File-LoadLines/Makefile new file mode 100644 index 000000000000..70615bd75f46 --- /dev/null +++ b/devel/p5-File-LoadLines/Makefile @@ -0,0 +1,23 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> + +PORTNAME= File-LoadLines +PORTVERSION= 1.020.2 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Load lines from file + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Test-Exception>=0.43:devel/p5-Test-Exception + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/p5-File-LoadLines/distinfo b/devel/p5-File-LoadLines/distinfo new file mode 100644 index 000000000000..e64be4120eac --- /dev/null +++ b/devel/p5-File-LoadLines/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1626542050 +SHA256 (File-LoadLines-1.020.2.tar.gz) = 1a28a5fdf4e4b27eb4041b22808356e8d5947900188ef27c8f3614de3ac197a7 +SIZE (File-LoadLines-1.020.2.tar.gz) = 6747 diff --git a/devel/p5-File-LoadLines/pkg-descr b/devel/p5-File-LoadLines/pkg-descr new file mode 100644 index 000000000000..ad7345875391 --- /dev/null +++ b/devel/p5-File-LoadLines/pkg-descr @@ -0,0 +1,11 @@ +File::LoadLines provides an easy way to load the contents of a text file into an +array of lines. It is intended for relatively small files like config files that +are often produced by weird tools (and users). + +It automatically handles ASCII, Latin-1 and UTF-8 text. When the file has a BOM, +it handles UTF-8, UTF-16 LE and BE, and UTF-32 LE and BE. + +Recognized line terminators are NL (Unix, Linux), CRLF (DOS, Windows) and CR +(Mac) + +WWW: https://metacpan.org/dist/File-LoadLines diff --git a/devel/p5-File-LoadLines/pkg-plist b/devel/p5-File-LoadLines/pkg-plist new file mode 100644 index 000000000000..fc3935449c1d --- /dev/null +++ b/devel/p5-File-LoadLines/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/File/LoadLines.pm +%%PERL5_MAN3%%/File::LoadLines.3.gz |