<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/17b9f03d186eeba36707369cfc8d1385503f5bcd">https://github.com/macports/macports-ports/commit/17b9f03d186eeba36707369cfc8d1385503f5bcd</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 17b9f03d186eeba36707369cfc8d1385503f5bcd
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Fri Jun 16 09:30:51 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> ghc-ppc-bootstrap: add gcc variants to sync with ghc-bootstrap
</span>---
lang/ghc-ppc-bootstrap/Portfile | 35 +++++++++++++++++++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/ghc-ppc-bootstrap/Portfile b/lang/ghc-ppc-bootstrap/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f26bf8ebb3a..96bb63536c7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/ghc-ppc-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/ghc-ppc-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortSystem 1.0
</span> name ghc-ppc-bootstrap
set canonicalname ghc
version 7.0.4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories lang haskell
maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
license BSD
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,7 +14,7 @@ universal_variant no
</span> installs_libs no
description The Glorious Glasgow Haskell Compilation System
<span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description This is a package that installs a binary bootstrap ghc compiler.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description This is a package that installs a binary bootstrap GHC compiler.
</span>
homepage https://haskell.org/${canonicalname}
master_sites https://downloads.haskell.org/ghc/7.0.4/krabby/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,6 +29,37 @@ depends_extract port:xar
</span>
worksrcdir ${canonicalname}-${version}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# BEGIN gcc variants
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Newer gcc does not build ghc-bootstrap, so no point making variants here as well.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant gcc7 conflicts gcc6 gcc49 gcc48 gcc42 description {Compile with gcc 7} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.compiler macports-gcc-7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append port:gcc7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant gcc6 conflicts gcc7 gcc49 gcc48 gcc42 description {Compile with gcc 6} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.compiler macports-gcc-6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append port:gcc6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant gcc49 conflicts gcc7 gcc6 gcc48 gcc42 description {Compile with gcc 4.9} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.compiler macports-gcc-4.9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append port:gcc49
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant gcc48 conflicts gcc7 gcc6 gcc49 gcc42 description {Compile with gcc 4.8} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.compiler macports-gcc-4.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append port:gcc48
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant gcc42 conflicts gcc7 gcc6 gcc49 gcc48 description {Compile with Xcode gcc 4.2} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.compiler gcc-4.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset gcc7] && ![variant_isset gcc6] && ![variant_isset gcc49] && ![variant_isset gcc48] & ![variant_isset gcc42]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +gcc42
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# END gcc variants
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> extract {
system -W ${workpath} "mkdir -p ${worksrcpath}/pkg"
system -W ${workpath} "mkdir -p ${worksrcpath}/files"
</pre><pre style='margin:0'>
</pre>