Ticket #40345: libdynd.diff

File libdynd.diff, 1.7 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)
  • Portfile

     
    55PortGroup           github 1.0
    66PortGroup           cmake 1.0
    77
    8 set version_string  "v0.4.2"
    9 set git_sha1        "41a91350c053c7f7a5f92e440fb05ae9ae700c0b"
    10 set distname_suf    "07f39d0"
     8set git_sha1        41a91350c053c7f7a5f92e440fb05ae9ae700c0b
     9github.setup        ContinuumIO libdynd 0.4.2 v
    1110
    12 github.setup        ContinuumIO libdynd ${version_string}
    13 
    14 name                libdynd
    1511categories          devel math
    1612platforms           darwin
    1713license             BSD
     
    2117description         LibDyND is a C++ library for dynamic, multidimensional arrays.
    2218long_description    ${description}
    2319
    24 homepage            https://github.com/ContinuumIO/libdynd
    25 
    2620checksums           rmd160  98048cb1b7454f0e8ceebb9bdb0cd076a39b82ba \
    2721                    sha256  9afd2a02b162a3fffec89bba83ff5cdb295d2f941920f49689297f77082f333e
    2822
    29 worksrcdir          ContinuumIO-${name}-${distname_suf}
    30 
    3123patchfiles          patch-CMakeLists.txt.diff
    3224
    3325post-patch {
    3426    reinplace "s|@@DYND_GIT_SHA1@@|${git_sha1}|g" ${worksrcpath}/CMakeLists.txt
    35     reinplace "s|@@DYND_VERSION_STRING@@|${version_string}|g" ${worksrcpath}/CMakeLists.txt
     27    reinplace "s|@@DYND_VERSION_STRING@@|v${version}|g" ${worksrcpath}/CMakeLists.txt
    3628}
    3729
    38 set build_dir        ${worksrcpath}/build
     30configure.dir       ${worksrcpath}/build
     31build.dir           ${configure.dir}
    3932pre-configure {
    40     file mkdir ${build_dir}
     33    file mkdir ${configure.dir}
    4134}
    42 configure.dir       ${build_dir}
    43 build.dir           ${build_dir}
    4435
    4536configure.args-append \
    4637                    ../ \