Ticket #39813: patch-scotch-Portfile.diff

File patch-scotch-Portfile.diff, 2.0 KB (added by mkae (Marko Käning), 11 years ago)
  • Portfile

     
    44PortSystem          1.0
    55
    66name                scotch
    7 version             5.1.11
    8 revision            5
     7version             6.0.0
    98
    109# this is specific to this port and *version* for downloading it:
    11 set release         28043
     10set release         31831
    1211
    1312categories          science
    1413maintainers         mk pixilla
     
    2423
    2524livecheck.type      regex
    2625livecheck.url       https://gforge.inria.fr/frs/?group_id=248
    27 livecheck.regex     "scotch_(5\\.\\d+\\.\\d+)\\.tar\\.gz"
     26livecheck.regex     "scotch_(6\\.\\d+\\.\\d+)\\.tar\\.gz"
    2827
    2928use_bzip2           no
    3029
    3130worksrcdir          ${name}_${version}/src
    3231
    33 checksums           md5     36d638a227f38a219b51fe8ddc2093ac \
    34                     sha1    7cee69345bd101b0dbd8aff9b410dea6834c32d6 \
    35                     rmd160  2b72f555af192a17eecec65d50bd241ad87adec2
     32checksums           md5     ba117428c0a6cd97d0c93e8b872bb3fe \
     33                    sha1    eb32d846bb14449245b08c81e740231f7883fea6 \
     34                    rmd160  a33f4666869e6a9ed9da1728b95a59310e29b988
    3635
    3736use_configure       no
    3837
     
    7170
    7271pre-build {
    7372    copy ${worksrcpath}/Make.inc/Makefile.inc.i686_mac_darwin8 ${worksrcpath}/Makefile.inc
     73    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/Makefile
     74    reinplace "s|mpirun|openmpirun|" ${worksrcpath}/check/Makefile
    7475    reinplace "s|gcc|\$(CC)|" ${worksrcpath}/Makefile.inc
     76    reinplace "s|-DCOMMON_PTHREAD|-DCOMMON_PTHREAD -DCOMMON_PTHREAD_BARRIER|" ${worksrcpath}/Makefile.inc
    7577    reinplace "s|mpicc|${prefix}/bin/openmpicc|" ${worksrcpath}/Makefile.inc
    7678}
    7779
    7880build.target scotch ptscotch
     81# Use this instead if you want to run checks after the build:
     82#build.target scotch ptscotch check ptcheck
     83# But tests fail up to now (see ticket #39812)!!!
    7984
    8085# scotch and ptscotch MUST be built sequentially according to scotch's INSTALL.txt
    8186use_parallel_build no