# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python27 1.0

name                py27-hesiod
version             0.2.10
categories          python devel
platforms           darwin
maintainers         mit.edu:sipb-macathena
description         Python bindings for the Hesiod name resolution library

homepage            https://github.com/ebroder/python-hesiod
master_sites        https://github.com/ebroder/python-hesiod/tarball

distname            ${version}
distfiles           ${distname}
worksrcdir          ebroder-python-hesiod-004e69f

checksums           md5     23fc93e01e10d2ac8ecd7044ef7adcce \
                    sha1    d933c1f8499c629a134eaf862c8acfd0f7203f2c \
                    rmd160  58498797d050ed94e1f7100aa56b394afefc2fb6

depends_lib-append      port:libhesiod \
                        port:py27-pyrex \
                        port:py27-distribute
patchfiles              patch-setup.py
post-patch {
    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
}
