<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/08c7fb67ad9696b68669b7dd137fe3c670d93407">https://github.com/macports/macports-ports/commit/08c7fb67ad9696b68669b7dd137fe3c670d93407</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 08c7fb6  atom: fix build on macOS 10.14
</span>08c7fb6 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 08c7fb67ad9696b68669b7dd137fe3c670d93407
</span>Author: Michael Lass <michael.lass@uni-paderborn.de>
AuthorDate: Fri Oct 5 23:32:16 2018 +0200

<span style='display:block; white-space:pre;color:#404040;'>    atom: fix build on macOS 10.14
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    libstdc++ was removed and we need to make sure that modules are built
</span><span style='display:block; white-space:pre;color:#404040;'>    against libc++. We can do so by setting macOS 10.9 as minimum target in
</span><span style='display:block; white-space:pre;color:#404040;'>    CFLAGS, CXXFLAGS and LDFLAGS.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    While here, it may be a good idea to export these variables always with
</span><span style='display:block; white-space:pre;color:#404040;'>    macports' default values.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Fixes https://trac.macports.org/ticket/57243
</span>---
 editors/atom/Portfile | 12 ++++++++++++
 1 file changed, 12 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/atom/Portfile b/editors/atom/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 08cf9d6..4293213 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/editors/atom/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/atom/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,6 +29,18 @@ build.cmd           script/build
</span> build.env-append    CC="${configure.cc} [get_canonical_archflags cc]" \
                     CXX="${configure.cxx} [get_canonical_archflags cxx]" \
                     PYTHON="${prefix}/bin/python2.7"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} > 17} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Make sure the compiler builds against libc++ for macOS 10.14 and newer (#57243)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    build.env-append    CFLAGS="${configure.cflags} -mmacosx-version-min=10.9" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        CXXFLAGS="${configure.cxxflags} -mmacosx-version-min=10.9" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        LDFLAGS="${configure.ldflags} -mmacosx-version-min=10.9"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    build.env-append    CFLAGS="${configure.cflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        CXXFLAGS="${configure.cxxflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        LDFLAGS="${configure.ldflags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> build.target-delete all
 
 universal_variant   no
</pre><pre style='margin:0'>

</pre>