From 85eaa9727a5af735f398e8b571a47325c99ce88a Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Fri, 5 Jun 2020 01:48:07 -0400 Subject: [PATCH 17/54] gnu: geoclue: Update to 2.5.6. * gnu/packages/gnome.scm (geoclue): Update package definition. [version]: Update to 2.5.6. [source][method]: Change from url-fetch to git-fetch. [outputs]: New output 'doc'. [arguments]<#:glib-or-gtk?>: New argument. <#:phases>['patch-docbook-xml]: New phase. ['move-doc]: New phase. [native-inputs]: Add docbook-xml, glib:bin and vala. Remove libnotify and modem-manager. [inputs]: Add libnotify and modem-manager. [propagated-inputs]: Add glib. [synopsis]: Modify. [description]: Modify. --- gnu/packages/gnome.scm | 65 +++++++++++++++++++++++++++++------------- 1 file changed, 45 insertions(+), 20 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index ca66818de2..ba01928aa8 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -4345,40 +4345,65 @@ output devices.") (define-public geoclue (package (name "geoclue") - (version "2.5.5") + (version "2.5.6") (source (origin - (method url-fetch) + (method git-fetch) (uri - (string-append "https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/" - version "/geoclue-" version ".tar.bz2")) + (git-reference + (url "https://gitlab.freedesktop.org/geoclue/geoclue.git") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1b7jqrsn4x7mxjxj8hvb2dl2cmhrpb9vibs4rvkkanky5nsx3sai")) - (patches (search-patches "geoclue-config.patch")))) + (base32 "13fk6n4j74lvcsrg3kwbw1mkxgcr3iy9dnysmy0pclfsym8z5m5m")))) (build-system meson-build-system) + (outputs '("out" "doc")) (arguments - '(#:configure-flags (list "-Dbus-srv-user=geoclue"))) + `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas + #:configure-flags + (list + "-Ddbus-srv-user=geoclue") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-docbook-xml + (lambda* (#:key inputs #:allow-other-keys) + (with-directory-excursion "docs" + (substitute* '("geoclue-docs.xml" "lib/libgeoclue-docs.xml") + (("http://www.oasis-open.org/docbook/xml/4.1.2/") + (string-append (assoc-ref inputs "docbook-xml") + "/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"))) + (mkdir-p (string-append doc "/share")) + (rename-file + (string-append out "/share/gtk-doc") + (string-append doc "/share/gtk-doc")) + #t)))))) (native-inputs - `(("pkg-config" ,pkg-config) + `(("docbook-xml" ,docbook-xml-4.1.2) + ("glib:bin" ,glib "bin") ("gobject-introspection" ,gobject-introspection) - ("modem-manager" ,modem-manager) - ("libnotify" ,libnotify) ("gtk-doc", gtk-doc) - ("intltool" ,intltool))) + ("intltool" ,intltool) + ("pkg-config" ,pkg-config) + ("vala" ,vala))) (inputs `(("avahi" ,avahi) - ("glib:bin" ,glib "bin") ("glib-networking" ,glib-networking) ("json-glib" ,json-glib) - ("libsoup" ,libsoup))) + ("libnotify" ,libnotify) + ("libsoup" ,libsoup) + ("modem-manager" ,modem-manager))) + (propagated-inputs + `(("glib" ,glib))) + (synopsis "Geoinformation Service") + (description "Geoclue is a D-Bus geoinformation service. The goal of the +Geoclue project is to make creating location-aware applications as simple as +possible.") (home-page "https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home") - (synopsis "Geolocation service") - (description "Geoclue is a D-Bus service that provides location -information. The primary goal of the Geoclue project is to make creating -location-aware applications as simple as possible, while the secondary goal is -to ensure that no application can access location information without explicit -permission from user.") (license license:gpl2+))) (define-public geocode-glib -- 2.26.2