gnu: libportal: Update to 0.4.

* gnu/packages/freedesktop.scm (libportal): Update to 0.4.
[source]: Use the version as commit field.
This commit is contained in:
Mathieu Othacehe 2021-09-24 14:10:51 +00:00
parent 75fda6a011
commit 1e02955ea4
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -2303,48 +2303,46 @@ fallback to generic Systray support if none of those are available.")
(license license:lgpl2.1+))) (license license:lgpl2.1+)))
(define-public libportal (define-public libportal
(let ((commit "bff3289") (package
(revision "1")) (name "libportal")
(package (version "0.4")
(name "libportal") (source (origin
(version (git-version "0.3" revision commit)) (method git-fetch)
(source (origin (uri (git-reference
(method git-fetch) (url "https://github.com/flatpak/libportal")
(uri (git-reference (commit version)))
(url "https://github.com/flatpak/libportal") (file-name (git-file-name name version))
(commit commit))) (sha256
(file-name (git-file-name name version)) (base32
(sha256 "1jh6wd96y4i218zbmmqw12zir8p88nm8dlsa3yx3lsqxd5c1krky"))))
(base32 (build-system meson-build-system)
"104b91qircr1i9jkmm6f725awywky52aimrki303kiaadn2v8b5i")))) (arguments
(build-system meson-build-system) `(#:phases
(arguments (modify-phases %standard-phases
`(#:phases (add-after 'install 'move-doc
(modify-phases %standard-phases (lambda* (#:key outputs #:allow-other-keys)
(add-after 'install 'move-doc (let ((out (assoc-ref outputs "out"))
(lambda* (#:key outputs #:allow-other-keys) (doc (assoc-ref outputs "doc"))
(let ((out (assoc-ref outputs "out")) (html "/share/gtk-doc"))
(doc (assoc-ref outputs "doc")) (copy-recursively (string-append out html)
(html "/share/gtk-doc")) (string-append doc html))
(copy-recursively (string-append out html) (delete-file-recursively (string-append out html))
(string-append doc html)) #t))))))
(delete-file-recursively (string-append out html)) (native-inputs
#t)))))) `(("pkg-config" ,pkg-config)
(native-inputs ("gtk-doc" ,gtk-doc/stable)
`(("pkg-config" ,pkg-config) ("docbook-xsl" ,docbook-xsl)
("gtk-doc" ,gtk-doc/stable) ("docbook-xml" ,docbook-xml)
("docbook-xsl" ,docbook-xsl) ("libxml2" ,libxml2)
("docbook-xml" ,docbook-xml) ("glib:bin" ,glib "bin")))
("libxml2" ,libxml2) (propagated-inputs
("glib:bin" ,glib "bin"))) `(("glib" ,glib)))
(propagated-inputs (outputs '("out" "doc"))
`(("glib" ,glib))) (home-page "https://github.com/flatpak/libportal")
(outputs '("out" "doc")) (synopsis "Flatpak portal library")
(home-page "https://github.com/flatpak/libportal") (description
(synopsis "Flatpak portal library") "libportal provides GIO-style async APIs for most Flatpak portals.")
(description (license license:lgpl2.1+)))
"libportal provides GIO-style async APIs for most Flatpak portals.")
(license license:lgpl2.1+))))
(define-public xdg-desktop-portal (define-public xdg-desktop-portal
(package (package