From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 3/3] gnu: gnurl: Split man pages to doc output. Date: Fri, 23 Dec 2016 11:29:33 +0000 Message-ID: <20161223112933.5000-4-ng0@libertad.pw> References: <87r34zorf6.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> <20161223112933.5000-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKO2s-0002G8-JB for guix-devel@gnu.org; Fri, 23 Dec 2016 06:29:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKO2n-0007yu-SM for guix-devel@gnu.org; Fri, 23 Dec 2016 06:29:54 -0500 Received: from aibo.runbox.com ([91.220.196.211]:53380) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cKO2n-0007xH-Lj for guix-devel@gnu.org; Fri, 23 Dec 2016 06:29:49 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cKO2m-0003Rf-IC for guix-devel@gnu.org; Fri, 23 Dec 2016 12:29:48 +0100 In-Reply-To: <20161223112933.5000-1-ng0@libertad.pw> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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