diff options
author | obache <obache@pkgsrc.org> | 2011-04-30 09:07:58 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-04-30 09:07:58 +0000 |
commit | dab067163289e5012e60a3fd80dbf1ae6c790fc1 (patch) | |
tree | b224990bf184778b095105e0040326314efadaba /textproc/p5-Text-Brew | |
parent | cb9c683e858fef51b60eab88b5645f3afd5e932f (diff) | |
download | pkgsrc-dab067163289e5012e60a3fd80dbf1ae6c790fc1.tar.gz |
Import p5-Text-Brew-0.02 as textproc/p5-Text-Brew.
Packaged by David H. Gutteridge and submitted via PR#44877.
This module implements the Brew edit distance that is very close to the
dynamic programming technique used for the Wagner-Fischer (and so for
the Levenshtein) edit distance. The difference here is that you have
separated costs for the DELetion and INSertion operations (but with the
default to 1 for both, you obtain the Levenshtein edit distance). But
the most interesting feature is that you can obtain the description of
the edits needed to transform the first string into the second one (not
vice versa: here DELetions are separated from INSertions).
Diffstat (limited to 'textproc/p5-Text-Brew')
-rw-r--r-- | textproc/p5-Text-Brew/DESCR | 8 | ||||
-rw-r--r-- | textproc/p5-Text-Brew/Makefile | 20 | ||||
-rw-r--r-- | textproc/p5-Text-Brew/distinfo | 5 |
3 files changed, 33 insertions, 0 deletions
diff --git a/textproc/p5-Text-Brew/DESCR b/textproc/p5-Text-Brew/DESCR new file mode 100644 index 00000000000..5b23091664b --- /dev/null +++ b/textproc/p5-Text-Brew/DESCR @@ -0,0 +1,8 @@ +This module implements the Brew edit distance that is very close to the +dynamic programming technique used for the Wagner-Fischer (and so for +the Levenshtein) edit distance. The difference here is that you have +separated costs for the DELetion and INSertion operations (but with the +default to 1 for both, you obtain the Levenshtein edit distance). But +the most interesting feature is that you can obtain the description of +the edits needed to transform the first string into the second one (not +vice versa: here DELetions are separated from INSertions). diff --git a/textproc/p5-Text-Brew/Makefile b/textproc/p5-Text-Brew/Makefile new file mode 100644 index 00000000000..67f96995cff --- /dev/null +++ b/textproc/p5-Text-Brew/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/04/30 09:07:58 obache Exp $ +# + +DISTNAME= Text-Brew-0.02 +PKGNAME= p5-${DISTNAME} +CATEGORIES= textproc perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Text/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Text-Brew +COMMENT= Perl module for configurable and analyzable edit distances +LICENSE= ${PERL5_LICENSE} + +PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir + +PERL5_PACKLIST= auto/Text/Brew/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/p5-Text-Brew/distinfo b/textproc/p5-Text-Brew/distinfo new file mode 100644 index 00000000000..b46b2cc431e --- /dev/null +++ b/textproc/p5-Text-Brew/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/04/30 09:07:58 obache Exp $ + +SHA1 (Text-Brew-0.02.tar.gz) = a65a6ae0229e71bc4cfe77832116a2cd0e4309a7 +RMD160 (Text-Brew-0.02.tar.gz) = f7b5249dde0b184041216ded99764568b3bccba7 +Size (Text-Brew-0.02.tar.gz) = 4663 bytes |