[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/34: gnu: hwinfo: Factorise 'install-man-pages.
From: |
guix-commits |
Subject: |
25/34: gnu: hwinfo: Factorise 'install-man-pages. |
Date: |
Tue, 18 Jul 2023 21:11:59 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 84779e6271bdcde6033ad4339502e421b2efd1a4
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 16 02:00:00 2023 +0200
gnu: hwinfo: Factorise 'install-man-pages.
* gnu/packages/hardware.scm (hwinfo)[arguments]: Get section numbers
from the man page file names rather than hard-coding 2.
---
gnu/packages/hardware.scm | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index 9445dd82d6..68f06917c6 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -405,15 +405,11 @@ operability and find drivers.")
(invoke "make" "doc")))
(add-after 'install 'install-man-pages
(lambda _
- (let* ((man (string-append #$output "/share/man"))
- (man1 (string-append man "/man1"))
- (man8 (string-append man "/man8")))
- (for-each
- (lambda (x) (install-file x man1))
- (find-files "doc" "\\.1$"))
- (for-each
- (lambda (y) (install-file y man8))
- (find-files "doc" "\\.8$"))))))))
+ (for-each
+ (lambda (file)
+ (install-file file (string-append #$output "/share/man/man"
+ (string-take-right file
1))))
+ (find-files "doc" "\\.[0-9]$")))))))
(native-inputs
(list doxygen flex perl pkg-config))
(inputs
- 10/34: gnu: ntp: Use G-expressions., (continued)
- 10/34: gnu: ntp: Use G-expressions., guix-commits, 2023/07/18
- 13/34: gnu: spiped: Use G-expressions., guix-commits, 2023/07/18
- 15/34: gnu: traceroute: Use G-expressions., guix-commits, 2023/07/18
- 19/34: gnu: liblxi: Update to 1.20., guix-commits, 2023/07/18
- 29/34: gnu: libqb: Fix cross-compilation., guix-commits, 2023/07/18
- 26/34: gnu: hwinfo: Make with flags., guix-commits, 2023/07/18
- 30/34: gnu: libqb: Update to 2.0.7., guix-commits, 2023/07/18
- 33/34: gnu: bcachefs-tools: Update to 0.1-17.c8bec83., guix-commits, 2023/07/18
- 34/34: gnu: python-wand: Fix build., guix-commits, 2023/07/18
- 23/34: gnu: hwinfo: Update to 23.1., guix-commits, 2023/07/18
- 25/34: gnu: hwinfo: Factorise 'install-man-pages.,
guix-commits <=
- 14/34: gnu: traceroute: Update to 2.1.2., guix-commits, 2023/07/18
- 16/34: gnu: wireshark: Update to 4.0.7., guix-commits, 2023/07/18
- 17/34: gnu: gcab: Update to 1.6., guix-commits, 2023/07/18
- 18/34: gnu: gcab: Remove input labels., guix-commits, 2023/07/18
- 20/34: gnu: liblxi: Edit description., guix-commits, 2023/07/18
- 21/34: gnu: spread-sheet-widget: Update to 0.8., guix-commits, 2023/07/18
- 22/34: gnu: spread-sheet-widget: Omit static library., guix-commits, 2023/07/18
- 24/34: gnu: hwinfo: Use G-expressions., guix-commits, 2023/07/18
- 28/34: gnu: libqb: Remove obsolete bootstrapping inputs., guix-commits, 2023/07/18
- 27/34: gnu: gifsicle: Update to 1.94., guix-commits, 2023/07/18