From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: [PATCH 7/8] gnu: graphviz: Add "doc" output. Date: Wed, 30 Sep 2015 20:56:47 +0300 Message-ID: <1443635808-18649-8-git-send-email-efraim@flashner.co.il> References: <1443635808-18649-1-git-send-email-efraim@flashner.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhLcq-0003cb-Tn for guix-devel@gnu.org; Wed, 30 Sep 2015 13:57:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhLcn-0006j7-D0 for guix-devel@gnu.org; Wed, 30 Sep 2015 13:57:08 -0400 Received: from flashner.co.il ([178.62.234.194]:54134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhLcn-0006if-6r for guix-devel@gnu.org; Wed, 30 Sep 2015 13:57:05 -0400 Received: from localhost.localdomain (85.65.229.31.dynamic.barak-online.net [85.65.229.31]) by flashner.co.il (Postfix) with ESMTPSA id B9FB2400C3 for ; Wed, 30 Sep 2015 17:57:04 +0000 (UTC) In-Reply-To: <1443635808-18649-1-git-send-email-efraim@flashner.co.il> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/graphviz.scm (graphviz)[outputs, arguments]: New fields. --- gnu/packages/graphviz.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm index e1eb654..09f475b 100644 --- a/gnu/packages/graphviz.scm +++ b/gnu/packages/graphviz.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2013, 2015 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2015 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -59,7 +60,16 @@ (substitute* "lib/gvc/Makefile" (("am__append_5 *=3D.*") "am_append_5 =3D\n"))) - %standard-phases))) + (alist-cons-after + 'install 'move-docs + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share/graphvi= z")) + (rename-file (string-append out "/share/gra= phviz/doc") + (string-append doc "/share/gra= phviz/doc")) + #t)) + %standard-phases)))) (inputs `(("libXrender" ,libxrender) ("libX11" ,libx11) @@ -76,6 +86,7 @@ (native-inputs `(("bison" ,bison) ("pkg-config" ,pkg-config))) + (outputs '("out" "doc")) ; 5 MiB of html + pdfs (home-page "http://www.graphviz.org/") (synopsis "Graph visualization software") (description --=20 2.6.0