git: 8da09b2aef47 - main - x11-themes/adwaita-icon-theme-legacy: Apply the same fix as for the non-legacy version

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Tue, 10 Jun 2025 15:14:19 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8da09b2aef47a44cd3667d681ed930cc0d5c5531

commit 8da09b2aef47a44cd3667d681ed930cc0d5c5531
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-06-10 14:59:33 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-06-10 15:14:05 +0000

    x11-themes/adwaita-icon-theme-legacy: Apply the same fix as for the non-legacy version
    
    Fixes:  71ef76454bec21998a50ba037ddd69a483251767
---
 .../adwaita-icon-theme-legacy/files/patch-meson.build   | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/x11-themes/adwaita-icon-theme-legacy/files/patch-meson.build b/x11-themes/adwaita-icon-theme-legacy/files/patch-meson.build
index 6f52d467a76d..92f966ddc519 100644
--- a/x11-themes/adwaita-icon-theme-legacy/files/patch-meson.build
+++ b/x11-themes/adwaita-icon-theme-legacy/files/patch-meson.build
@@ -8,3 +8,20 @@
  )
  
  licenses_dir = get_option('datadir') / 'licenses' / 'adwaita-icon-theme'
+@@ -20,16 +21,4 @@ install_subdir(
+   install_dir: adwaita_dir,
+   strip_directory : true,
+   install_tag : 'runtime',
+-)
+-
+-gtk_update_icon_cache = find_program(
+-  'gtk4-update-icon-cache',
+-  'gtk-update-icon-cache',
+-  required : true,
+-)
+-meson.add_install_script(
+-  gtk_update_icon_cache,
+-  '-qtf',
+-  get_option('prefix') / adwaita_dir,
+-  skip_if_destdir: true,
+ )