<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/910aad8de346fb4b9726b8ea5a699216e2f8ddc3">https://github.com/macports/macports-ports/commit/910aad8de346fb4b9726b8ea5a699216e2f8ddc3</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 910aad8de346fb4b9726b8ea5a699216e2f8ddc3
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Mon Jun 10 07:51:05 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> libadwaita: new port in gnome
</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/69589
</span>---
gnome/libadwaita/Portfile | 49 ++++++++++++++++++++++
.../files/patch-fix-adw-settings-impl-macos.diff | 44 +++++++++++++++++++
2 files changed, 93 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/libadwaita/Portfile b/gnome/libadwaita/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1e7d5349fc4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/libadwaita/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,49 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup meson 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name libadwaita
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.5.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories gnome devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LGPL-2.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Building blocks for modern GNOME applications
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.gnome.org
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set branch [join [lrange [split ${version} .] 0 1] .]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites gnome:sources/${name}/${branch}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_xz yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 77df2ee32a29849b6d975b833b811509db051123 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 7f144c5887d6dd2d99517c00fd42395ee20abc13ce55958a4fda64e6d7e473f8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 4453888
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+meson.wrap_mode nodownload
</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;'>+ port:gettext \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:bin/pkg-config:pkgconfig \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:sassc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:bin/vala:vala
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:appstream \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/cairo.pc:cairo \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:fribidi \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gettext-runtime \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/glib-2.0.pc:glib2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:graphene \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/gtk4.pc:gtk4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# adw-settings-impl-macos.c: error: stray '@' in program
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Use this code where it is actually needed.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-fix-adw-settings-impl-macos.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# cc1: error: unrecognized command line option "-std=gnu11"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.c_standard 2011
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/libadwaita/files/patch-fix-adw-settings-impl-macos.diff b/gnome/libadwaita/files/patch-fix-adw-settings-impl-macos.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5962f3dcf57
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/libadwaita/files/patch-fix-adw-settings-impl-macos.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,44 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/adw-settings-impl-macos.c 2024-05-24 13:03:30.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/adw-settings-impl-macos.c 2024-06-10 07:43:01.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -8,6 +8,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "adw-settings-impl-private.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <AppKit/AppKit.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct _AdwSettingsImplMacOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -41,6 +42,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static AdwSystemColorScheme
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ get_ns_color_scheme (void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (@available(*, macOS 10.14)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NSString *style = [userDefaults stringForKey:@"AppleInterfaceStyle"];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -61,7 +63,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADW_SYSTEM_COLOR_SCHEME_PREFER_DARK :
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ADW_SYSTEM_COLOR_SCHEME_DEFAULT;
</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;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ADW_SYSTEM_COLOR_SCHEME_DEFAULT;
</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;'>+@@ -90,7 +92,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!enable_color_scheme)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ADW_SETTINGS_IMPL (self);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (@available(*, macOS 10.14)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static ThemeChangedObserver *observer;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -108,6 +110,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* has_color_scheme */ TRUE,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* has_high_contrast */ FALSE);
</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;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ADW_SETTINGS_IMPL (self);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span></pre><pre style='margin:0'>
</pre>