guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#75146] [PATCH v4 21/68] gnu: xfce4-settings: Switch to git source.


From: iyzsong
Subject: [bug#75146] [PATCH v4 21/68] gnu: xfce4-settings: Switch to git source.
Date: Tue, 31 Dec 2024 14:43:51 +0800

From: 宋文武 <iyzsong@member.fsf.org>

* gnu/packages/xfce.scm (xfce4-settings)[source]: Switch to git-fetch.
[arguments]: Add "--enable-maintainer-mode" to configure-flags.
Remove 'patch-configure phase.
[native-inputs]: Add xfce4-dev-tools.
[inputs]: Add wlr-protocols.
[home-page]: Set to docs.xfce.org.

Change-Id: I1646b8b93003406ec330be5524a4643d2de65109
---
 gnu/packages/xfce.scm | 37 ++++++++++++++++---------------------
 1 file changed, 16 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index 235c4e69a8..52124d1d82 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -733,32 +733,26 @@ (define-public xfce4-settings
   (package
     (name "xfce4-settings")
     (version "4.20.0")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "https://archive.xfce.org/src/xfce/";
-                                  name "/" (version-major+minor version) "/"
-                                  name "-" version ".tar.bz2"))
-              (sha256
-               (base32
-                "1ag5pimprxc12zgdbs27vngin97fc6l9ig7xzc0naacs8aiqsm13"))
-              (patches (search-patches "xfce4-settings-defaults.patch"))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url (string-append "https://gitlab.xfce.org/xfce/"; name))
+             (commit (string-append name "-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1xv8fcrrk54r6naxhwj9ff8f1q9g08fh0ailazvbmi1jww12xwyi"))
+       (patches (search-patches "xfce4-settings-defaults.patch"))))
     (build-system gnu-build-system)
     (arguments
      (list #:configure-flags
-           #~(list "--enable-pluggable-dialogs"
+           #~(list "--enable-maintainer-mode" ;for appearance-dialog_ui.h
+                   "--enable-pluggable-dialogs"
                    "--enable-sound-settings"
                    "--enable-upower-glib"
-                   "--enable-xrandr")
-           #: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")))))))
+                   "--enable-xrandr")))
     (native-inputs
-     (list (list glib "bin") pkg-config intltool))
+     (list xfce4-dev-tools))
     (inputs
      (list colord
            exo
@@ -772,12 +766,13 @@ (define-public xfce4-settings
            libxfce4ui
            upower
            python ;; for xfce4-compose-mail
+           wlr-protocols
            xf86-input-libinput))
     (propagated-inputs
      ;; Some operations, such as changing icon themes, require these schemas
      ;; to be in the search path.
      (list gsettings-desktop-schemas))
-    (home-page "https://www.xfce.org/";)
+    (home-page "https://docs.xfce.org/xfce/xfce4-settings/";)
     (synopsis "Xfce settings manager")
     (description
      "Settings manager for Xfce, it can control various aspects of the desktop
-- 
2.46.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]