guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

22/122: gnu: cairo: Move documentation to separate output.


From: guix-commits
Subject: 22/122: gnu: cairo: Move documentation to separate output.
Date: Wed, 30 Jun 2021 18:26:22 -0400 (EDT)

raghavgururajan pushed a commit to branch wip-gnome
in repository guix.

commit 5f464a4c1a92a4d035c8482e922896f3bb6ce040
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Fri Dec 4 00:53:16 2020 -0500

    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>
---
 gnu/packages/gtk.scm | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 94790ea..3fefb0d 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -136,13 +136,17 @@ tools have full access to view and control running 
applications.")
        (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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]