pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/44877: Submission to add p5-Text-Brew package to pkgsrc
>Number: 44877
>Category: pkg
>Synopsis: Submission to add p5-Text-Brew package to pkgsrc
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Apr 19 02:05:00 +0000 2011
>Originator: David H. Gutteridge
>Release: Several
>Organization:
>Environment:
>Description:
I've been using the Perl Text-Brew package for a while now, so I thought I'd
submit the necessary files to add it to pkgsrc, in case someone else can use it
too. What's nice about it is that it allows for configurable edit distances
and also shows how it calculated the edit distance. I use it to apply
custom-weighted edit distances for particular scenarios in data analysis.
>How-To-Repeat:
>Fix:
Make file:
# $NetBSD$
#
DISTNAME= Text-Brew-0.02
PKGNAME= p5-${DISTNAME}
#PKGREVISION=
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Text/}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://search.cpan.org/dist/Text-Brew
COMMENT= Perl module for configurable and analyzable edit distances
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"
DESCR file:
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).
distinfo file:
$NetBSD$
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
Home |
Main Index |
Thread Index |
Old Index