pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Term-ANSIColor Import p5-Term-ANSIColor versi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c644e2c111f7
branches:  trunk
changeset: 553385:c644e2c111f7
user:      he <he%pkgsrc.org@localhost>
date:      Tue Jan 20 00:33:42 2009 +0000

description:
Import p5-Term-ANSIColor version 1.12.

This module has two interfaces, one through color() and colored()
and the other through constants. It also offers the utility function
uncolor(), which has to be explicitly imported to be used (see
"SYNOPSIS").

color() takes any number of strings as arguments and considers them
to be space-separated lists of attributes. It then forms and returns
the escape sequence to set those attributes. It doesn't print it
out, just returns it, so you'll have to print it yourself if you
want to (this is so that you can save it as a string, pass it to
something else, send it to a file handle, or do anything else with
it that you might care to).

uncolor() performs the opposite translation, turning escape sequences
into a list of strings.

diffstat:

 devel/p5-Term-ANSIColor/DESCR    |  15 +++++++++++++++
 devel/p5-Term-ANSIColor/Makefile |  18 ++++++++++++++++++
 devel/p5-Term-ANSIColor/distinfo |   5 +++++
 3 files changed, 38 insertions(+), 0 deletions(-)

diffs (50 lines):

diff -r ca59026c2a0a -r c644e2c111f7 devel/p5-Term-ANSIColor/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Term-ANSIColor/DESCR     Tue Jan 20 00:33:42 2009 +0000
@@ -0,0 +1,15 @@
+This module has two interfaces, one through color() and colored()
+and the other through constants. It also offers the utility function
+uncolor(), which has to be explicitly imported to be used (see
+"SYNOPSIS").
+
+color() takes any number of strings as arguments and considers them
+to be space-separated lists of attributes. It then forms and returns
+the escape sequence to set those attributes. It doesn't print it
+out, just returns it, so you'll have to print it yourself if you
+want to (this is so that you can save it as a string, pass it to
+something else, send it to a file handle, or do anything else with
+it that you might care to).
+
+uncolor() performs the opposite translation, turning escape sequences
+into a list of strings.
diff -r ca59026c2a0a -r c644e2c111f7 devel/p5-Term-ANSIColor/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Term-ANSIColor/Makefile  Tue Jan 20 00:33:42 2009 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/01/20 00:33:42 he Exp $
+
+DISTNAME=      ANSIColor-1.12
+PKGNAME=       p5-Term-${DISTNAME}
+CATEGORIES=    devel perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Term/}
+ 
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://search.cpan.org/dist/Term-ANSIColor/
+COMMENT=       Perl termcap interface
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+PERL5_PACKLIST=        auto/Term/ANSIColor/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
+
diff -r ca59026c2a0a -r c644e2c111f7 devel/p5-Term-ANSIColor/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Term-ANSIColor/distinfo  Tue Jan 20 00:33:42 2009 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/01/20 00:33:42 he Exp $
+
+SHA1 (ANSIColor-1.12.tar.gz) = 59530e4caa0498c3d458fd2f35023a3569c9b09d
+RMD160 (ANSIColor-1.12.tar.gz) = bb06162f26c37145bf3d3888159ea0de4d047b2e
+Size (ANSIColor-1.12.tar.gz) = 14111 bytes



Home | Main Index | Thread Index | Old Index