Ticket #40446: Portfile.diff

File Portfile.diff, 1.4 KB (added by petrrr, 11 years ago)
  • ports/python/py-obspy/Portfile

    diff --git a/ports/python/py-obspy/Portfile b/ports/python/py-obspy/Portfile
    index c9bc917..544adc3 100644
    a b if {${subport} != ${name}} { 
    5353    foreach ver ${gcc_versions} {
    5454        set ver_no_dot [join [split ${ver} "."] ""]
    5555
    56         variant gcc${ver_no_dot} description {build with gfortran from gcc${ver_no_dot}} {}
     56        set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}" }
    5757
    5858        foreach over ${gcc_versions} {
    5959            if {${ver} == ${over}} {
    if {${subport} != ${name}} { 
    6161            }
    6262
    6363            set over_no_dot [join [split ${over} "."] ""]
    64             variant gcc${ver_no_dot} conflicts gcc${over_no_dot} {}
     64            append variant_line " conflicts gcc${over_no_dot}"
    6565        }
     66        append variant_line { {}}
     67
     68        eval $variant_line
    6669
    6770        if {[variant_isset gcc${ver_no_dot}]} {
    6871            if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
    if {${subport} != ${name}} { 
    7982        set ver_no_dot [join [split ${ver} "."] ""]
    8083
    8184        if {[variant_isset gcc${ver_no_dot}]} {
    82             depends_lib-append port:libgcc
     85            depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
    8386            depends_build-append port:gcc${ver_no_dot}
    8487
    8588            configure.fc  ${prefix}/bin/gfortran-mp-${ver}