Subject: [bug#75146] [PATCH v4 55/68] gnu: xfce4-mailwatch-plugin: Update to 1.3.2.

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

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

* gnu/packages/xfce.scm (xfce4-mailwatch-plugin): Update to 1.3.2.
[native-inputs]: Add xfce4-dev-tools.
[inputs]: Add gnutls.
[home-page]: Set to docs.xfce.org.
[license]: Set to gpl2+.

Change-Id: Ibd49182530730030e00187a5dde62b3985e407ef
---
 gnu/packages/xfce.scm | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index a7a7a184b2..5e536420b2 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -72,6 +72,7 @@ (define-module (gnu packages xfce)
   #:use-module (gnu packages serialization)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages textutils)
+  #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages web)
   #:use-module (gnu packages wm)
@@ -1899,24 +1900,24 @@ (define-public xfce4-genmon-plugin
 
 (define-public xfce4-mailwatch-plugin
   (package
-   (name "xfce4-mailwatch-plugin")
-   (version "1.3.1")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "https://archive.xfce.org/src/panel-plugins/"
-                                  "xfce4-mailwatch-plugin/"
-                                  (version-major+minor version)
-                                  "/xfce4-mailwatch-plugin-" version ".tar.bz2"))
-              (sha256
-               (base32
-                "0sh402c7v3sa9nqz8dd2gfn7ml01xbhir680ci46i9jczvln8j85"))))
+    (name "xfce4-mailwatch-plugin")
+    (version "1.3.2")
+    (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 "0dad2nl8y5v2y4xcp1lp51s0n1yb7v706igs5w2xrfsp7gp19d98"))))
     (build-system gnu-build-system)
     (native-inputs
-     (list intltool pkg-config))
+     (list xfce4-dev-tools))
     (inputs
-     (list gtk+-2 libxfce4ui exo xfce4-panel))
-    (home-page
-     "https://goodies.xfce.org/projects/panel-plugins/xfce4-mailwatch-plugin")
+     (list exo gnutls libxfce4ui xfce4-panel))
+    (home-page "https://docs.xfce.org/panel-plugins/xfce4-mailwatch-plugin/")
     (synopsis "Mail watch plugin for the Xfce panel")
     (description "The Xfce4 Mailwatch Plugin is a multi-protocol,
 multi-mailbox mail watcher.  Currently, the protocols supported are:
@@ -1929,7 +1930,7 @@ (define-public xfce4-mailwatch-plugin
 @item MH-Maildir mail spool (local)
 @item Google Mail (GMail) mailbox (remote) (requires gnutls)
 @end itemize")
-    (license gpl2)))
+    (license gpl2+)))
 
 (define-public xfce4-mpc-plugin
   (package
-- 
2.46.0