From: Dion Mendel <guix@dm9.info>
To: 48016@debbugs.gnu.org
Subject: [bug#48016] [PATCH] gnu: direnv: Install manpages
Date: Sun, 25 Apr 2021 19:43:08 +0800 [thread overview]
Message-ID: <20210425114308.GA16322@dm9.info> (raw)
[-- Attachment #1: Type: text/plain, Size: 240 bytes --]
Hi guix,
The direnv package has manpages in the source repository, yet none are
currently installed. This patch installs the manpages.
The patch was tested by installing and running direnv locally and
viewing the manpages with man-db.
[-- Attachment #2: 0001-gnu-direnv-Install-manpages.patch --]
[-- Type: text/x-diff, Size: 1357 bytes --]
From 87fbd9f5d183b1912db186e7c5879566267655b8 Mon Sep 17 00:00:00 2001
From: Dion Mendel <guix@dm9.info>
Date: Sun, 25 Apr 2021 18:57:21 +0800
Subject: [PATCH] gnu: direnv: Install manpages
* gnu/packages/shellutils.scm (direnv): Install manpages.
---
gnu/packages/shellutils.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
index c7a941dfa6..ec887e40fd 100644
--- a/gnu/packages/shellutils.scm
+++ b/gnu/packages/shellutils.scm
@@ -254,6 +254,17 @@ are already there.")
;; so delete the extra source code here.
(delete-file-recursively "src/github.com/direnv/direnv/vendor")
#t))
+ (add-after 'install 'install-manpages
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (man (string-append out "/share/man/man1")))
+ (mkdir-p man)
+ (with-directory-excursion "src/github.com/direnv/direnv"
+ (install-file "man/direnv.1" man)
+ (install-file "man/direnv-stdlib.1" man)
+ (install-file "man/direnv.toml.1" man)
+ )
+ #t)))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
--
2.31.1
next reply other threads:[~2021-04-25 11:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-25 11:43 Dion Mendel [this message]
2021-04-25 17:44 ` bug#48016: [PATCH] gnu: direnv: Install manpages Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210425114308.GA16322@dm9.info \
--to=guix@dm9.info \
--cc=48016@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.