<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/724d9ac335c8f58ac0966b9b000e1ad542b865ea">https://github.com/macports/macports-ports/commit/724d9ac335c8f58ac0966b9b000e1ad542b865ea</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 724d9ac335c8f58ac0966b9b000e1ad542b865ea
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Fri Aug 18 08:04:00 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> gtk4: only build/run tests, via variant tests
</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/67977
</span>---
gnome/gtk4/Portfile | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gtk4/Portfile b/gnome/gtk4/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5ce252c523f..49cc0221020 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gtk4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gtk4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -108,6 +108,7 @@ compiler.c_standard 2011
</span> configure.args-append \
-Dbuild-examples=false \
-Dbuild-tests=false \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dbuild-testsuite=false \
</span> -Dgtk_doc=false \
-Dintrospection=enabled \
-Dman-pages=true \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -177,8 +178,17 @@ if {![variant_isset quartz]} {
</span> }
variant tests description "build tests" {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_test-append port:py${python_version}-gobject3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # NB. Most of the tests fail if gtk4 has already been installed before running them
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-replace -Dbuild-tests=false -Dbuild-tests=true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -Dbuild-tests=false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dbuild-tests=true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -Dbuild-testsuite=false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dbuild-testsuite=true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</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 meson
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.target test
</span> }
platform darwin 8 {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -187,11 +197,6 @@ platform darwin 8 {
</span> destroot.env-append "DYLD_LIBRARY_PATH=${build_dir}/${gname}"
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_test-append port:py${python_version}-gobject3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.run yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.cmd meson
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-test.target test
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> livecheck.type gnome
livecheck.name ${gname}
livecheck.regex "LATEST-IS-(${port_ver_major}\\.\\d*\[02468\](?:\\.\\d+)*)"
</pre><pre style='margin:0'>
</pre>