Changes between Version 75 and Version 76 of PortfileRecipes


Ignore:
Timestamp:
Aug 27, 2013, 7:47:19 PM (11 years ago)
Author:
jeremyhu (Jeremy Huddleston Sequoia)
Comment:

Update fortran recipe to honor conflicts

Legend:

Unmodified
Added
Removed
Modified
  • PortfileRecipes

    v75 v76  
    473473set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
    474474set default_fortran_variant +gcc48
     475set g95_conflicts {}
    475476
    476477foreach ver ${gcc_versions} {
    477478    set ver_no_dot [join [split ${ver} "."] ""]
    478479
    479     variant gcc${ver_no_dot} description {build with gfortran from gcc${ver_no_dot}} {}
    480 
    481     variant gcc${ver_no_dot} conflicts g95 {}
    482     variant g95 conflicts gcc${ver_no_dot} {}
     480    set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}" conflicts g95}
    483481
    484482    foreach over ${gcc_versions} {
     
    488486
    489487        set over_no_dot [join [split ${over} "."] ""]
    490         variant gcc${ver_no_dot} conflicts gcc${over_no_dot} {}
    491     }
     488        append variant_line " conflicts gcc${over_no_dot}"
     489    }
     490    append variant_line { {}}
     491
     492    eval $variant_line
     493
     494    append g95_conflicts " conflicts gcc${ver_no_dot}"
    492495
    493496    if {[variant_isset gcc${ver_no_dot}]} {
     
    498501}
    499502
    500 variant g95 description {build with g95} {}
     503eval [concat {variant g95 description {build with g95}} $g95_conflicts {{}}]
    501504
    502505if {[variant_isset g95]} {