[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: curl: Move man3 pages to "doc" output.
From: |
Ludovic Courtès |
Subject: |
02/02: gnu: curl: Move man3 pages to "doc" output. |
Date: |
Wed, 09 Sep 2015 21:30:21 +0000 |
civodul pushed a commit to branch core-updates
in repository guix.
commit 9d9847e1538096ff9fa1a1f4a9fe633a9a13922e
Author: Ludovic Courtès <address@hidden>
Date: Wed Sep 9 22:55:33 2015 +0200
gnu: curl: Move man3 pages to "doc" output.
* gnu/packages/curl.scm (curl)[outputs]: New field.
[arguments]: Add 'move-man3-pages' phase.
---
gnu/packages/curl.scm | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm
index 55a5d1e..f7c9f08 100644
--- a/gnu/packages/curl.scm
+++ b/gnu/packages/curl.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2013, 2014 Andreas Enge <address@hidden>
;;; Copyright © 2015 Mark H Weaver <address@hidden>
;;; Copyright © 2015 Tomáš Čech <address@hidden>
+;;; Copyright © 2015 Ludovic Courtès <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -47,6 +48,8 @@
(base32
"0gjnaav9vmwwwza451na1643br7i0kxgd4002pwqh3xk5ywvdap7"))))
(build-system gnu-build-system)
+ (outputs '("out"
+ "doc")) ;1.2 MiB of man3 pages
(inputs `(("gnutls" ,gnutls)
("gss" ,gss)
("libidn" ,libidn)
@@ -64,6 +67,16 @@
;; Add a phase to patch '/bin/sh' occurances in tests/runtests.pl
#: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)))
(replace
'check
(lambda _