Index: trunk/ports/python/py-hesiod/files/patch-setup.py =================================================================== --- trunk/ports/python/py27-hesiod/files/patch-setup.py (revision 205) +++ trunk/ports/python/py-hesiod/files/patch-setup.py (revision 213) @@ -2,10 +2,10 @@ +++ setup.py 2012-02-24 01:48:19.000000000 -0500 @@ -17,6 +17,8 @@ - ext_modules=[ + ext_modules=cythonize([ Extension("_hesiod", ["_hesiod.pyx"], + include_dirs=['__PREFIX__/include'], + library_dirs=['__PREFIX__/lib'], - libraries=["hesiod"]) - ], - cmdclass= {"build_ext": build_ext} + libraries=["hesiod"]), + ]), + ) Index: trunk/ports/python/py-hesiod/Portfile =================================================================== --- trunk/ports/python/py27-hesiod/Portfile (revision 205) +++ trunk/ports/python/py-hesiod/Portfile (revision 213) @@ -2,27 +2,28 @@ PortSystem 1.0 -PortGroup python27 1.0 +PortGroup github 1.0 +PortGroup python 1.0 -name py27-hesiod -version 0.2.10 -categories python devel +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 -homepage https://github.com/ebroder/python-hesiod -master_sites https://github.com/ebroder/python-hesiod/tarball +checksums rmd160 17fdc201871dcfda2c324e1d8704657604d8dd58 \ + sha256 ed98670e76f92e351ef5afc33320f2e8a09fe7332a639a3cc3782f8a35710713 \ + size 3439 -distname ${version} -distfiles ${distname} -worksrcdir ebroder-python-hesiod-004e69f +python.versions 27 36 37 38 -checksums md5 23fc93e01e10d2ac8ecd7044ef7adcce \ - sha1 d933c1f8499c629a134eaf862c8acfd0f7203f2c \ - rmd160 58498797d050ed94e1f7100aa56b394afefc2fb6 - -depends_lib-append port:libhesiod \ - port:py27-pyrex \ - port:py27-distribute +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 {