guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.

commit e779d9cb3ab18feb93a914a48b1e654ba6009b0c
Author: Daniel Khodabakhsh <[email protected]>
AuthorDate: Sun Sep 28 00:40:48 2025 -0700

    gnu: ibus-minimal: Use git source.
    
    * gnu/packages/ibus.scm (ibus-minimal): Switch source from tar to git.
    [native-inputs]: Add autoconf, automake, and libtool.
    [phases]: Removed uneeded 'delete-generated-files' stage and moved 
'patch-python-target-directories' to after 'configure' is generated as well as 
added newlines to the end of its substitutions.
    
    Change-Id: I556ba19e4d98d896a21de61def7351db8e2ad9de
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 gnu/packages/ibus.scm | 51 +++++++++++++++++++++++----------------------------
 1 file changed, 23 insertions(+), 28 deletions(-)

diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index 015b4606db..9f28259c27 100644
--- a/gnu/packages/ibus.scm
+++ b/gnu/packages/ibus.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2024 Zheng Junjie <[email protected]>
 ;;; Copyright © 2024 Charles <[email protected]>
 ;;; Copyright © 2025 Kurome <[email protected]>
+;;; Copyright © 2025 Daniel Khodabakhsh <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -90,13 +91,12 @@
     (name "ibus")
     (version "1.5.29")
     (source (origin
-              (method url-fetch)
-              (uri (string-append "https://github.com/ibus/ibus/";
-                                  "releases/download/"
-                                  version "/ibus-" version ".tar.gz"))
-              (sha256
-               (base32
-                "0vjybn3xq5sz616fdy21f5c4b4ajrj4wmfnbjqz6584xw887yiaa"))))
+      (method git-fetch)
+      (uri (git-reference
+        (url "https://github.com/ibus/ibus";)
+        (commit version)))
+      (file-name (git-file-name name version))
+      (sha256 (base32 
"04f7h6k3vssklw4r4hpd07lxhqp8ki2fbipwfv3vgwig1li190bp"))))
     (build-system glib-or-gtk-build-system)
     (outputs '("out" "doc"))
     (arguments
@@ -135,30 +135,10 @@
                 (substitute* '("ibus-share.c" "ibus-compose.c"
                                "ibus-keypress.c")
                   (("[ \t]*return g_test_run \\(\\);") "")))))
-          (add-after 'unpack 'patch-python-target-directories
-            (lambda _
-              (let ((root (string-append #$output
-                                         "/lib/python"
-                                         #$(version-major+minor
-                                            (package-version python))
-                                         "/site-packages")))
-                (substitute* "configure"
-                  (("(py2?overridesdir)=.*" _ var)
-                   (string-append var "=" root "/gi/overrides/"))
-                  (("(pkgpython2dir=).*" _ var)
-                   (string-append var root "/ibus"))))))
           (add-before 'configure 'disable-dconf-update
             (lambda _
               (substitute* "data/dconf/Makefile.in"
                 (("dconf update") "echo dconf update"))))
-          (add-after 'unpack 'delete-generated-files
-            (lambda _
-              (for-each (lambda (file)
-                          (let ((c (string-append (string-drop-right file 4) 
"c")))
-                            (when (file-exists? c)
-                              (format #t "deleting ~a\n" c)
-                              (delete-file c))))
-                        (find-files "." "\\.vala"))))
           (add-after 'unpack 'fix-paths
             (lambda* (#:key inputs #:allow-other-keys)
               (substitute* "src/ibusenginesimple.c"
@@ -168,6 +148,18 @@
                 (("\"(setxkbmap|xmodmap)\"" _ prog)
                  (format #f "~s" (search-input-file
                                   inputs (string-append "bin/" prog)))))))
+          (add-before 'configure 'patch-python-target-directories
+            (lambda _
+              (let ((root (string-append #$output
+                                         "/lib/python"
+                                         #$(version-major+minor
+                                            (package-version python))
+                                         "/site-packages")))
+                (substitute* "configure"
+                  (("(py2?overridesdir)=.*" _ var)
+                   (string-append var "=" root "/gi/overrides/\n"))
+                  (("(pkgpython2dir=).*" _ var)
+                   (string-append var root "/ibus\n"))))))
           (add-before 'check 'pre-check
             (lambda _
               ;; Tests write to $HOME.
@@ -214,13 +206,16 @@
            wayland
            xmodmap))
     (native-inputs
-     (list docbook-xml-4.1.2
+     (list autoconf
+           automake
+           docbook-xml-4.1.2
            `(,glib "bin")               ;for glib-genmarshal
            gettext-minimal
            gnome-common
            gobject-introspection        ;for g-ir-compiler
            `(,gtk+ "bin")
            gtk-doc/stable
+           libtool
            perl
            pkg-config
            python-wrapper

Reply via email to