summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2009-01-20 00:33:42 +0000
committerhe <he@pkgsrc.org>2009-01-20 00:33:42 +0000
commit8e5075c7d516fb168b71a0eb2b6f54ea1e202a1e (patch)
tree912a6921fb0c08a0e8bb5244b2b6a0839c4074a1 /devel
parent0f3b885d8e98a0c26ee0aa440e7580c060fc0c8f (diff)
downloadpkgsrc-8e5075c7d516fb168b71a0eb2b6f54ea1e202a1e.tar.gz
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 (limited to 'devel')
-rw-r--r--devel/p5-Term-ANSIColor/DESCR15
-rw-r--r--devel/p5-Term-ANSIColor/Makefile18
-rw-r--r--devel/p5-Term-ANSIColor/distinfo5
3 files changed, 38 insertions, 0 deletions
diff --git a/devel/p5-Term-ANSIColor/DESCR b/devel/p5-Term-ANSIColor/DESCR
new file mode 100644
index 00000000000..20269c0da18
--- /dev/null
+++ b/devel/p5-Term-ANSIColor/DESCR
@@ -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 --git a/devel/p5-Term-ANSIColor/Makefile b/devel/p5-Term-ANSIColor/Makefile
new file mode 100644
index 00000000000..492b0ae70f9
--- /dev/null
+++ b/devel/p5-Term-ANSIColor/Makefile
@@ -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
+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 --git a/devel/p5-Term-ANSIColor/distinfo b/devel/p5-Term-ANSIColor/distinfo
new file mode 100644
index 00000000000..512de903347
--- /dev/null
+++ b/devel/p5-Term-ANSIColor/distinfo
@@ -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