# $Id: Portfile 58038 2009-09-21 05:35:27Z blb@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                py26-hypy
version             0.8.3
categories-append   textproc
maintainers         nomaintainer
description         Fulltext search interface for Python applications
long_description \
   Hypy is a fulltext search interface for Python applications. Use it to \
   index and search your documents from Python code.

platforms           darwin

homepage            http://goonmill.org/hypy/
master_sites        http://pypi.python.org/packages/source/H/Hypy/
distname            Hypy-${version}

checksums           md5     3603657417b0ad7fc199f6b2e37f10e8 \
                    sha1    0dcae455fbc993b4663beb66e32423679fade4cf \
                    rmd160  5f247d4f410aa0d2dbff0fc6268724865955d9a4

depends_lib-append  port:hyperestraier

patchfiles          patch-setup.py.diff
post-patch {
   reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py
   reinplace "s|VERSION_NOT_FOUND|${version}|" ${worksrcpath}/setup.py
}

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} README.txt \
      ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     {Hypy-([0-9.]+)\.tar\.gz}

