<pre style='margin:0'>
David B. Evans (dbevans) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/05c5bacc7096fc8f63bf0573e21fcab378a68314">https://github.com/macports/macports-ports/commit/05c5bacc7096fc8f63bf0573e21fcab378a68314</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 05c5bacc7096fc8f63bf0573e21fcab378a68314
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Wed Aug 22 07:46:11 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> libphonenumber-cpp: fix build against protobuf3-cpp
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> as of 3.6.0, protobuf3-cpp requires c++11
</span><span style='display:block; white-space:pre;color:#404040;'> force build always with protobuf3-cpp
</span><span style='display:block; white-space:pre;color:#404040;'> add -std=c++11 to cxxflags
</span>---
devel/libphonenumber-cpp/Portfile | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libphonenumber-cpp/Portfile b/devel/libphonenumber-cpp/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 43b4591..7b42ef7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libphonenumber-cpp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libphonenumber-cpp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,7 @@ PortGroup github 1.0
</span>
github.setup googlei18n libphonenumber 8.9.11 v
name libphonenumber-cpp
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> license Apache-2
description Google's C++ library for parsing, formatting, storing \
and validating international phone numbers.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,16 +46,19 @@ depends_build-append \
</span> port:pkgconfig
depends_lib-append port:boost \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:icu
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# enable build with either protobuf-cpp or, preferably, protobuf3-cpp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib-append path:${prefix}/lib/libprotobuf.dylib:protobuf3-cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:icu \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:protobuf3-cpp
</span>
configure.args-append \
-DGTEST_SOURCE_DIR=${gtest_srcdir} \
-DGTEST_INCLUDE_DIR=${gtest_srcdir}/include
platform darwin {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # as of 3.6.0, protobuf3-cpp requires c++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cxxflags-append -std=c++11
</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;'>+platform darwin {
</span> if {${configure.cxx_stdlib} eq "libc++"} {
configure.args-append \
-DUSE_STD_MAP=ON
</pre><pre style='margin:0'>
</pre>