Index: /trunk/ports/python/py27-hesiod/files/patch-setup.py =================================================================== --- /trunk/ports/python/py27-hesiod/files/patch-setup.py (revision 205) +++ /trunk/ports/python/py27-hesiod/files/patch-setup.py (revision 205) @@ -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=[ + Extension("_hesiod", + ["_hesiod.pyx"], ++ include_dirs=['__PREFIX__/include'], ++ library_dirs=['__PREFIX__/lib'], + libraries=["hesiod"]) + ], + cmdclass= {"build_ext": build_ext} Index: /trunk/ports/python/py27-hesiod/Portfile =================================================================== --- /trunk/ports/python/py27-hesiod/Portfile (revision 205) +++ /trunk/ports/python/py27-hesiod/Portfile (revision 205) @@ -0,0 +1,30 @@ +# -*- 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 +}