Index: /trunk/ports/python/py-hesiod/files/patch-setup.py =================================================================== --- /trunk/ports/python/py-hesiod/files/patch-setup.py (revision 213) +++ /trunk/ports/python/py-hesiod/files/patch-setup.py (revision 213) @@ -0,0 +1,11 @@ +--- setup.py.orig 2012-02-24 01:47:58.000000000 -0500 ++++ setup.py 2012-02-24 01:48:19.000000000 -0500 +@@ -17,6 +17,8 @@ + ext_modules=cythonize([ + Extension("_hesiod", + ["_hesiod.pyx"], ++ include_dirs=['__PREFIX__/include'], ++ library_dirs=['__PREFIX__/lib'], + libraries=["hesiod"]), + ]), + ) Index: /trunk/ports/python/py-hesiod/Portfile =================================================================== --- /trunk/ports/python/py-hesiod/Portfile (revision 213) +++ /trunk/ports/python/py-hesiod/Portfile (revision 213) @@ -0,0 +1,31 @@ +# -*- 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:libhesiod \ + port:py${python.version}-cython \ + port:py${python.version}-setuptools +} +patchfiles patch-setup.py +post-patch { + reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py +}