[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
68/122: gnu: json-glib: Enable documentation and man-pages.
From: |
guix-commits |
Subject: |
68/122: gnu: json-glib: Enable documentation and man-pages. |
Date: |
Fri, 11 Jun 2021 12:12:10 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 2be1998dd24dbc5b96e5bc9ffd6b1235c2e5c507
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 5bb4148..d4cc295 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4694,13 +4694,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")
- 84/122: gnu: ibus: Update to 1.5.24., (continued)
- 84/122: gnu: ibus: Update to 1.5.24., guix-commits, 2021/06/11
- 90/122: gnu: faac: Correct source uri., guix-commits, 2021/06/11
- 97/122: gnu: gst-libav: Update to 1.18.4., guix-commits, 2021/06/11
- 112/122: gnu: python-pygobject: Update to 3.40.1., guix-commits, 2021/06/11
- 111/122: gnu: python-pycairo: Update to 1.20.0., guix-commits, 2021/06/11
- 110/122: gnu: w3m: Update to 0.5.3+git20210102., guix-commits, 2021/06/11
- 107/122: gnu: glib-networking: Enable libproxy and openssl support., guix-commits, 2021/06/11
- 120/122: gnu: tracker: Propagate dependencies as per pkg-config file., guix-commits, 2021/06/11
- 122/122: gnu: tracker-miners: Enable some features., guix-commits, 2021/06/11
- 64/122: gnu: at-spi2-core: Update home-page and license., guix-commits, 2021/06/11
- 68/122: gnu: json-glib: Enable documentation and man-pages.,
guix-commits <=
- 76/122: gnu: gtk+-2: Add missing inputs and search-path., guix-commits, 2021/06/11
- 83/122: gnu: gtkmm-2: Fix build., guix-commits, 2021/06/11
- 98/122: gnu: gst-plugins-bad: Update to 1.18.4., guix-commits, 2021/06/11
- 99/122: gnu: gst-plugins-bad: Add missing inputs to enable more features., guix-commits, 2021/06/11
- 105/122: gnu: pango: Use meson-0.55, as required by the project., guix-commits, 2021/06/11
- 101/122: gnu: cairo: Reintroduce security patches [security fixes]., guix-commits, 2021/06/11
- 56/122: gnu: atk: Update to 2.36.0., guix-commits, 2021/06/11
- 100/122: gnu: gst-editing-services: Update to 1.18.4., guix-commits, 2021/06/11
- 108/122: gnu: glib-networking: Update home-page, synopsis, description and license., guix-commits, 2021/06/11
- 115/122: gnu: libsoup: Disable ssl-test., guix-commits, 2021/06/11