git: ef9d54613baa - main - devel/p5-File-LoadLines: Add p5-File-LoadLines 1.020.2

Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Jul 18 17:56:05 UTC 2021


The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ef9d54613baa8b2019522337763284cc6b35957e

commit ef9d54613baa8b2019522337763284cc6b35957e
Author:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-07-18 17:46:41 +0000
Commit:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-07-18 17:46:41 +0000

    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
---
 devel/Makefile                    |  1 +
 devel/p5-File-LoadLines/Makefile  | 23 +++++++++++++++++++++++
 devel/p5-File-LoadLines/distinfo  |  3 +++
 devel/p5-File-LoadLines/pkg-descr | 11 +++++++++++
 devel/p5-File-LoadLines/pkg-plist |  2 ++
 5 files changed, 40 insertions(+)

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 at FreeBSD.org>
+
+PORTNAME=	File-LoadLines
+PORTVERSION=	1.020.2
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet at 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


More information about the dev-commits-ports-all mailing list