mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: wpa-supplicant: Install man pages.
* gnu/packages/admin.scm (wpa-supplicant)[arguments]: Add 'install-man-pages' phase.
This commit is contained in:
parent
61bdd0d89f
commit
ffd74de0c6
1 changed files with 21 additions and 1 deletions
|
@ -714,7 +714,27 @@ (define-public wpa-supplicant
|
|||
CONFIG_LIBNL32=y
|
||||
CONFIG_READLINE=y\n" port)
|
||||
(close-port port)))
|
||||
%standard-phases)
|
||||
|
||||
(alist-cons-after
|
||||
'install 'install-man-pages
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(man (string-append out "/share/man"))
|
||||
(man5 (string-append man "/man5"))
|
||||
(man8 (string-append man "/man8")))
|
||||
(define (copy-man-page target)
|
||||
(lambda (file)
|
||||
(copy-file file
|
||||
(string-append target "/"
|
||||
(basename file)))))
|
||||
|
||||
(mkdir-p man5) (mkdir man8)
|
||||
(for-each (copy-man-page man5)
|
||||
(find-files "doc/docbook" "\\.5"))
|
||||
(for-each (copy-man-page man8)
|
||||
(find-files "doc/docbook" "\\.8"))
|
||||
#t))
|
||||
%standard-phases))
|
||||
|
||||
#:make-flags (list "CC=gcc"
|
||||
(string-append "BINDIR=" (assoc-ref %outputs "out")
|
||||
|
|
Loading…
Reference in a new issue