[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
42/44: gnu: glib-with-documentation: Update package definition.
From: |
guix-commits |
Subject: |
42/44: gnu: glib-with-documentation: Update package definition. |
Date: |
Thu, 25 Jun 2020 08:20:59 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 407016c2f84df2099ce0a3570731674a144e5656
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Wed Jun 24 22:15:44 2020 -0400
gnu: glib-with-documentation: Update package definition.
* gnu/packages/glib.scm (glib-with-documentation): Update package
definition.
[properties]: Remove field.
[native-inputs]: Remove libxml2.
[arguments]<#:phases>['patch-docbook-xml]: New phase.
['move-doc]: Modify phase.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/glib.scm | 29 +++++++++++++++++++++--------
1 file changed, 21 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
index a1b7125..271b8a0 100644
--- a/gnu/packages/glib.scm
+++ b/gnu/packages/glib.scm
@@ -292,27 +292,40 @@ threads, dynamic loading, and an object system.")
;; which in turn depends on glib.
(package
(inherit glib)
- (properties (alist-delete 'hidden? (package-properties glib)))
- (outputs (cons "doc" (package-outputs glib))) ; 20 MiB of GTK-Doc reference
(native-inputs
- `(("gtk-doc" ,gtk-doc) ; for the doc
- ("docbook-xml" ,docbook-xml)
- ("libxml2" ,libxml2)
+ `(("gtk-doc" ,gtk-doc)
+ ("docbook-xml-4.2" ,docbook-xml-4.2)
+ ("docbook-xml-4.5" ,docbook-xml)
,@(package-native-inputs glib)))
+ (outputs (cons "doc" (package-outputs glib)))
(arguments
(substitute-keyword-arguments (package-arguments glib)
((#:configure-flags flags ''())
`(cons "-Dgtk_doc=true" ,flags))
((#:phases phases)
`(modify-phases ,phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "docs/reference"
+ (substitute* '("gio/gdbus-object-manager-example/.*\\.xml"
+ "gio/.*\\.xml" "glib/.*\\.xml"
"gobject/.*\\.xml")
+ (("http://www.oasis-open.org/docbook/xml/4.5/")
+ (string-append (assoc-ref inputs "docbook-xml-4.5")
+ "/xml/dtd/docbook/")))
+ (substitute* "gio/gio.xml"
+ (("http://www.oasis-open.org/docbook/xml/4.2/")
+ (string-append (assoc-ref inputs "docbook-xml-4.2")
+ "/xml/dtd/docbook/"))))
+ #t))
(add-after 'install 'move-doc
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(doc (assoc-ref outputs "doc"))
(html (string-append "/share/gtk-doc")))
- (copy-recursively (string-append out html)
- (string-append doc html))
- (delete-file-recursively (string-append out html))
+ (mkdir-p (string-append doc "/share"))
+ (rename-file
+ (string-append out html)
+ (string-append doc html))
#t)))))))))
(define gobject-introspection
- 27/44: gnu: fcitx: Update package definition., (continued)
- 27/44: gnu: fcitx: Update package definition., guix-commits, 2020/06/25
- 29/44: gnu: gcr: Update to 3.36.0., guix-commits, 2020/06/25
- 32/44: gnu: geoclue: Update to 2.5.6., guix-commits, 2020/06/25
- 39/44: gnu: Add esound., guix-commits, 2020/06/25
- 35/44: gnu: glib-networking: Update to 2.62.4., guix-commits, 2020/06/25
- 41/44: gnu: glib: Update package definition., guix-commits, 2020/06/25
- 16/44: gnu: clutter: Update to 1.26.4., guix-commits, 2020/06/25
- 20/44: gnu: dconf: Update to 0.36.0., guix-commits, 2020/06/25
- 31/44: gnu: gdk-pixbuf+svg: Update package definition., guix-commits, 2020/06/25
- 33/44: gnu: Add sysprof., guix-commits, 2020/06/25
- 42/44: gnu: glib-with-documentation: Update package definition.,
guix-commits <=
- 43/44: gnu: glib-networking: Update to 2.64.3., guix-commits, 2020/06/25
- 44/44: gnu: gobject-introspection: Update package definition., guix-commits, 2020/06/25
- 11/44: gnu: at-spi2-core: Update package definition., guix-commits, 2020/06/25
- 15/44: gnu: font-cantarell: Update package definition., guix-commits, 2020/06/25
- 18/44: gnu: clutter-gst: Update package definition., guix-commits, 2020/06/25
- 19/44: gnu: cogl: Update package definition., guix-commits, 2020/06/25
- 26/44: gnu: Add presage., guix-commits, 2020/06/25
- 28/44: gnu: gcab: Update to 1.4., guix-commits, 2020/06/25
- 30/44: gnu: gdk-pixbuf: Update package definition., guix-commits, 2020/06/25
- 40/44: gnu: faad2: Update to 2.8.8., guix-commits, 2020/06/25