<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/91a7c0a27ba8f08273e0509b340a37b24c298ded">https://github.com/macports/macports-ports/commit/91a7c0a27ba8f08273e0509b340a37b24c298ded</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 91a7c0a27ba svn2git: Add -std=gnu++11 on 10.8 and 10.9
</span>91a7c0a27ba is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 91a7c0a27ba8f08273e0509b340a37b24c298ded
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Jul 3 05:28:38 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> svn2git: Add -std=gnu++11 on 10.8 and 10.9
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/60769
</span>---
devel/svn2git/Portfile | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/svn2git/Portfile b/devel/svn2git/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8bf0e2269c8..899f908b6a8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/svn2git/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/svn2git/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,11 +34,18 @@ post-patch {
</span> reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile-Install
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# error: Qt requires a C++11 compiler and yours does not seem to be that.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.cxx_standard \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} ne "darwin" || ${os.major} > 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Qt 5.7 and later require C++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.cxx_standard \
</span> 2011
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cxxflags-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -std=c++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} eq "darwin" && ${os.major} < 14} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # It seems that newer versions of Qt add this automatically but
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # for older versions we have to add it.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ qt5.cxxflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -std=gnu++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
configure.args-append \
APR_INCLUDE=${prefix}/include/apr-1 \
</pre><pre style='margin:0'>
</pre>