diff --git a/textproc/Makefile b/textproc/Makefile index 788277d1e9d4..e8c0d14536f6 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -772,6 +772,7 @@ SUBDIR += p5-String-Tokenizer SUBDIR += p5-String-Trim SUBDIR += p5-String-Truncate + SUBDIR += p5-String-TtyLength SUBDIR += p5-String-Urandom SUBDIR += p5-String-Util SUBDIR += p5-Syntax-Highlight-Engine-Kate diff --git a/textproc/p5-String-TtyLength/Makefile b/textproc/p5-String-TtyLength/Makefile new file mode 100644 index 000000000000..c0b29847b977 --- /dev/null +++ b/textproc/p5-String-TtyLength/Makefile @@ -0,0 +1,24 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= String-TtyLength +PORTVERSION= 0.01 +CATEGORIES= textproc perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Calculate length of string excluding ANSI tty codes + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= p5-Test2-Suite>=0:devel/p5-Test2-Suite + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include diff --git a/textproc/p5-String-TtyLength/distinfo b/textproc/p5-String-TtyLength/distinfo new file mode 100644 index 000000000000..c3a6d24e6544 --- /dev/null +++ b/textproc/p5-String-TtyLength/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1599574499 +SHA256 (String-TtyLength-0.01.tar.gz) = d1b43ca4ff7477eb42645ae3c17a9873516df631b5e8c468c4adf25eba4cfbe4 +SIZE (String-TtyLength-0.01.tar.gz) = 9639 diff --git a/textproc/p5-String-TtyLength/pkg-descr b/textproc/p5-String-TtyLength/pkg-descr new file mode 100644 index 000000000000..dfb5772a6d89 --- /dev/null +++ b/textproc/p5-String-TtyLength/pkg-descr @@ -0,0 +1,6 @@ +String::TtyLength provides a single function, tty_length, which returns the +length of a string excluding any ANSI tty / terminal escape codes. I.e. the +number of characters that will appear on screen. This is useful if you're +working out the width of columns, or aligning text. + +WWW: https://metacpan.org/release/String-TtyLength diff --git a/textproc/p5-String-TtyLength/pkg-plist b/textproc/p5-String-TtyLength/pkg-plist new file mode 100644 index 000000000000..4216c3bb169c --- /dev/null +++ b/textproc/p5-String-TtyLength/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/String/TtyLength.pm +%%PERL5_MAN3%%/String::TtyLength.3.gz