gnu: gnurl: Split man pages to doc output.

* gnu/packages/gnunet.scm (gnurl)[arguments]: Add 'move-man3-pages' phase.

Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
ng0 2016-12-23 11:29:33 +00:00 committed by Leo Famulari
parent 4ec08b637b
commit 50e9f81a22
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 11 additions and 0 deletions

View File

@ -173,6 +173,8 @@ and support for SSL3 and TLS.")
(base32 (base32
"1gn6mvab2vhfj9637ykg1zjzb23fngfnyd24wlgxmjhf49pn334h")))) "1gn6mvab2vhfj9637ykg1zjzb23fngfnyd24wlgxmjhf49pn334h"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(outputs '("out"
"doc")) ; 1.5 MiB of man3 pages
(inputs `(("gnutls" ,gnutls) (inputs `(("gnutls" ,gnutls)
("libidn" ,libidn) ("libidn" ,libidn)
("zlib" ,zlib))) ("zlib" ,zlib)))
@ -201,6 +203,15 @@ and support for SSL3 and TLS.")
#:phases #:phases
;; We have to patch runtests.pl in tests/ directory ;; We have to patch runtests.pl in tests/ directory
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'install 'move-man3-pages
(lambda* (#:key outputs #:allow-other-keys)
;; Move section 3 man pages to "doc".
(let ((out (assoc-ref outputs "out"))
(doc (assoc-ref outputs "doc")))
(mkdir-p (string-append doc "/share/man"))
(rename-file (string-append out "/share/man/man3")
(string-append doc "/share/man/man3"))
#t)))
(add-before 'configure 'autoconf (add-before 'configure 'autoconf
;; Clear artifacts left (shebangs) from release preparation. ;; Clear artifacts left (shebangs) from release preparation.
(lambda _ (lambda _