mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 10:56:27 -04:00
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>
This commit is contained in:
parent
c084d40d0f
commit
11166c4862
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36498
6 changed files with 55 additions and 0 deletions
|
@ -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
|
||||
|
|
23
textproc/p5-Text-Filter/Makefile
Normal file
23
textproc/p5-Text-Filter/Makefile
Normal file
|
@ -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>
|
1
textproc/p5-Text-Filter/distinfo
Normal file
1
textproc/p5-Text-Filter/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (Text-Filter-1.7.tar.gz) = 3a2f2caaf3b44ae67c06cf850a42016f
|
1
textproc/p5-Text-Filter/pkg-comment
Normal file
1
textproc/p5-Text-Filter/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
Base class for objects that can read and write text lines
|
24
textproc/p5-Text-Filter/pkg-descr
Normal file
24
textproc/p5-Text-Filter/pkg-descr
Normal file
|
@ -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>
|
5
textproc/p5-Text-Filter/pkg-plist
Normal file
5
textproc/p5-Text-Filter/pkg-plist
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue