pkgsrc-wip/p5-Text-Context-EitherSide/Makefile
Roman Kulik 513f2cebee Suppose you have a large piece of text - typically, say, a web page or
a mail message. And now suppose you've done some kind of full-text search
on that text for a bunch of keywords, and you want to display the context
in which you found the keywords inside the body of the text.

A simple-minded way to do that would be just to get the two words either
side of each keyword. But hey, don't be too simple minded, because you've
got to make sure that the list doesn't overlap. If you have

    the quick brown fox jumped over the lazy dog

and you extract two words either side of ``fox'', ``jumped'' and ``dog'',
you really don't want to end up with

    quick brown fox jumped over brown fox jumped over the the lazy dog

so you need a small amount of smarts. This module has a small amount of smarts.
2005-08-01 21:27:55 +00:00

15 lines
490 B
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2005/08/01 21:27:55 kuli0020 Exp $
DISTNAME= Text-Context-EitherSide-1.2
PKGNAME= p5-${DISTNAME}
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Text/}
MAINTAINER= kuli0020@NetBSD.org
HOMEPAGE= http://cpan.uwinnipeg.ca/dist/Text-Context-EitherSide
COMMENT= Get n words either side of search keywords
PERL5_PACKLIST= auto/Text/Context/EitherSide/.packlist
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"