guix-commits
[Top][All Lists]
Advanced

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

01/25: gnu: git-absorb: Update to 0.6.11.


From: guix-commits
Subject: 01/25: gnu: git-absorb: Update to 0.6.11.
Date: Thu, 25 Jan 2024 04:55:37 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 85afad516fbef558218e09f2431223c58ccf27f4
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Jan 24 10:04:24 2024 +0200

    gnu: git-absorb: Update to 0.6.11.
    
    * gnu/packages/rust-apps.scm (git-absorb): Update to 0.6.11.
    [source]: Add snippet to relax version requirements, delete manpage.
    [arguments]: Don't install the sources.  Remove phase relaxing version
    requirements.  Adjust 'install-manual-page phase to generate the manpage.
    [cargo-inputs]: Replace rust-git2-0.13 with 0.18.
    [native-inputs]: Add asciidoc.
    [inputs]: Add libgit2-1.7.  Remoev libgit2-1.3.
    
    Change-Id: I45d56739ed5d01f891a35a91d275b23ab381d9fd
---
 gnu/packages/rust-apps.scm | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index ae99790d92..88d27cede7 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -2500,7 +2500,7 @@ Full featured offline client with caching support.")
 (define-public git-absorb
   (package
     (name "git-absorb")
-    (version "0.6.6")
+    (version "0.6.11")
     (source
      (origin
        ;; crates.io does not include the manual page.
@@ -2510,13 +2510,19 @@ Full featured offline client with caching support.")
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "04v10bn24acify34vh5ayymsr1flcyb05f3az9k1s2m6nlxy5gb9"))))
+        (base32 "1mgqmbk2rz87blas86k340nshiy0zbw9pq76b8nqknpgghm4k029"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+                 (substitute* "Cargo.toml"
+                   (("\"~") "\""))
+                 (delete-file "Documentation/git-absorb.1")))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
+     `(#:install-source? #f
+       #:cargo-inputs
        (("rust-anyhow" ,rust-anyhow-1)
         ("rust-clap" ,rust-clap-2)
-        ("rust-git2" ,rust-git2-0.13)
+        ("rust-git2" ,rust-git2-0.18)
         ("rust-memchr" ,rust-memchr-2)
         ("rust-slog" ,rust-slog-2)
         ("rust-slog-async" ,rust-slog-async-2)
@@ -2525,19 +2531,17 @@ Full featured offline client with caching support.")
        (("rust-tempfile" ,rust-tempfile-3))
        #:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'relax-version-requirements
-           (lambda _
-             (substitute* "Cargo.toml"
-               (("\"~") "\""))))
          (add-after 'install 'install-manual-page
            (lambda* (#:key outputs #:allow-other-keys)
              (let* ((out   (assoc-ref outputs "out"))
                     (man   (string-append out "/share/man/man1")))
+               (with-directory-excursion "Documentation"
+                 (invoke "a2x" "-L" "-d" "manpage" "-f" "manpage" 
"git-absorb.txt"))
                (install-file "Documentation/git-absorb.1" man)))))))
     (native-inputs
-     (list pkg-config))
+     (list asciidoc pkg-config))
     (inputs
-     (list libgit2-1.3 zlib))
+     (list libgit2-1.7 zlib))
     (home-page "https://github.com/tummychow/git-absorb";)
     (synopsis "Git tool for making automatic fixup commits")
     (description



reply via email to

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