gnu: json-glib: Remove patch-docbook-xml phase.
* gnu/packages/gnome.scm (json-glib) [arguments]: Remove patch-docbook-xml phase. Use gexps. [native-inputs]: Use modify-inputs. Remove labels.master
parent
35ba2fa4c2
commit
7aff6a08c7
|
@ -4715,53 +4715,38 @@ GLib and GObject, and integrates JSON with GLib data types.")
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments json-glib-minimal)
|
(substitute-keyword-arguments (package-arguments json-glib-minimal)
|
||||||
((#:configure-flags _)
|
((#:configure-flags _)
|
||||||
`(list "-Ddocs=true"
|
#~(list "-Ddocs=true"
|
||||||
"-Dman=true"
|
"-Dman=true"
|
||||||
,@(if (%current-target-system)
|
#$@(if (%current-target-system)
|
||||||
;; If enabled, gtkdoc-scangobj will try to execute a
|
;; If enabled, gtkdoc-scangobj will try to execute a
|
||||||
;; cross-compiled binary.
|
;; cross-compiled binary.
|
||||||
'("-Dgtk_doc=disabled"
|
#~("-Dgtk_doc=disabled"
|
||||||
;; Trying to build introspection data when cross-compiling
|
;; Trying to build introspection data when cross-compiling
|
||||||
;; causes errors during linking.
|
;; causes errors during linking.
|
||||||
"-Dintrospection=disabled")
|
"-Dintrospection=disabled")
|
||||||
'())))
|
#~())))
|
||||||
((#:phases phases '%standard-phases)
|
((#:phases phases '%standard-phases)
|
||||||
`(modify-phases ,phases
|
#~(modify-phases #$phases
|
||||||
(add-after 'unpack 'patch-docbook
|
;; When cross-compiling, there are no docs to move.
|
||||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
#$@(if (%current-target-system)
|
||||||
(with-directory-excursion "doc"
|
#~((add-after 'install 'stub-docs
|
||||||
(substitute* (find-files "." "\\.xml$")
|
(lambda _
|
||||||
(("http://www.oasis-open.org/docbook/xml/4\\.3/")
|
;; The daemon doesn't like empty output paths.
|
||||||
(string-append (assoc-ref (or native-inputs inputs)
|
(mkdir #$output:doc))))
|
||||||
"docbook-xml")
|
#~((add-after 'install 'move-docs
|
||||||
"/xml/dtd/docbook/")))
|
(lambda _
|
||||||
(substitute* "meson.build"
|
(mkdir-p (string-append #$output:doc "/share"))
|
||||||
(("http://docbook.sourceforge.net/release/xsl/current/")
|
(rename-file
|
||||||
(string-append (assoc-ref (or native-inputs inputs)
|
(string-append #$output "/share/gtk-doc")
|
||||||
"docbook-xsl")
|
(string-append #$output:doc
|
||||||
"/xml/xsl/docbook-xsl-1.79.2/"))))))
|
"/share/gtk-doc"))))))))))
|
||||||
;; When cross-compiling, there are no docs to move.
|
|
||||||
,(if (%current-target-system)
|
|
||||||
'(add-after 'install 'stub-docs
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
;; The daemon doesn't like empty output paths.
|
|
||||||
(mkdir (assoc-ref outputs "doc"))))
|
|
||||||
'(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"))))))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(append
|
(modify-inputs (package-native-inputs json-glib-minimal)
|
||||||
`(("docbook-xml" ,docbook-xml-4.3)
|
(prepend docbook-xml-4.3
|
||||||
("docbook-xsl" ,docbook-xsl)
|
docbook-xsl
|
||||||
("gobject-introspection" ,gobject-introspection)
|
gobject-introspection
|
||||||
("gtk-doc" ,gtk-doc)
|
gtk-doc
|
||||||
("xsltproc" ,libxslt))
|
libxslt)))))
|
||||||
(package-native-inputs json-glib-minimal)))))
|
|
||||||
|
|
||||||
(define-public libxklavier
|
(define-public libxklavier
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue