mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: gnutls: Move man3 pages to "doc" output.
* gnu/packages/gnutls.scm (gnutls)[arguments]: Add #:phases.
This commit is contained in:
parent
4b0f2ef743
commit
606c638016
1 changed files with 18 additions and 2 deletions
|
@ -135,8 +135,24 @@ (define-public gnutls
|
|||
|
||||
;; FIXME: Temporarily disable p11-kit support since it is not
|
||||
;; working on mips64el.
|
||||
"--without-p11-kit")))
|
||||
(outputs '("out" "debug"))
|
||||
"--without-p11-kit")
|
||||
|
||||
#:phases (modify-phases %standard-phases
|
||||
(add-after
|
||||
'install 'move-doc
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; Copy the 4.1 MiB of section 3 man pages to "doc".
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(doc (assoc-ref outputs "doc"))
|
||||
(mandir (string-append doc "/share/man"))
|
||||
(oldman (string-append out "/share/man/man3")))
|
||||
(mkdir-p mandir)
|
||||
(copy-recursively oldman mandir)
|
||||
(delete-file-recursively oldman)
|
||||
#t))))))
|
||||
(outputs '("out" ;4.4 MiB
|
||||
"debug"
|
||||
"doc")) ;4.1 MiB of man pages
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)
|
||||
("which" ,which)))
|
||||
|
|
Loading…
Reference in a new issue