[MacPorts] PortfileRecipes modified
MacPorts
noreply at macports.org
Tue Aug 27 12:47:19 PDT 2013
Page "PortfileRecipes" was changed by jeremyhu at macports.org
Diff URL: <https://trac.macports.org/wiki/PortfileRecipes?action=diff&version=76>
Revision 76
Comment: Update fortran recipe to honor conflicts
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: PortfileRecipes
=========================================================================
--- PortfileRecipes (version: 75)
+++ PortfileRecipes (version: 76)
@@ -472,14 +472,12 @@
{{{
set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
set default_fortran_variant +gcc48
+set g95_conflicts {}
foreach ver ${gcc_versions} {
set ver_no_dot [join [split ${ver} "."] ""]
- variant gcc${ver_no_dot} description {build with gfortran from gcc${ver_no_dot}} {}
-
- variant gcc${ver_no_dot} conflicts g95 {}
- variant g95 conflicts gcc${ver_no_dot} {}
+ set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}" conflicts g95}
foreach over ${gcc_versions} {
if {${ver} == ${over}} {
@@ -487,8 +485,13 @@
}
set over_no_dot [join [split ${over} "."] ""]
- variant gcc${ver_no_dot} conflicts gcc${over_no_dot} {}
- }
+ append variant_line " conflicts gcc${over_no_dot}"
+ }
+ append variant_line { {}}
+
+ eval $variant_line
+
+ append g95_conflicts " conflicts gcc${ver_no_dot}"
if {[variant_isset gcc${ver_no_dot}]} {
if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
@@ -497,7 +500,7 @@
}
}
-variant g95 description {build with g95} {}
+eval [concat {variant g95 description {build with g95}} $g95_conflicts {{}}]
if {[variant_isset g95]} {
if {${default_fortran_variant} != "+g95"} {
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/PortfileRecipes>
MacPorts <http://www.macports.org/>
Ports system for OS X
This is an automated message. Someone added your email address to be
notified of changes on 'PortfileRecipes' page.
If it was not you, please report to .
More information about the macports-changes
mailing list