# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        mit-scripts python-hesiod 583fc21cee08baaf5117ed8045bf18a9252eba84
name                py-hesiod
version             0.2.11

categories-append   devel
platforms           darwin
license             MIT
maintainers         mit.edu:sipb-macathena
description         Python bindings for the Hesiod name resolution library

checksums           rmd160  17fdc201871dcfda2c324e1d8704657604d8dd58 \
                    sha256  ed98670e76f92e351ef5afc33320f2e8a09fe7332a639a3cc3782f8a35710713 \
                    size    3439

python.versions     27 36 37 38

if {${name} ne ${subport}} {
    depends_lib-append      port:hesiod \
                            port:py${python.version}-cython \
                            port:py${python.version}-setuptools
}
patchfiles              patch-setup.py
post-patch {
    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
}
