[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] gnu: gnurl: Split man pages to doc output.
From: |
ng0 |
Subject: |
[PATCH 3/3] gnu: gnurl: Split man pages to doc output. |
Date: |
Fri, 23 Dec 2016 11:29:33 +0000 |
* gnu/packages/gnunet.scm (gnurl): Split the man pages into the doc output.
[arguments](phases)(move-man3-pages): New phase.
---
gnu/packages/gnunet.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/gnunet.scm b/gnu/packages/gnunet.scm
index 495a7de88..27e1ffb4e 100644
--- a/gnu/packages/gnunet.scm
+++ b/gnu/packages/gnunet.scm
@@ -173,6 +173,8 @@ and support for SSL3 and TLS.")
(base32
"1gn6mvab2vhfj9637ykg1zjzb23fngfnyd24wlgxmjhf49pn334h"))))
(build-system gnu-build-system)
+ (outputs '("out"
+ "doc")) ; 1.5 MiB of man3 pages
(inputs `(("gnutls" ,gnutls)
("libidn" ,libidn)
("zlib" ,zlib)))
@@ -201,6 +203,15 @@ and support for SSL3 and TLS.")
#:phases
;; We have to patch runtests.pl in tests/ directory
(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
;; Clear artifacts left (shebangs) from release preparation.
(lambda _
--
2.11.0
- gnurl: update and various changes to package definition, ng0, 2016/12/21
- [PATCH 1/3] gnu: gnurl: Update to 7.52.0 [fixes CVE-2016-{9586, 9952, 9953}]., ng0, 2016/12/21
- [PATCH 3/3] gnu: gnurl: Split man pages to doc output., ng0, 2016/12/21
- [PATCH 2/3] gnu: gnurl: Make tests more verbose., ng0, 2016/12/21
- Re: gnurl: update and various changes to package definition, ng0, 2016/12/22