[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
68/115: gnu: json-glib: Enable documentation and man-pages.
From: |
guix-commits |
Subject: |
68/115: gnu: json-glib: Enable documentation and man-pages. |
Date: |
Fri, 7 May 2021 16:56:41 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 841cb4afe8633cd83d867a086454817602b93a0d
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Fri Mar 26 10:27:59 2021 -0400
gnu: json-glib: Enable documentation and man-pages.
* gnu/packages/gnome.scm (json-glib) [outputs]: New output "doc".
[arguments]<#:configure-flags>[-Ddocs]: New flag.
[-Dman]: New flag.
<#:phases>['patch-docbook]: New phase.
['move-doc]: New phase.
[native-inputs]: Add docbook-xml, docbook-xsl, gtk-doc and libxslt.
Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
---
gnu/packages/gnome.scm | 38 +++++++++++++++++++++++++++++++++++---
1 file changed, 35 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 066123c..c0ff402 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4685,13 +4685,45 @@ configuration storage systems.")
(base32
"092g2dyy1hhl0ix9kp33wcab0pg1qicnsv0cj5ms9g9qs336cgd3"))))
(build-system meson-build-system)
+ (outputs '("out" "doc"))
(arguments
- `(#:glib-or-gtk? #t)) ; To wrap binaries and/or compile schemas
+ `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
+ #:configure-flags
+ (list
+ "-Ddocs=true"
+ "-Dman=true")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "doc"
+ (substitute* (find-files "." "\\.xml$")
+ (("http://www.oasis-open.org/docbook/xml/4\\.3/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/")))
+ (substitute* "meson.build"
+ (("http://docbook.sourceforge.net/release/xsl/current/")
+ (string-append (assoc-ref inputs "docbook-xsl")
+ "/xml/xsl/docbook-xsl-1.79.2/"))))
+ #t))
+ (add-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"))
+ (rename-file
+ (string-append out "/share/gtk-doc")
+ (string-append doc "/share/gtk-doc"))
+ #t))))))
(native-inputs
- `(("gettext" ,gettext-minimal)
+ `(("docbook-xml" ,docbook-xml-4.3)
+ ("docbook-xsl" ,docbook-xsl)
+ ("gettext" ,gettext-minimal)
("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
("gobject-introspection" ,gobject-introspection)
- ("pkg-config" ,pkg-config)))
+ ("gtk-doc" ,gtk-doc)
+ ("pkg-config" ,pkg-config)
+ ("xsltproc" ,libxslt)))
(propagated-inputs
`(("glib" ,glib))) ;according to json-glib-1.0.pc
(home-page "https://wiki.gnome.org/Projects/JsonGlib")
- 34/115: gnu: pangomm-2.42: Update to 2.42.2., (continued)
- 34/115: gnu: pangomm-2.42: Update to 2.42.2., guix-commits, 2021/05/07
- 37/115: gnu: gdk-pixbuf: Enable jasper support., guix-commits, 2021/05/07
- 35/115: gnu: gdk-pixbuf: Add missing arguments., guix-commits, 2021/05/07
- 49/115: gnu: libgsf: Make separate output for binaries., guix-commits, 2021/05/07
- 43/115: gnu: vala: Change build-system., guix-commits, 2021/05/07
- 48/115: gnu: libgsf: Change build-system., guix-commits, 2021/05/07
- 58/115: gnu: atkmm: Update to 2.36.0., guix-commits, 2021/05/07
- 52/115: gnu: libgsf: Correct inputs., guix-commits, 2021/05/07
- 61/115: gnu: Add atkmm-2.28., guix-commits, 2021/05/07
- 65/115: gnu: at-spi2-atk: Update to 2.38.0., guix-commits, 2021/05/07
- 68/115: gnu: json-glib: Enable documentation and man-pages.,
guix-commits <=
- 70/115: gnu: wayland: Update to 1.19.0., guix-commits, 2021/05/07
- 71/115: gnu: wayland: Fix and move documentation., guix-commits, 2021/05/07
- 74/115: gnu: yelp-xsl: Enable documentation., guix-commits, 2021/05/07
- 72/115: gnu: wayland: Update synopsis, description and license., guix-commits, 2021/05/07
- 75/115: gnu: gtk+-2: Enable tests., guix-commits, 2021/05/07
- 79/115: gnu: gtk+: Add missing inputs., guix-commits, 2021/05/07
- 84/115: gnu: ibus: Update to 1.5.24., guix-commits, 2021/05/07
- 82/115: gnu: gtkmm: Update to 3.24.4., guix-commits, 2021/05/07
- 90/115: gnu: faac: Correct source uri., guix-commits, 2021/05/07
- 87/115: gnu: ibus: Enable tests., guix-commits, 2021/05/07