# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-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://trific.ath.cx/resources/python/levenshtein/
master_sites	http://trific.ath.cx/Ftp/python/levenshtein/
distname		python-Levenshtein-${version}
checksums		md5 af9b9c69c4563e211b11dc5184a93872
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
}
