Subject: [bug#75146] [PATCH v4 68/68] gnu: xfce4-weather-plugin: Switch to git source.

From: [email-masked]
Date: Tue, 31 Dec 2024 14:44:38 +0800

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

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

Change-Id: I72bcdab8f58401347a2993172f07237082e0e80a
---
 gnu/packages/xfce.scm | 31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index d05c63be98..2f6041cc9b 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -2280,24 +2280,27 @@ (define-public xfce4-wavelan-plugin
 
 (define-public xfce4-weather-plugin
   (package
-   (name "xfce4-weather-plugin")
-   (version "0.11.3")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "https://archive.xfce.org/src/panel-plugins/"
-                                  "xfce4-weather-plugin/"
-                                  (version-major+minor version)
-                                  "/xfce4-weather-plugin-" version ".tar.bz2"))
-              (sha256
-               (base32
-                "0mywq00xs0rvdp3kd7kmcv2brpzixz65ijzk2ahg7lh677k1yb80"))))
+    (name "xfce4-weather-plugin")
+    (version "0.11.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url (string-append "https://gitlab.xfce.org/panel-plugins/"
+                                 name))
+             (commit (string-append name "-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1cxv5p1472vgy2nks9145m8yajsxrc1a83pmqpmnmvpyyandbdml"))))
     (build-system gnu-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list "--enable-maintainer-mode"))) ;for weather-config_ui.h
     (native-inputs
-     (list intltool pkg-config))
+     (list xfce4-dev-tools))
     (inputs
      (list gtk+ json-c libsoup-minimal-2 libxfce4ui libxml2 xfce4-panel))
-    (home-page
-     "https://goodies.xfce.org/projects/panel-plugins/xfce4-weather-plugin")
+    (home-page "https://docs.xfce.org/panel-plugins/xfce4-weather-plugin/")
     (synopsis "Show information about local weather in the Xfce panel")
     (description "This Xfce panel plugin shows information about your
 local weather in the panel, using forecast data provided by the
-- 
2.46.0