Ticket #45210: Portfile-octave.2.diff

File Portfile-octave.2.diff, 1.3 KB (added by Schamschula (Marius Schamschula), 9 years ago)
  • Portfile

    old new  
    99name                octave
    1010
    1111version             3.8.2
    12 revision            2
     12revision            3
    1313#conflicts           octave-devel
    1414categories          math science
    1515maintainers         michaelld openmaintainer
     
    118118# See also < http://llvm.org/bugs/show_bug.cgi?id=21083 >
    119119#          < https://trac.macports.org/ticket/45011 >.
    120120
    121 compiler.blacklist-append {clang >= 600} macports-clang-3.5 macports-clang-3.6
     121compiler.blacklist-append macports-clang-3.5 macports-clang-3.6
    122122
    123123platform darwin {
    124124    if {${os.major} >= 12} {
     
    131131
    132132        build.args-append LANG="C"
    133133    }
     134   
     135    if {${os.major} >= 13} {
     136        patchfiles-append    octave-3.8.2-clang-libcxx.patch
     137    }
    134138}
    135139
    136140if {![fortran_variant_isset]} {
     
    269273
    270274        reinplace -W ${appdir}/Contents "s,@@VERSION@@,${version},g" Info.plist
    271275        reinplace -W ${appdir}/Contents/MacOS "s,@@PREFIX@@,${prefix},g" Octave
     276
     277        if {${os.major} >= 13} {
     278            xinstall -m 640 ${worksrcpath}/liboctave/operators/libcxx-fix.h \
     279                ${destroot}${prefix}/include/${name}-${version}/${name}/libcxx-fix.h
     280        }
    272281    }
    273282}
    274283