me
/
guix
Archived
1
0
Fork 0

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
master
Efraim Flashner 2024-01-24 10:04:24 +02:00
parent edea52e2fe
commit 92a7b944d9
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 14 additions and 10 deletions

View File

@ -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