all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: guix-devel@gnu.org
Subject: [PATCH 7/8] gnu: graphviz: Add "doc" output.
Date: Wed, 30 Sep 2015 20:56:47 +0300	[thread overview]
Message-ID: <1443635808-18649-8-git-send-email-efraim@flashner.co.il> (raw)
In-Reply-To: <1443635808-18649-1-git-send-email-efraim@flashner.co.il>

* 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 © 2013, 2015 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -59,7 +60,16 @@
                    (substitute* "lib/gvc/Makefile"
                      (("am__append_5 *=.*")
                       "am_append_5 =\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/graphviz"))
+                             (rename-file (string-append out "/share/graphviz/doc")
+                                          (string-append doc "/share/graphviz/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
-- 
2.6.0

  parent reply	other threads:[~2015-09-30 17:57 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-30 17:56 [PATCH 0/8] updates! Efraim Flashner
2015-09-30 17:56 ` [PATCH 1/8] gnu: enlightenment: Update to 0.19.11 Efraim Flashner
2015-10-01 10:22   ` Ricardo Wurmus
2015-09-30 17:56 ` [PATCH 2/8] gnu: terminology: Update to 0.9.1 Efraim Flashner
2015-10-01 10:20   ` Ricardo Wurmus
2015-09-30 17:56 ` [PATCH 3/8] gnu: youtube-dl: Update to 2015.09.28 Efraim Flashner
2015-10-01 10:17   ` Ricardo Wurmus
2015-09-30 17:56 ` [PATCH 4/8] gnu: mpv: Update to 0.11.0 Efraim Flashner
2015-10-01 10:17   ` Ricardo Wurmus
2015-09-30 17:56 ` [PATCH 5/8] gnu: mpg123: Update to 1.22.4 Efraim Flashner
2015-10-01 10:16   ` Ricardo Wurmus
2015-09-30 17:56 ` [PATCH 6/8] gnu: graphviz: Update to 2.38.0 Efraim Flashner
2015-09-30 17:56 ` Efraim Flashner [this message]
2015-09-30 17:56 ` [PATCH 8/8] gnu: powertop: Update to 2.7 Efraim Flashner
2015-10-01 10:14   ` Ricardo Wurmus
2015-10-01 10:31     ` Efraim Flashner
2015-10-01 19:36       ` Andreas Enge
2015-10-01 20:00         ` Efraim Flashner
2015-10-01 20:01           ` Andreas Enge
2015-10-01 20:54       ` Ludovic Courtès
2015-10-01  9:07 ` [PATCH 0/8] updates! Ludovic Courtès
2015-10-01 10:06   ` Efraim Flashner
2015-10-01 13:02     ` Ludovic Courtès

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=1443635808-18649-8-git-send-email-efraim@flashner.co.il \
    --to=efraim@flashner.co.il \
    --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.