[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/83: gnu: glibmm: Enable documentation.
From: |
guix-commits |
Subject: |
11/83: gnu: glibmm: Enable documentation. |
Date: |
Fri, 26 Mar 2021 17:18:25 -0400 (EDT) |
lle_bout pushed a commit to branch core-updates
in repository guix.
commit 51bb94ffb3be46d3d50e65e0ea4716aa3a7fa0f5
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Thu Mar 25 03:04:01 2021 -0400
gnu: glibmm: Enable documentation.
* gnu/packages/glib.scm (glibmm)[outputs]: New output "doc".
[arguments]<#:configure-flags>[-Dbuild-documentation]: New flag.
<#:phases>['move-doc]: New phase.
[native-inputs]: Add doxygen and graphviz.
Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
---
gnu/packages/glib.scm | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index ac46b5c..bff6f28 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -644,8 +644,12 @@ by GDBus included in Glib.")
(base32
"0xgkyhb2876mcyyib5rk3ya9aingyj68h02nl22yvkhx35rqbwy1"))))
(build-system meson-build-system)
+ (outputs '("out" "doc"))
(arguments
- `(#:phases
+ `(#:configure-flags
+ (list
+ "-Dbuild-documentation=true")
+ #:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda _
@@ -656,9 +660,20 @@ by GDBus included in Glib.")
;; This test does a DNS lookup, and then expects to be able
;; to open a TLS session; just skip it.
(("[ \t]*.*giomm_tls_client.*$") ""))
- #t)))))
+ #t))
+ (add-after 'install 'move-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (mkdir-p (string-append doc "/share"))
+ (rename-file
+ (string-append out "/share/doc")
+ (string-append doc "/share/doc"))
+ #t))))))
(native-inputs
- `(("glib:bin" ,glib "bin")
+ `(("dot" ,graphviz)
+ ("doxygen" ,doxygen)
+ ("glib:bin" ,glib "bin")
("m4" ,m4)
("mm-common" ,mm-common)
("perl" ,perl)
- 14/83: gnu: gtk-doc: Change build-system., (continued)
- 14/83: gnu: gtk-doc: Change build-system., guix-commits, 2021/03/26
- 18/83: gnu: gtk-doc: Update synopsis, description, home-page and license., guix-commits, 2021/03/26
- 19/83: gnu: gobject-introspection: Propagate glib., guix-commits, 2021/03/26
- 20/83: gnu: cairo: Make some cosmetic changes., guix-commits, 2021/03/26
- 24/83: gnu: cairo: Update synopsis, description and license., guix-commits, 2021/03/26
- 05/83: gnu: glib-with-documentation: Make some cosmetic changes., guix-commits, 2021/03/26
- 01/83: gnu: glib: Make some cosmetic changes., guix-commits, 2021/03/26
- 02/83: gnu: glib: Update to 2.68.0., guix-commits, 2021/03/26
- 04/83: gnu: glib: Update synopsis, description and home-page., guix-commits, 2021/03/26
- 03/83: gnu: glib: Enable man pages., guix-commits, 2021/03/26
- 11/83: gnu: glibmm: Enable documentation.,
guix-commits <=
- 10/83: gnu: glibmm: Update to 2.68.0., guix-commits, 2021/03/26
- 15/83: gnu: gtk-doc: Correct inputs., guix-commits, 2021/03/26
- 12/83: gnu: Add libsigc++-2., guix-commits, 2021/03/26
- 13/83: gnu: glibmm-2.64: Update to 2.64.5., guix-commits, 2021/03/26
- 17/83: gnu: gtk-doc: Enable help., guix-commits, 2021/03/26
- 08/83: gnu: libsigc++: Update to 3.0.6., guix-commits, 2021/03/26
- 23/83: gnu: cairo: Enable some features., guix-commits, 2021/03/26
- 34/83: gnu: pangomm-2.42: Update to 2.42.2., guix-commits, 2021/03/26
- 35/83: gnu: gdk-pixbuf: Add missing arguments., guix-commits, 2021/03/26
- 38/83: gnu: gdk-pixbuf: Fix documentation., guix-commits, 2021/03/26