Ticket #40345: py-dynd.diff

File py-dynd.diff, 1.5 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)
  • Portfile

     
    66PortGroup           python 1.0
    77PortGroup           cmake 1.0
    88
    9 set version_string  "v0.4.2"
    10 set git_sha1        "9f9044e1b6f80869d230f9de73cfe887884bb04d"
    11 set distname_suf    "07f39d0"
     9set git_sha1        9f9044e1b6f80869d230f9de73cfe887884bb04d
     10github.setup        ContinuumIO dynd-python 0.4.2 v
    1211
    13 github.setup        ContinuumIO dynd-python ${version_string}
    14 
    1512name                py-dynd
    1613categories-append   devel
    1714platforms           darwin
     
    2724                    Python exposure of the DyND dynamic multi-dimensional \
    2825                    array library.
    2926
    30 homepage            https://github.com/ContinuumIO/dynd-python
    31 
    3227checksums           rmd160  41ca9cd0faa0903cea34977f2ca9d39535cc4dcc \
    3328                    sha256  aadb8ba2d654c026d92bf8740c35211457f3ea12b3541dc623094a70164968ff
    3429
    35 if {$subport != $name} {
     30if {$subport ne $name} {
    3631    depends_lib-append  port:libdynd \
    3732                        port:py${python.version}-numpy \
    3833                        port:py${python.version}-cython
     
    4136
    4237    post-patch {
    4338        reinplace "s|@@DYND_PYTHON_GIT_SHA1@@|${git_sha1}|g" ${worksrcpath}/CMakeLists.txt
    44         reinplace "s|@@DYND_PYTHON_VERSION_STRING@@|${version_string}|g" ${worksrcpath}/CMakeLists.txt
     39        reinplace "s|@@DYND_PYTHON_VERSION_STRING@@|v${version}|g" ${worksrcpath}/CMakeLists.txt
    4540    }
    4641
    4742    use_configure       yes