gnu: cairo: Move documentation to separate output.

* gnu/packages/gtk.scm (cairo) [outputs]: New output "doc".
[arguments]<#:configure-flags>[--with-html-dir]: New flag.

Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
This commit is contained in:
Raghav Gururajan 2020-12-04 00:53:16 -05:00 committed by Raghav Gururajan
parent c8a1248357
commit cccbe0a7cb
No known key found for this signature in database
GPG key ID: 45A8B1E86BCD10A6

View file

@ -134,13 +134,17 @@ (define-public cairo
(sha256
(base32 "0c930mk5xr2bshbdljv005j3j8zr47gqmkry3q6qgvqky6rjjysy"))))
(build-system glib-or-gtk-build-system)
(outputs '("out" "doc"))
(arguments
`(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
#:configure-flags
(list
"--enable-tee" ;needed for GNU Icecat
"--enable-xml" ;for cairo-xml support
"--disable-static")))
"--enable-tee" ;needed for GNU Icecat
"--enable-xml" ;for cairo-xml support
"--disable-static"
(string-append "--with-html-dir="
(assoc-ref %outputs "doc")
"/share/gtk-doc/html"))))
(native-inputs
`(("pkg-config" ,pkg-config)
("python" ,python-wrapper)))