[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
264/377: gnu: glibmm: Enable documentation.
From: |
guix-commits |
Subject: |
264/377: gnu: glibmm: Enable documentation. |
Date: |
Thu, 2 Sep 2021 17:55:51 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 260f2d76e33c9c3a92a1906fc9c016ca2b7bea70
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 52f9a80..b5f67fe 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -646,8 +646,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 _
@@ -658,9 +662,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)
- 217/377: gnu: rofi: Update to 1.7.0., (continued)
- 217/377: gnu: rofi: Update to 1.7.0., guix-commits, 2021/09/02
- 226/377: bootloader: Report location of the deprecated 'target' field., guix-commits, 2021/09/02
- 222/377: gnu: guile-websocket: Update to 0.1-d17878f6., guix-commits, 2021/09/02
- 213/377: gnu: python-pytest-django: Update to 4.4.0., guix-commits, 2021/09/02
- 224/377: gnu: extra-cmake-modules: Avoid dependency on qtbase when on armhf., guix-commits, 2021/09/02
- 225/377: build: Build (gnu system setuid)., guix-commits, 2021/09/02
- 236/377: gnu: Add python-svgutils., guix-commits, 2021/09/02
- 245/377: gnu: python-scikit-learn: Update to 0.24.2., guix-commits, 2021/09/02
- 244/377: gnu: python-anndata: Fetch sources from git., guix-commits, 2021/09/02
- 243/377: gnu: python-scanpy: Update to 1.8.1., guix-commits, 2021/09/02
- 264/377: gnu: glibmm: Enable documentation.,
guix-commits <=
- 269/377: gnu: gtk-doc: Update to 1.32., guix-commits, 2021/09/02
- 247/377: gnu: Add python-coolbox., guix-commits, 2021/09/02
- 263/377: gnu: glibmm: Update to 2.68.0., guix-commits, 2021/09/02
- 279/377: gnu: cairomm: Enable documentation., guix-commits, 2021/09/02
- 249/377: gnu: go-github-com-gdamore-tcell: Correct license to Apache 2.0., guix-commits, 2021/09/02
- 260/377: gnu: Temporarily use glib without documentation., guix-commits, 2021/09/02
- 273/377: gnu: cairo: Make some cosmetic changes., guix-commits, 2021/09/02
- 254/377: gnu: glib: Make some cosmetic changes., guix-commits, 2021/09/02
- 267/377: gnu: gtk-doc: Change build-system., guix-commits, 2021/09/02
- 275/377: gnu: cairo: Move documentation to separate output., guix-commits, 2021/09/02