Subject: [bug#74989] [PATCH 08/23] gnu: tumbler: Update 4.20.0.

From: [email-masked]
Date: Fri, 20 Dec 2024 11:56:39 +0800

From: 宋文武 <[email-masked]>

* gnu/packages/xfce.scm (tumbler): Update to 4.20.0.
[native-inputs]: Remove dbus-glib.
[arguments]: Add 'patch-configure phase for 'gdbus-codegen'.

Change-Id: Ie661eae35d935c1e05952d7d5c20872be3ca492f
---
 gnu/packages/xfce.scm | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index 5619f2767c..e86341fef9 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -366,7 +366,7 @@ (define-public garcon
 (define-public tumbler
   (package
     (name "tumbler")
-    (version "4.18.2")
+    (version "4.20.0")
     (source (origin
               (method url-fetch)
               (uri (string-append "https://archive.xfce.org/src/xfce/"
@@ -374,12 +374,20 @@ (define-public tumbler
                                   "tumbler-" version ".tar.bz2"))
               (sha256
                (base32
-                "0ymy6a0hbv5iainphgpd7dfi8snpg7zs7lyqq2cgiiza6p3fwc5m"))))
+                "102qwa8an7wdqf0hrqd5k51aiib3zww0iizsigllfrcjamyn9cbl"))))
     (build-system gnu-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'configure 'patch-configure
+                 (lambda _
+                   (substitute* "configure"
+                     ;; XDG_CHECK_PACKAGE_BINARY requires an absolute path.
+                     (("\\$PKG_CONFIG --variable=gdbus_codegen gio-2.0")
+                      "type -p gdbus-codegen")))))))
     (native-inputs
      (list pkg-config intltool
-           `(,glib "bin") ; need glib-genmarshal
-           dbus-glib))       ; need dbus-binding-tool
+           `(,glib "bin")))       ; need glib-genmarshal and gdbus-codegen
     (propagated-inputs
      (list glib))                 ; required by tumbler-1.pc
     (inputs
-- 
2.46.0