<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/fb058b78cd6f383a43176b800132ea899a171f42">https://github.com/macports/macports-ports/commit/fb058b78cd6f383a43176b800132ea899a171f42</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 fb058b78cd6 i2pd: add tests variant, fix build on 10.13–10.14
</span>fb058b78cd6 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fb058b78cd6f383a43176b800132ea899a171f42
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Mon Jan 16 07:28:46 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> i2pd: add tests variant, fix build on 10.13–10.14
</span>---
security/i2pd/Portfile | 15 +++++++++++++++
1 file changed, 15 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/i2pd/Portfile b/security/i2pd/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 7fc14da7574..d34e17346cc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/i2pd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/i2pd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,6 +42,13 @@ cmake.source_dir ${worksrcpath}/build
</span> # Minimum required is C++11, C++17 used if supported.
compiler.cxx_standard 2011
<span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://github.com/PurpleI2P/i2pd/issues/1846
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} == 17 || ${os.major} == 18} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake.set_cxx_standard yes
</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;'>+
</span> # https://github.com/PurpleI2P/i2pd/issues/1798
compiler.blacklist-append \
{clang < 600}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -133,4 +140,12 @@ variant logrotate description "Logrotate configuration" {
</span> depends_run-append port:logrotate
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant tests description "Build and run tests" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_test port:check
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_TESTING=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.cmd ctest
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> default_variants +upnp +logrotate
</pre><pre style='margin:0'>
</pre>