# $Id: Portfile 78506 2011-05-10 07:39:27Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               python26 1.0

name                    py26-enchant
version                 1.6.5
categories              python textproc
platforms               darwin
maintainers             adfernandes openmaintainer
homepage                http://www.rfk.id.au/software/pyenchant/
description             A python interface to the enchant spell-checking library.
long_description        PyEnchant is a spellchecking library for Python, based \
                        on the excellent Enchant library.

master_sites            http://pypi.python.org/packages/source/p/pyenchant/
distname                pyenchant-${version}
checksums               md5     565014a14a52fb0195d152dd492ea948 \
                        sha1    6f01b8657b64e970a11945c2a9b4d6d8023997bc \
                        rmd160  4e94bb26134f6d60b114cf40b3170dbf5fcb6e85

depends_lib-append      port:py26-distribute port:enchant

supported_archs         noarch

patchfiles              patch-enchant-_enchant.py.diff

post-patch {
    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/enchant/_enchant.py
}

livecheck.type          regex
livecheck.url           ${homepage}
livecheck.regex         Version (\\d+\\.\\d+\\.\\d+) released
