aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/sansi/Makefile29
-rw-r--r--textproc/sansi/distinfo2
-rw-r--r--textproc/sansi/pkg-descr10
4 files changed, 42 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index d985c64aa097..2695118bbab3 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1396,6 +1396,7 @@
SUBDIR += s5
SUBDIR += sablotron
SUBDIR += sagasu
+ SUBDIR += sansi
SUBDIR += sarep
SUBDIR += sary
SUBDIR += sassc
diff --git a/textproc/sansi/Makefile b/textproc/sansi/Makefile
new file mode 100644
index 000000000000..2ab0acd95701
--- /dev/null
+++ b/textproc/sansi/Makefile
@@ -0,0 +1,29 @@
+# Created by: Chris Hutchinson <portmaster@bsdforge.com>
+# $FreeBSD$
+
+PORTNAME= sansi
+PORTVERSION= 1.0.0
+CATEGORIES= textproc sysutils
+MASTER_SITES= http://BSDforge.com/projects/source/textproc/sansi/
+
+MAINTAINER= portmaster@bsdforge.com
+COMMENT= Removes ANSI control sequences/characters, from files
+
+LICENSE= ART20 BSD2CLAUSE
+LICENSE_COMB= multi
+
+RUN_DEPENDS= p5-PerlIO-eol>=0:${PORTSDIR}/devel/p5-PerlIO-eol \
+ p5-Modern-Perl>=0:${PORTSDIR}/lang/p5-Modern-Perl
+
+NO_WRKSUBDIR= yes
+NO_BUILD= yes
+
+USES= tar:xz
+
+PLIST_FILES= sbin/sansi man/man1/sansi.1.gz
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/sansi ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/sansi.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/textproc/sansi/distinfo b/textproc/sansi/distinfo
new file mode 100644
index 000000000000..0c808724e01d
--- /dev/null
+++ b/textproc/sansi/distinfo
@@ -0,0 +1,2 @@
+SHA256 (sansi-1.0.0.tar.xz) = 1cb69ac15be82cb27f2f4712a7ef27c1e12fafcde916627b89cc1d1dc95dae97
+SIZE (sansi-1.0.0.tar.xz) = 1816
diff --git a/textproc/sansi/pkg-descr b/textproc/sansi/pkg-descr
new file mode 100644
index 000000000000..72ce579ca908
--- /dev/null
+++ b/textproc/sansi/pkg-descr
@@ -0,0 +1,10 @@
+sansi was written to strip the ANSI control sequences in files, or
+output, often, but not limited to those generated by compilers. I
+found it difficult to visually grope/grep the output of script(1)
+sessions. Especially with the advent of clang. While it's nice to
+replay the script(1) sessions to view the highlighted messages.
+It's near impossible to read it inline in your favorite pager, or
+text editor;
+Enter sansi.
+
+WWW: http://BSDforge.com/projects/textproc/sansi/