diff mbox series

[meta-oe,13/55] adw-gtk3: upgrade 5.10 -> 6.5

Message ID 20261125080732.2419614-19-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-multimedia] clightd: Port ALS sensor to libiio 1.0 | expand

Commit Message

Khem Raj Nov. 25, 2026, 8:06 a.m. UTC
- 6.0 brings message dialogs closer to libadwaita, makes libhandy
  viewswitcher buttons look like normal buttons and tweaks colors
- Later releases adopt libadwaita's classic notebook style, adjust
  titlebuttons and OSD/column header styling and add focus-ring
  transitions
- 6.4: the GTK4 theme requires GTK 4.20 or later, since it uses CSS
  @media queries for the dark variant
- 6.5 targets GNOME 50 and replaces deprecated sass usage

Since 6.0 the theme is built with Dart Sass, which OE does not provide,
and its SCSS no longer compiles with sassc. Install the CSS from the
upstream release tarball instead and add an upstream check for the
releases.

License-Update: the release tarball has no LICENSE file; use the common LGPL-2.1-only text
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../gnome-themes/adw-gtk3_5.10.bb             | 15 ------------
 .../gnome-themes/adw-gtk3_6.5.bb              | 24 +++++++++++++++++++
 2 files changed, 24 insertions(+), 15 deletions(-)
 delete mode 100644 meta-oe/recipes-gnome/gnome-themes/adw-gtk3_5.10.bb
 create mode 100644 meta-oe/recipes-gnome/gnome-themes/adw-gtk3_6.5.bb
diff mbox series

Patch

diff --git a/meta-oe/recipes-gnome/gnome-themes/adw-gtk3_5.10.bb b/meta-oe/recipes-gnome/gnome-themes/adw-gtk3_5.10.bb
deleted file mode 100644
index 70da55c137..0000000000
--- a/meta-oe/recipes-gnome/gnome-themes/adw-gtk3_5.10.bb
+++ /dev/null
@@ -1,15 +0,0 @@ 
-SUMMARY = "An unofficial GTK3 port of libadwaita."
-HOMEPAGE = "http://github.com/lassekongo83/adw-gtk3"
-SECTION = "graphics"
-LICENSE = "LGPL-2.1-only"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742"
-
-DEPENDS = "sassc-native"
-
-inherit meson
-
-SRC_URI = "git://github.com/lassekongo83/adw-gtk3.git;protocol=https;branch=main;tag=v${PV}"
-
-SRCREV = "c2e74c9d2a5c3895b8025ac1d4b9e4cced71fbe9"
-
-FILES:${PN} = "${datadir}/themes"
diff --git a/meta-oe/recipes-gnome/gnome-themes/adw-gtk3_6.5.bb b/meta-oe/recipes-gnome/gnome-themes/adw-gtk3_6.5.bb
new file mode 100644
index 0000000000..1bbdd1abf9
--- /dev/null
+++ b/meta-oe/recipes-gnome/gnome-themes/adw-gtk3_6.5.bb
@@ -0,0 +1,24 @@ 
+SUMMARY = "An unofficial GTK3 port of libadwaita."
+HOMEPAGE = "https://github.com/lassekongo83/adw-gtk3"
+SECTION = "graphics"
+LICENSE = "LGPL-2.1-only"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1-only;md5=1a6d268fd218675ffea8be556788b780"
+
+# Building needs Dart Sass, which OE lacks, so install upstream's prebuilt CSS
+SRC_URI = "https://github.com/lassekongo83/adw-gtk3/releases/download/v${PV}/adw-gtk3v${PV}.tar.xz;subdir=${BP}"
+SRC_URI[sha256sum] = "a81780fadfc432be0fc3d89c4ebb41aa28e4f032d42c36f9789c57dd10cfa41c"
+
+UPSTREAM_CHECK_URI = "https://github.com/lassekongo83/adw-gtk3/releases"
+UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)"
+
+inherit allarch
+
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+do_install() {
+    install -d ${D}${datadir}/themes
+    cp -R --no-preserve=ownership ${S}/adw-gtk3 ${S}/adw-gtk3-dark ${D}${datadir}/themes/
+}
+
+FILES:${PN} = "${datadir}/themes"