<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5f356e17c53883da0f7ad2c8af3dfeb3d1b561fa">https://github.com/macports/macports-ports/commit/5f356e17c53883da0f7ad2c8af3dfeb3d1b561fa</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 5f356e1 compilers PG: clean up logic in gcc loop
</span>5f356e1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 5f356e17c53883da0f7ad2c8af3dfeb3d1b561fa
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Fri May 1 12:15:15 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> compilers PG: clean up logic in gcc loop
</span>---
_resources/port1.0/group/compilers-1.0.tcl | 59 ++++++++++++++----------------
1 file changed, 28 insertions(+), 31 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/compilers-1.0.tcl b/_resources/port1.0/group/compilers-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 1117c68..46546b9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/compilers-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/compilers-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -81,40 +81,37 @@ if {${os.major} < 10} {
</span> set compilers.list {cc cxx cpp objc fc f77 f90}
# build database of gcc compiler attributes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set gcc_versions {44 45 46 47 48 49 5 6 7 8 9}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-foreach v ${gcc_versions} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # if the string is more than one character insert a '.' into it: e.g 49 -> 4.9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set compiler_version $v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[string length $v] > 1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set compiler_version [string index $v 0].[string index $v 1]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend compilers.gcc_variants gcc$v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,variant) gcc$v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,compiler) macports-gcc-$compiler_version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,descrip) "MacPorts gcc $compiler_version"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,depends) port:gcc$v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[vercmp ${compiler_version} 4.6] < 0} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,dependsl) "path:lib/libgcc/libgcc_s.1.dylib:libgcc port:libgcc7 port:libgcc6 port:libgcc45"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[vercmp ${compiler_version} 7] < 0} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,dependsl) "path:lib/libgcc/libgcc_s.1.dylib:libgcc port:libgcc7 port:libgcc6"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[vercmp ${compiler_version} 8] < 0} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,dependsl) "path:lib/libgcc/libgcc_s.1.dylib:libgcc port:libgcc7"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set gcc_versions {4.4 4.5 4.6 4.7 4.8 4.9 5 6 7 8 9}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach ver ${gcc_versions} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Remove dot from version if present
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ver_nodot [string map {. {}} ${ver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend compilers.gcc_variants gcc$ver_nodot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,variant) gcc$ver_nodot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,compiler) macports-gcc-$ver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,descrip) "MacPorts gcc $ver"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,depends) port:gcc$ver_nodot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[vercmp ${ver} 4.6] < 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,dependsl) "path:lib/libgcc/libgcc_s.1.dylib:libgcc port:libgcc7 port:libgcc6 port:libgcc45"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[vercmp ${ver} 7] < 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,dependsl) "path:lib/libgcc/libgcc_s.1.dylib:libgcc port:libgcc7 port:libgcc6"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[vercmp ${ver} 8] < 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,dependsl) "path:lib/libgcc/libgcc_s.1.dylib:libgcc port:libgcc7"
</span> } else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,dependsl) "path:lib/libgcc/libgcc_s.1.dylib:libgcc"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,dependsl) "path:lib/libgcc/libgcc_s.1.dylib:libgcc"
</span> }
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,libfortran) ${prefix}/lib/gcc$v/libgfortran.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,libfortran) ${prefix}/lib/gcc$ver_nodot/libgfortran.dylib
</span> # note: above is ultimately a symlink to ${prefix}/lib/libgcc/libgfortran.3.dylib
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,dependsd) port:g95
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,dependsa) gcc$v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,conflict) "gfortran g95"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,cc) ${prefix}/bin/gcc-mp-$compiler_version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,cxx) ${prefix}/bin/g++-mp-$compiler_version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,cpp) ${prefix}/bin/cpp-mp-$compiler_version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,objc) ${prefix}/bin/gcc-mp-$compiler_version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,fc) ${prefix}/bin/gfortran-mp-$compiler_version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,f77) ${prefix}/bin/gfortran-mp-$compiler_version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,f90) ${prefix}/bin/gfortran-mp-$compiler_version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set cdb(gcc$v,cxx_stdlib) libstdc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,dependsd) port:g95
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,dependsa) gcc$ver_nodot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,conflict) "gfortran g95"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,cc) ${prefix}/bin/gcc-mp-$ver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,cxx) ${prefix}/bin/g++-mp-$ver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,cpp) ${prefix}/bin/cpp-mp-$ver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,objc) ${prefix}/bin/gcc-mp-$ver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,fc) ${prefix}/bin/gfortran-mp-$ver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,f77) ${prefix}/bin/gfortran-mp-$ver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,f90) ${prefix}/bin/gfortran-mp-$ver
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cdb(gcc$ver_nodot,cxx_stdlib) libstdc++
</span> }
set clang_versions {3.3 3.4 3.7 5.0 6.0 7.0 8.0 9.0 10}
</pre><pre style='margin:0'>
</pre>