guix-patches
[Top][All Lists]
Advanced

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

[bug#75146] [PATCH v4 43/68] gnu: mousepad: Switch to git source.


From: iyzsong
Subject: [bug#75146] [PATCH v4 43/68] gnu: mousepad: Switch to git source.
Date: Tue, 31 Dec 2024 14:44:13 +0800

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

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

Change-Id: Ia5359c701995e7c76236bbc786da5da46acb3476
---
 gnu/packages/xfce.scm | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index 0a9539a71d..fca4ed8435 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -1552,17 +1552,19 @@ (define-public mousepad
   (package
     (name "mousepad")
     (version "0.6.3")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "https://archive.xfce.org/src/apps/mousepad/";
-                                  (version-major+minor version) "/mousepad-"
-                                  version ".tar.bz2"))
-              (sha256
-               (base32
-                "1f99p6f0pw17xs87cph0n07a5yz4zhnsrhl2kjmi907ihp0n5w9g"))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url (string-append "https://gitlab.xfce.org/apps/"; name))
+             (commit (string-append name "-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1pchp4jdy7xfgb0bk4pv06bphs6lmf1lr3ykyq2f351s5wqp2nrg"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:configure-flags '(;; Use the GSettings keyfile backend rather than
+     '(#:configure-flags '("--enable-maintainer-mode" ;for mousepad-marshal.c
+                           ;; Use the GSettings keyfile backend rather than
                            ;; DConf.
                            "--enable-keyfile-settings")
        #:phases
@@ -1576,12 +1578,10 @@ (define-public mousepad
                 `("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
                                                               
"/share"))))))))))
     (native-inputs
-     (list intltool
-           `(,glib "bin") ; for glib-compile-schemas.
-           pkg-config))
+     (list xfce4-dev-tools))
     (inputs
      (list bash-minimal gspell gtksourceview-4 libxfce4ui xfconf))
-    (home-page "https://git.xfce.org/apps/mousepad/";)
+    (home-page "https://docs.xfce.org/apps/mousepad/";)
     (synopsis "Simple text editor for Xfce")
     (description
      "Mousepad is a graphical text editor for Xfce based on Leafpad.")
-- 
2.46.0






reply via email to

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