Date: Wed, 1 Dec 1999 13:51:29 +0300 (MSK) From: dsh@neva.vlink.ru To: FreeBSD-gnats-submit@freebsd.org Subject: ports/15203: New FreeBSD port: p5-Term-ANSIColor Message-ID: <19991201105129.62FE83C0A@neva.vlink.ru>
next in thread | raw e-mail | index | archive | help
>Number: 15203 >Category: ports >Synopsis: New FreeBSD port: p5-Term-ANSIColor >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 1 05:40:02 PST 1999 >Closed-Date: >Last-Modified: >Originator: Denis Shaposhnikov >Release: FreeBSD 3.3-RELEASE i386 >Organization: >Environment: >Description: While ANSI color escape codes are fairly simple, it can be hard to remember the codes for all of the attributes and the code resulting from hard-coding them into your script is definitely difficult to read. This module is designed to fix those problems, as well as provide a convenient interface to do a few things for you automatically (like resetting attributes after the text you print out so that you don't accidentally leave attributes set). Despite its name, this module can also handle non-color ANSI text attributes (bold, underline, reverse video, and blink). It uses either of two interfaces, one of which uses "constants" for each different attribute and the other of which uses two subs which take strings of attributes as arguments. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-Term-ANSIColor/ # p5-Term-ANSIColor/files # p5-Term-ANSIColor/files/md5 # p5-Term-ANSIColor/pkg # p5-Term-ANSIColor/pkg/COMMENT # p5-Term-ANSIColor/pkg/DESCR # p5-Term-ANSIColor/pkg/PLIST # p5-Term-ANSIColor/Makefile # echo c - p5-Term-ANSIColor/ mkdir -p p5-Term-ANSIColor/ > /dev/null 2>&1 echo c - p5-Term-ANSIColor/files mkdir -p p5-Term-ANSIColor/files > /dev/null 2>&1 echo x - p5-Term-ANSIColor/files/md5 sed 's/^X//' >p5-Term-ANSIColor/files/md5 << 'END-of-p5-Term-ANSIColor/files/md5' XMD5 (ANSIColor-1.01.tar.gz) = e499734e8d1709ae093187eb93ed5bc1 END-of-p5-Term-ANSIColor/files/md5 echo c - p5-Term-ANSIColor/pkg mkdir -p p5-Term-ANSIColor/pkg > /dev/null 2>&1 echo x - p5-Term-ANSIColor/pkg/COMMENT sed 's/^X//' >p5-Term-ANSIColor/pkg/COMMENT << 'END-of-p5-Term-ANSIColor/pkg/COMMENT' XColor screen output using ANSI escape sequences. END-of-p5-Term-ANSIColor/pkg/COMMENT echo x - p5-Term-ANSIColor/pkg/DESCR sed 's/^X//' >p5-Term-ANSIColor/pkg/DESCR << 'END-of-p5-Term-ANSIColor/pkg/DESCR' XWhile ANSI color escape codes are fairly simple, it can be hard to Xremember the codes for all of the attributes and the code resulting Xfrom hard-coding them into your script is definitely difficult to Xread. This module is designed to fix those problems, as well as Xprovide a convenient interface to do a few things for you Xautomatically (like resetting attributes after the text you print out Xso that you don't accidentally leave attributes set). X XDespite its name, this module can also handle non-color ANSI text Xattributes (bold, underline, reverse video, and blink). It uses either Xof two interfaces, one of which uses "constants" for each different Xattribute and the other of which uses two subs which take strings of Xattributes as arguments. X X-- Denis Shaposhnikov Xdsh@vlink.ru END-of-p5-Term-ANSIColor/pkg/DESCR echo x - p5-Term-ANSIColor/pkg/PLIST sed 's/^X//' >p5-Term-ANSIColor/pkg/PLIST << 'END-of-p5-Term-ANSIColor/pkg/PLIST' Xlib/perl5/site_perl/%%PERL_VER%%/Term/ANSIColor.pm Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Term/ANSIColor/.packlist X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Term/ANSIColor END-of-p5-Term-ANSIColor/pkg/PLIST echo x - p5-Term-ANSIColor/Makefile sed 's/^X//' >p5-Term-ANSIColor/Makefile << 'END-of-p5-Term-ANSIColor/Makefile' X# New ports collection makefile for: ANSIColor X# Version required: 1.01 X# Date created: 1 December 1999 X# Whom: Denis Shaposhnikov <dsh@vlink.ru> X# X# $Id$ X# X XDISTNAME= ANSIColor-1.01 XPKGNAME= p5-Term-ANSIColor-1.01 XCATEGORIES= devel perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= Term X XMAINTAINER= dsh@vlink.ru X XUSE_PERL5= YES XCONFIGURE_ARGS= PREFIX=${PREFIX} X XMAN3= Term::ANSIColor.3 XMAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} X Xdo-configure: X @ cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${PERL5} Makefile.PL ${CONFIGURE_ARGS} X X.include <bsd.port.mk> END-of-p5-Term-ANSIColor/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991201105129.62FE83C0A>