Ticket #45210: Portfile-octave.diff

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

    old new  
    99name                octave
    1010
    1111version             3.8.2
    12 revision            1
     12revision            2
    1313#conflicts           octave-devel
    1414categories          math science
    1515maintainers         michaelld openmaintainer
     
    114114# See also < http://llvm.org/bugs/show_bug.cgi?id=21083 >
    115115#          < https://trac.macports.org/ticket/45011 >.
    116116
    117 compiler.blacklist-append {clang >= 600} macports-clang-3.5 macports-clang-3.6
     117compiler.blacklist-append macports-clang-3.5 macports-clang-3.6
    118118
    119119platform darwin {
    120120    if {${os.major} >= 12} {
     
    127127
    128128        build.args-append LANG="C"
    129129    }
     130   
     131    if {${os.major} >= 13} {
     132        patchfiles   octave-3.8.2-clang-libcxx.patch
     133       
     134        post-patch {
     135                reinplace "s/(10\.\[012\])\*/\1\,.\*/g" \
     136                ${worksrcpath}/configure
     137        }
     138        }
    130139}
    131140
    132141if {![fortran_variant_isset]} {
     
    266275        reinplace -W ${appdir}/Contents "s,@@VERSION@@,${version},g" Info.plist
    267276        reinplace -W ${appdir}/Contents/MacOS "s,@@PREFIX@@,${prefix},g" Octave
    268277    }
     278   
     279    if {${os.major} >= 13} {
     280        xinstall -m 640 ${worksrcpath}/liboctave/operators/libcxx-fix.h \
     281            ${destroot}${prefix}/include/${name}-${version}/${name}/libcxx-fix.h
     282    }
    269283}
    270284
    271285livecheck.type      regex