Changeset 213

Show
Ignore:
Timestamp:
01/24/20 01:45:11 (4 years ago)
Author:
quentin
Message:

Upgrade to Python 3-compatible PyHesiod

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ports/python/py-hesiod/Portfile

    r205 r213  
    22 
    33PortSystem          1.0 
    4 PortGroup           python27 1.0 
     4PortGroup           github 1.0 
     5PortGroup           python 1.0 
    56 
    6 name                py27-hesiod 
    7 version             0.2.10 
    8 categories          python devel 
     7github.setup        mit-scripts python-hesiod 583fc21cee08baaf5117ed8045bf18a9252eba84 
     8name                py-hesiod 
     9version             0.2.11 
     10 
     11categories-append   devel 
    912platforms           darwin 
     13license             MIT 
    1014maintainers         mit.edu:sipb-macathena 
    1115description         Python bindings for the Hesiod name resolution library 
    1216 
    13 homepage            https://github.com/ebroder/python-hesiod 
    14 master_sites        https://github.com/ebroder/python-hesiod/tarball 
     17checksums           rmd160  17fdc201871dcfda2c324e1d8704657604d8dd58 \ 
     18                    sha256  ed98670e76f92e351ef5afc33320f2e8a09fe7332a639a3cc3782f8a35710713 \ 
     19                    size    3439 
    1520 
    16 distname            ${version} 
    17 distfiles           ${distname} 
    18 worksrcdir          ebroder-python-hesiod-004e69f 
     21python.versions     27 36 37 38 
    1922 
    20 checksums           md5     23fc93e01e10d2ac8ecd7044ef7adcce \ 
    21                     sha1    d933c1f8499c629a134eaf862c8acfd0f7203f2c \ 
    22                     rmd160  58498797d050ed94e1f7100aa56b394afefc2fb6 
    23  
    24 depends_lib-append      port:libhesiod \ 
    25                         port:py27-pyrex \ 
    26                         port:py27-distribute 
     23if {${name} ne ${subport}} { 
     24    depends_lib-append      port:libhesiod \ 
     25                            port:py${python.version}-cython \ 
     26                            port:py${python.version}-setuptools 
     27
    2728patchfiles              patch-setup.py 
    2829post-patch { 
  • trunk/ports/python/py-hesiod/files/patch-setup.py

    r205 r213  
    22+++ setup.py    2012-02-24 01:48:19.000000000 -0500 
    33@@ -17,6 +17,8 @@ 
    4      ext_modules=
     4     ext_modules=cythonize(
    55         Extension("_hesiod", 
    66                   ["_hesiod.pyx"], 
    77+                  include_dirs=['__PREFIX__/include'], 
    88+                  library_dirs=['__PREFIX__/lib'], 
    9                    libraries=["hesiod"]) 
    10          ]
    11      cmdclass= {"build_ext": build_ext} 
     9                   libraries=["hesiod"]), 
     10     ])
     11 )