[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
40/41: gnu: ripgrep: Install the manpage.
From: |
guix-commits |
Subject: |
40/41: gnu: ripgrep: Install the manpage. |
Date: |
Tue, 11 Feb 2020 13:24:55 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 6e18b41eb71ea755bd10f1f7536426260d0fa3d9
Author: Jakub Kądziołka <address@hidden>
AuthorDate: Sun Feb 9 22:51:09 2020 +0100
gnu: ripgrep: Install the manpage.
* gnu/packages/rust-apps.scm (ripgrep)[native-inputs]: Add asciidoc.
[arguments]: Add 'install-manpage phase. Import (ice-9 match).
Signed-off-by: Efraim Flashner <address@hidden>
---
gnu/packages/rust-apps.scm | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index d1d7d22..ddc9f6e 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -25,6 +25,7 @@
#:use-module (guix packages)
#:use-module (gnu packages compression)
#:use-module (gnu packages crates-io)
+ #:use-module (gnu packages documentation)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages tls)
@@ -226,7 +227,24 @@ provides defaults for 80% of the use cases.")
("rust-termcolor" ,rust-termcolor-1.0))
#:cargo-development-inputs
(("rust-serde" ,rust-serde-1.0)
- ("rust-serde-derive" ,rust-serde-derive-1.0))))
+ ("rust-serde-derive" ,rust-serde-derive-1.0))
+ #:modules ((ice-9 match)
+ (guix build cargo-build-system)
+ (guix build utils))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'install-manpage
+ ;; NOTE: This is done before 'check so that there's only one output
+ ;; directory with the man page.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (match (find-files "target" "^rg\\.1$")
+ ((manpage)
+ (install-file manpage (string-append
+ (assoc-ref outputs "out")
+ "/share/man/man1"))))
+ #t)))))
+ (native-inputs
+ `(("asciidoc" ,asciidoc)))
(home-page "https://github.com/BurntSushi/ripgrep")
(synopsis "Line-oriented search tool")
(description
- 32/41: gnu: rust-stable-deref-trait-1.1: Don't hide package., (continued)
- 32/41: gnu: rust-stable-deref-trait-1.1: Don't hide package., guix-commits, 2020/02/11
- 22/41: gnu: rust-rand-isaac-0.1: Don't hide package., guix-commits, 2020/02/11
- 26/41: gnu: rust-semver-parser-0.9: Don't hide package., guix-commits, 2020/02/11
- 34/41: gnu: rust-stacker-0.1: Update to 0.1.6., guix-commits, 2020/02/11
- 23/41: gnu: rust-rand-jitter-0.1: Don't hide package., guix-commits, 2020/02/11
- 24/41: gnu: rust-rand-xorshift-0.1: Don't hide package., guix-commits, 2020/02/11
- 36/41: gnu: rust-stdweb-internal-runtime-0.1: Update to 0.1.5., guix-commits, 2020/02/11
- 37/41: gnu: rust-stdweb-internal-test-macro-0.1: Update to 0.1.1., guix-commits, 2020/02/11
- 41/41: gnu: ripgrep: Enable the 'pcre2' feature., guix-commits, 2020/02/11
- 35/41: gnu: rust-static-assertions-0.3: Don't hide package., guix-commits, 2020/02/11
- 40/41: gnu: ripgrep: Install the manpage.,
guix-commits <=
- 21/41: gnu: rust-quote-1.0: Don't hide package., guix-commits, 2020/02/11
- 39/41: gnu: rust-strsim-0.9: Upgrade to 0.9.3., guix-commits, 2020/02/11
- 38/41: gnu: rust-streaming-stats-0.2: Update to 0.2.3., guix-commits, 2020/02/11