<pre style='margin:0'>
Vadym-Valdis Yudaiev (judaew) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c05fb0f4702c5cd96ec646ba6d5483a4122f6408">https://github.com/macports/macports-ports/commit/c05fb0f4702c5cd96ec646ba6d5483a4122f6408</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit c05fb0f4702c5cd96ec646ba6d5483a4122f6408
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Tue Jul 18 12:40:18 2023 -0400

<span style='display:block; white-space:pre;color:#404040;'>    spdlog: add variant tests; set cmake build type; reduce warnings
</span><span style='display:block; white-space:pre;color:#404040;'>    - Don't build examples, which aren't installed (and cause build errors in some cases)
</span>---
 devel/spdlog/Portfile | 39 ++++++++++++++++++++++++++++++++++++---
 1 file changed, 36 insertions(+), 3 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/spdlog/Portfile b/devel/spdlog/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1b05f331ab0..077c65300f0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/spdlog/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/spdlog/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup           cmake 1.1
</span> 
 github.setup        gabime spdlog 1.12.0 v
 github.tarball_from archive
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            2
</span> conflicts           spdlog0
 categories          devel
 license             MIT
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,8 +24,28 @@ checksums           rmd160  06bfcd66f06a9eea8544edfa81df85cf1f71ac08 \
</span> compiler.cxx_standard   2011
 compiler.thread_local_storage yes
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Clear optflags; controlled by project, via cmake build type
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.optflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset debug]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    cmake.build_type Debug
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    cmake.build_type RelWithDebInfo
</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 { [string match *clang* ${configure.compiler}] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Quiet warnings
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.cxxflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -Wno-macro-redefined \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -Wno-error=unknown-warning-option \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -Wno-unknown-warning-option
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                    -DSPDLOG_BUILD_SHARED=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DSPDLOG_BUILD_EXAMPLE=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DSPDLOG_FMT_EXTERNAL=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DSPDLOG_BUILD_SHARED=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DSPDLOG_BUILD_TESTS=OFF
</span> 
 variant fmt_external description {Use external fmt library instead of bundled} {
     patchfiles-append \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,8 +54,21 @@ variant fmt_external description {Use external fmt library instead of bundled} {
</span>                     ${prefix}/lib/libfmt10/cmake
     depends_lib-append \
                     port:libfmt10
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DSPDLOG_FMT_EXTERNAL=OFF \
</span>                     -DSPDLOG_FMT_EXTERNAL=ON
 }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant tests description {Enable test support} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    test.run        yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    path:bin/git:git \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DSPDLOG_BUILD_TESTS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -DSPDLOG_BUILD_TESTS=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> default_variants +fmt_external
</pre><pre style='margin:0'>

</pre>