# $Id: Portfile 51400 2009-05-24 04:22:42Z ram@macports.org $

PortSystem 1.0
PortGroup python26 1.0

name			py26-levenshtein
version			0.10.1
categories		python textproc
platforms		darwin freebsd
maintainers		nomaintainer
description		python module for fast computation of Levensthein distances
long_description	The Levenshtein Python C extension module contains \
				functions for fast computation of Levenshtein (edit) \
				distance, and edit operations, string similarity, \
				approximate median strings, and generally string \
				averaging, string sequence and set similarity. It \
				supports both normal and Unicode strings.

homepage		http://code.google.com/p/pylevenshtein/
master_sites	googlecode:pylevenshtein
distname		python-Levenshtein-${version}
checksums		md5 af9b9c69c4563e211b11dc5184a93872 \
				sha1 d630141e003f47a43e0f8eacdcbf593bf9d15ed6
use_bzip2		yes

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} COPYING NEWS README \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/StringMatcher.py \
		${destroot}${prefix}/share/doc/${name}/examples
}
