diff options
author | will <will@FreeBSD.org> | 2000-12-31 13:23:35 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2000-12-31 13:23:35 +0800 |
commit | d1cfc2ad0fd7d6068350449c1f8697dca5370ced (patch) | |
tree | 88849bb4249aa73f88f7e2eb712eea47ec2f590a | |
parent | 98ccd184662da55558fd0040f3d06e1d36b054af (diff) | |
download | freebsd-ports-gnome-d1cfc2ad0fd7d6068350449c1f8697dca5370ced.tar.gz freebsd-ports-gnome-d1cfc2ad0fd7d6068350449c1f8697dca5370ced.tar.zst freebsd-ports-gnome-d1cfc2ad0fd7d6068350449c1f8697dca5370ced.zip |
Add p5-Text-Filter 1.7, a perl module with a base class for objects that
can read and write text lines.
PR: 23931
Submitted by: Anton Berezin <tobez@tobez.org>
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/p5-Text-Filter/Makefile | 23 | ||||
-rw-r--r-- | textproc/p5-Text-Filter/distinfo | 1 | ||||
-rw-r--r-- | textproc/p5-Text-Filter/pkg-comment | 1 | ||||
-rw-r--r-- | textproc/p5-Text-Filter/pkg-descr | 24 | ||||
-rw-r--r-- | textproc/p5-Text-Filter/pkg-plist | 5 |
6 files changed, 55 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 4b0f40301280..0bf381264072 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -77,6 +77,7 @@ SUBDIR += p5-Text-CSV_XS SUBDIR += p5-Text-DoubleMetaphone SUBDIR += p5-Text-FillIn + SUBDIR += p5-Text-Filter SUBDIR += p5-Text-Template SUBDIR += p5-XML-DOM SUBDIR += p5-XML-Parser diff --git a/textproc/p5-Text-Filter/Makefile b/textproc/p5-Text-Filter/Makefile new file mode 100644 index 000000000000..62e68b621990 --- /dev/null +++ b/textproc/p5-Text-Filter/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: textproc/p5-Text-Filter +# Date created: 29 December 2000 +# Whom: Anton Berezin <tobez@tobez.org> +# +# $FreeBSD$ +# + +PORTNAME= Text-Filter +PORTVERSION= 1.7 +CATEGORIES= textproc perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Text +PKGNAMEPREFIX= p5- + +MAINTAINER= tobez@tobez.org + +USE_PERL5= yes +PERL_CONFIGURE= yes + +MAN3= Text::Filter.3 +MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} + +.include <bsd.port.mk> diff --git a/textproc/p5-Text-Filter/distinfo b/textproc/p5-Text-Filter/distinfo new file mode 100644 index 000000000000..b33352c66b9e --- /dev/null +++ b/textproc/p5-Text-Filter/distinfo @@ -0,0 +1 @@ +MD5 (Text-Filter-1.7.tar.gz) = 3a2f2caaf3b44ae67c06cf850a42016f diff --git a/textproc/p5-Text-Filter/pkg-comment b/textproc/p5-Text-Filter/pkg-comment new file mode 100644 index 000000000000..d4543ce860f0 --- /dev/null +++ b/textproc/p5-Text-Filter/pkg-comment @@ -0,0 +1 @@ +Base class for objects that can read and write text lines diff --git a/textproc/p5-Text-Filter/pkg-descr b/textproc/p5-Text-Filter/pkg-descr new file mode 100644 index 000000000000..8460212c293b --- /dev/null +++ b/textproc/p5-Text-Filter/pkg-descr @@ -0,0 +1,24 @@ +A plethora of tools exist that operate as filters: they get data from a +source, operate on this data, and write possibly modified data to a +destination. In the Unix world, these tools can be chained using a +technique called pipelining, where the output of one filter is connected +to the input of another filter. Some non-Unix worlds are reported to +have similar provisions. + +To create Perl modules for filter functionality seems trivial at first. +Just open the input file, read and process it, and write output to a +destination file. But for really reusable modules this approach is too +simple. A reusable module should not read and write files itself, but +rely on the calling program to provide input as well as to handle the +output. + +Text::Filter is a base class for modules that have in common that they +process text lines by reading from some source (usually a file), +manipulating the contents and writing something back to some destination +(usually some other file). + +This module can be used 'as is', but its real power shows when used to +derive modules from it. + +-Anton +<tobez@tobez.org> diff --git a/textproc/p5-Text-Filter/pkg-plist b/textproc/p5-Text-Filter/pkg-plist new file mode 100644 index 000000000000..dc5e9aff99e3 --- /dev/null +++ b/textproc/p5-Text-Filter/pkg-plist @@ -0,0 +1,5 @@ +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/Filter/.packlist +lib/perl5/site_perl/%%PERL_VER%%/Text/Filter.pm +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/Filter +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text 2>/dev/null || true +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Text 2>/dev/null || true |