Add p5-String-TtyLength 0.01

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
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-09-08 17:48:34 +00:00
parent 0a81dab9c4
commit df15b2128c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=548005
5 changed files with 36 additions and 0 deletions

View file

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

View file

@ -0,0 +1,24 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $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 <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1599574499
SHA256 (String-TtyLength-0.01.tar.gz) = d1b43ca4ff7477eb42645ae3c17a9873516df631b5e8c468c4adf25eba4cfbe4
SIZE (String-TtyLength-0.01.tar.gz) = 9639

View file

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

View file

@ -0,0 +1,2 @@
%%SITE_PERL%%/String/TtyLength.pm
%%PERL5_MAN3%%/String::TtyLength.3.gz