Ticket #45210: Portfile-octave.3.diff

File Portfile-octave.3.diff, 1.4 KB (added by Schamschula (Marius Schamschula), 6 years ago)
  • Portfile

    old new  
    99name                octave
    1010
    1111version             3.8.2
    12 revision            3
     12revision            4
    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
    136140# atlas does not work with g95, so always conflict with it
     
    254258post-destroot {
    255259    system "echo 'graphics_toolkit(\"gnuplot\");' >> ${destroot}${prefix}/share/octave/site/m/startup/octaverc"
    256260
     261    if {${os.major} >= 13} {
     262        xinstall -m 640 ${worksrcpath}/liboctave/operators/libcxx-fix.h \
     263            ${destroot}${prefix}/include/${name}-${version}/${name}/libcxx-fix.h
     264    }
     265
    257266    if {[variant_isset gui]} {
    258267        set appdir ${destroot}${applications_dir}/Octave.app
    259268        xinstall -d ${appdir}/Contents/MacOS