gnu: libcloudproviders-minimal: Introduce minimal variant.
* gnu/packages/gnome.scm (libcloudproviders-minimal): New minimal variant that doesn't require Inkscape to be built (through gtk-doc). [source]: Adjust URI. [outputs]: Remove field. [configure-flags]: Disable introspection, docs and vala bindings. [phases]{move-doc}: Move phase to ... (libcloudproviders)[phases]: ... here. Rewrite in terms of libcloudproviders-minimal. The "doc" output is moved here. [configure-flags]: Clear inherited flags and enable doc. * gnu/packages/gtk.scm (gtk+)[inputs]{libcloudproviders}: Use the minimal variant to prevent a cycle with Inkscape.
This commit is contained in:
parent
8dec1804a5
commit
0195d4b1c3
2 changed files with 37 additions and 25 deletions
|
@ -39,7 +39,7 @@
|
||||||
;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
|
;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
|
||||||
;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
|
;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
|
||||||
;;; Copyright © 2019 Jonathan Frederickson <jonathan@terracrypt.net>
|
;;; Copyright © 2019 Jonathan Frederickson <jonathan@terracrypt.net>
|
||||||
;;; Copyright © 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
|
;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
|
||||||
;;; Copyright © 2019 David Wilson <david@daviwil.com>
|
;;; Copyright © 2019 David Wilson <david@daviwil.com>
|
||||||
;;; Copyright © 2019, 2020 Raghav Gururajan <raghavgururajan@disroot.org>
|
;;; Copyright © 2019, 2020 Raghav Gururajan <raghavgururajan@disroot.org>
|
||||||
|
@ -338,41 +338,28 @@ Desktop. It is designed to be as simple as possible and has some unique
|
||||||
features to enable users to create their discs easily and quickly.")
|
features to enable users to create their discs easily and quickly.")
|
||||||
(license license:gpl2+)))
|
(license license:gpl2+)))
|
||||||
|
|
||||||
(define-public libcloudproviders
|
;;; Minimal variant, used to break a cycle with Inkscape.
|
||||||
|
(define-public libcloudproviders-minimal
|
||||||
(package
|
(package
|
||||||
(name "libcloudproviders")
|
(name "libcloudproviders-minimal")
|
||||||
(version "0.3.1")
|
(version "0.3.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri
|
(uri
|
||||||
(string-append "mirror://gnome/sources/" name "/"
|
(string-append "mirror://gnome/sources/libcloudproviders/"
|
||||||
(version-major+minor version) "/"
|
(version-major+minor version)
|
||||||
name "-" version ".tar.xz"))
|
"/libcloudproviders-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0aars24myf6n8b8hm1n12hsgcm54097kpbpm4ba31zp1l4y22qs7"))))
|
(base32 "0aars24myf6n8b8hm1n12hsgcm54097kpbpm4ba31zp1l4y22qs7"))))
|
||||||
(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
|
#:configure-flags (list "-Dintrospection=false"
|
||||||
(list
|
"-Denable-gtk-doc=false"
|
||||||
"-Denable-gtk-doc=true")
|
"-Dvapigen=false")))
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-after 'install 'move-doc
|
|
||||||
(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
|
||||||
`(("glib:bin" ,glib "bin")
|
`(("glib:bin" ,glib "bin")
|
||||||
("gobject-introspection" ,gobject-introspection)
|
|
||||||
("gtk-doc" ,gtk-doc/stable)
|
|
||||||
("pkg-config" ,pkg-config)
|
("pkg-config" ,pkg-config)
|
||||||
("vala" ,vala)))
|
("vala" ,vala)))
|
||||||
(inputs
|
(inputs
|
||||||
|
@ -386,6 +373,31 @@ services.")
|
||||||
(home-page "https://csorianognome.wordpress.com/2015/07/07/cloud-providers/")
|
(home-page "https://csorianognome.wordpress.com/2015/07/07/cloud-providers/")
|
||||||
(license license:lgpl3+)))
|
(license license:lgpl3+)))
|
||||||
|
|
||||||
|
(define-public libcloudproviders
|
||||||
|
(package/inherit libcloudproviders-minimal
|
||||||
|
(name "libcloudproviders")
|
||||||
|
(version "0.3.1")
|
||||||
|
(outputs (cons "doc" (package-outputs libcloudproviders-minimal)))
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments libcloudproviders-minimal)
|
||||||
|
((#:configure-flags _)
|
||||||
|
'(list "-Denable-gtk-doc=true")) ;false by default
|
||||||
|
((#:phases phases '%standard-phases)
|
||||||
|
`(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'move-doc
|
||||||
|
(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
|
||||||
|
`(("gobject-introspection" ,gobject-introspection)
|
||||||
|
("gtk-doc" ,gtk-doc/stable))
|
||||||
|
(package-native-inputs libcloudproviders-minimal)))))
|
||||||
|
|
||||||
(define-public libgrss
|
(define-public libgrss
|
||||||
(package
|
(package
|
||||||
(name "libgrss")
|
(name "libgrss")
|
||||||
|
|
|
@ -1005,7 +1005,7 @@ application suites.")
|
||||||
gdk-pixbuf+svg
|
gdk-pixbuf+svg
|
||||||
gdk-pixbuf))
|
gdk-pixbuf))
|
||||||
("glib" ,glib)
|
("glib" ,glib)
|
||||||
("libcloudproviders" ,libcloudproviders)
|
("libcloudproviders" ,libcloudproviders-minimal)
|
||||||
("libepoxy" ,libepoxy)
|
("libepoxy" ,libepoxy)
|
||||||
("libx11" ,libx11)
|
("libx11" ,libx11)
|
||||||
("libxcomposite" ,libxcomposite)
|
("libxcomposite" ,libxcomposite)
|
||||||
|
|
Reference in a new issue