all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ng0 <ng0@libertad.pw>
To: guix-devel@gnu.org
Subject: [PATCH 3/3] gnu: gnurl: Split man pages to doc output.
Date: Wed, 21 Dec 2016 17:27:18 +0000	[thread overview]
Message-ID: <20161221172718.28612-4-ng0@libertad.pw> (raw)
In-Reply-To: <20161221172718.28612-1-ng0@libertad.pw>

* 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 941e357ce..4e0e5c70a 100644
--- a/gnu/packages/gnunet.scm
+++ b/gnu/packages/gnunet.scm
@@ -173,6 +173,8 @@ and support for SSL3 and TLS.")
              (base32
               "0kbm73c7xl7drp4wvpg7919m8nvv0bf5q95pdacz6cpb2awwr3hb"))))
    (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

  parent reply	other threads:[~2016-12-21 17:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-21 17:27 gnurl: update and various changes to package definition ng0
2016-12-21 17:27 ` [PATCH 1/3] gnu: gnurl: Update to 7.52.0 [fixes CVE-2016-{9586, 9952, 9953}] ng0
2016-12-21 17:27 ` [PATCH 2/3] gnu: gnurl: Make tests more verbose ng0
2016-12-21 17:27 ` ng0 [this message]
2016-12-22 16:32 ` gnurl: update and various changes to package definition ng0
2016-12-23 11:29   ` gnurl, update to 7.52.1 (and: more verbose tests + split man pages to "doc") ng0
2016-12-23 11:29     ` [PATCH 1/3] gnu: gnurl: Update to 7.52.1 [fixes CVE-2016-{9586, 9952, 9953, 9594}] ng0
2016-12-23 11:29     ` [PATCH 2/3] gnu: gnurl: Make tests more verbose ng0
2016-12-23 11:29     ` [PATCH 3/3] gnu: gnurl: Split man pages to doc output ng0

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161221172718.28612-4-ng0@libertad.pw \
    --to=ng0@libertad.pw \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.