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).
20 lines
558 B
Makefile
20 lines
558 B
Makefile
# $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"
|