mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 21:59:08 -05:00
gnu: graphviz: Add "doc" output.
* gnu/packages/graphviz.scm (graphviz)[outputs, arguments]: New fields.
This commit is contained in:
parent
64cb2de5d0
commit
88377435ca
1 changed files with 12 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013, 2015 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013, 2015 Ludovic Courtès <ludo@gnu.org>
|
||||||
|
;;; Copyright © 2015 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -59,7 +60,16 @@ (define-public graphviz
|
||||||
(substitute* "lib/gvc/Makefile"
|
(substitute* "lib/gvc/Makefile"
|
||||||
(("am__append_5 *=.*")
|
(("am__append_5 *=.*")
|
||||||
"am_append_5 =\n")))
|
"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
|
(inputs
|
||||||
`(("libXrender" ,libxrender)
|
`(("libXrender" ,libxrender)
|
||||||
("libX11" ,libx11)
|
("libX11" ,libx11)
|
||||||
|
@ -76,6 +86,7 @@ (define-public graphviz
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("bison" ,bison)
|
`(("bison" ,bison)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
|
(outputs '("out" "doc")) ; 5 MiB of html + pdfs
|
||||||
(home-page "http://www.graphviz.org/")
|
(home-page "http://www.graphviz.org/")
|
||||||
(synopsis "Graph visualization software")
|
(synopsis "Graph visualization software")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue