gnu: json-glib-minimal: Introduce minimal variant.
* gnu/packages/gnome.scm (json-glib-minimal): New variable. [source]: Adjust URI. [outputs]: Move doc output to... (json-glib)[outputs]: ... here. Rewrite in terms of json-glib-minimal. * gnu/packages/gtk.scm (gtk+): Use json-glib-minimal to break a cycle with Inkscape.master
parent
d1be2661ca
commit
ff28af501d
|
@ -4590,86 +4590,27 @@ is to provide a backend to GSettings on platforms that don't already have
|
||||||
configuration storage systems.")
|
configuration storage systems.")
|
||||||
(license license:lgpl2.1+)))
|
(license license:lgpl2.1+)))
|
||||||
|
|
||||||
(define-public json-glib
|
(define-public json-glib-minimal
|
||||||
(package
|
(package
|
||||||
(name "json-glib")
|
(name "json-glib-minimal")
|
||||||
(version "1.6.2")
|
(version "1.6.2")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://gnome/sources/" name "/"
|
(uri (string-append "mirror://gnome/sources/json-glib/"
|
||||||
(version-major+minor version) "/"
|
(version-major+minor version)
|
||||||
name "-" version ".tar.xz"))
|
"/json-glib-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"092g2dyy1hhl0ix9kp33wcab0pg1qicnsv0cj5ms9g9qs336cgd3"))))
|
"092g2dyy1hhl0ix9kp33wcab0pg1qicnsv0cj5ms9g9qs336cgd3"))))
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(outputs '("out" "doc"))
|
|
||||||
(arguments
|
(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"
|
|
||||||
,@(if (%current-target-system)
|
|
||||||
;; If enabled, gtkdoc-scangobj will try to execute a
|
|
||||||
;; cross-compiled binary.
|
|
||||||
'("-Dgtk_doc=disabled"
|
|
||||||
;; Trying to build introspection data when cross-compiling
|
|
||||||
;; causes errors during linking.
|
|
||||||
"-Dintrospection=disabled")
|
|
||||||
'()))
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'patch-docbook
|
|
||||||
;; TODO(core-updates): Use (or native-inputs inputs)
|
|
||||||
;; unconditionally.
|
|
||||||
(lambda* (#:key ,@(if (%current-target-system)
|
|
||||||
'(native-inputs)
|
|
||||||
'()) 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 ,(if (%current-target-system)
|
|
||||||
'(or native-inputs inputs)
|
|
||||||
'inputs)
|
|
||||||
"docbook-xml")
|
|
||||||
"/xml/dtd/docbook/")))
|
|
||||||
(substitute* "meson.build"
|
|
||||||
(("http://docbook.sourceforge.net/release/xsl/current/")
|
|
||||||
(string-append (assoc-ref ,(if (%current-target-system)
|
|
||||||
'(or native-inputs inputs)
|
|
||||||
'inputs) "docbook-xsl")
|
|
||||||
"/xml/xsl/docbook-xsl-1.79.2/"))))
|
|
||||||
#t))
|
|
||||||
;; 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"))
|
|
||||||
#t)))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("docbook-xml" ,docbook-xml-4.3)
|
`(("gettext" ,gettext-minimal)
|
||||||
("docbook-xsl" ,docbook-xsl)
|
("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
|
||||||
("gettext" ,gettext-minimal)
|
("pkg-config" ,pkg-config)))
|
||||||
("glib" ,glib "bin") ;for glib-mkenums and glib-genmarshal
|
|
||||||
("gobject-introspection" ,gobject-introspection)
|
|
||||||
("gtk-doc" ,gtk-doc)
|
|
||||||
("pkg-config" ,pkg-config)
|
|
||||||
("xsltproc" ,libxslt)))
|
|
||||||
(inputs
|
(inputs
|
||||||
;; TODO(core-updates): Make this input unconditional.
|
`(("bash-minimal" ,bash-minimal)))
|
||||||
(if (%current-target-system)
|
|
||||||
`(("bash-minimal" ,bash-minimal))
|
|
||||||
'()))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("glib" ,glib))) ;according to json-glib-1.0.pc
|
`(("glib" ,glib))) ;according to json-glib-1.0.pc
|
||||||
(home-page "https://wiki.gnome.org/Projects/JsonGlib")
|
(home-page "https://wiki.gnome.org/Projects/JsonGlib")
|
||||||
|
@ -4679,6 +4620,61 @@ described by RFC 4627. It implements a full JSON parser and generator using
|
||||||
GLib and GObject, and integrates JSON with GLib data types.")
|
GLib and GObject, and integrates JSON with GLib data types.")
|
||||||
(license license:lgpl2.1+)))
|
(license license:lgpl2.1+)))
|
||||||
|
|
||||||
|
(define-public json-glib
|
||||||
|
(package/inherit json-glib-minimal
|
||||||
|
(name "json-glib")
|
||||||
|
(outputs (cons "doc" (package-outputs json-glib-minimal)))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments json-glib-minimal)
|
||||||
|
((#:configure-flags _)
|
||||||
|
`(list "-Ddocs=true"
|
||||||
|
"-Dman=true"
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
;; If enabled, gtkdoc-scangobj will try to execute a
|
||||||
|
;; cross-compiled binary.
|
||||||
|
'("-Dgtk_doc=disabled"
|
||||||
|
;; Trying to build introspection data when cross-compiling
|
||||||
|
;; causes errors during linking.
|
||||||
|
"-Dintrospection=disabled")
|
||||||
|
'())))
|
||||||
|
((#:phases phases '%standard-phases)
|
||||||
|
`(modify-phases ,phases
|
||||||
|
(add-after 'unpack 'patch-docbook
|
||||||
|
(lambda* (#:key native-inputs 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 (or native-inputs inputs)
|
||||||
|
"docbook-xml")
|
||||||
|
"/xml/dtd/docbook/")))
|
||||||
|
(substitute* "meson.build"
|
||||||
|
(("http://docbook.sourceforge.net/release/xsl/current/")
|
||||||
|
(string-append (assoc-ref (or native-inputs inputs)
|
||||||
|
"docbook-xsl")
|
||||||
|
"/xml/xsl/docbook-xsl-1.79.2/"))))))
|
||||||
|
;; 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
|
||||||
|
(append
|
||||||
|
`(("docbook-xml" ,docbook-xml-4.3)
|
||||||
|
("docbook-xsl" ,docbook-xsl)
|
||||||
|
("gobject-introspection" ,gobject-introspection)
|
||||||
|
("gtk-doc" ,gtk-doc)
|
||||||
|
("xsltproc" ,libxslt))
|
||||||
|
(package-native-inputs json-glib-minimal)))))
|
||||||
|
|
||||||
(define-public libxklavier
|
(define-public libxklavier
|
||||||
(package
|
(package
|
||||||
(name "libxklavier")
|
(name "libxklavier")
|
||||||
|
|
|
@ -1028,7 +1028,7 @@ application suites.")
|
||||||
("graphene" ,graphene)
|
("graphene" ,graphene)
|
||||||
("harfbuzz" ,harfbuzz)
|
("harfbuzz" ,harfbuzz)
|
||||||
("iso-codes" ,iso-codes)
|
("iso-codes" ,iso-codes)
|
||||||
("json-glib" ,json-glib)
|
("json-glib" ,json-glib-minimal)
|
||||||
("libxml2" ,libxml2)
|
("libxml2" ,libxml2)
|
||||||
("rest" ,rest)))
|
("rest" ,rest)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Reference in New Issue