me
/
guix
Archived
1
0
Fork 0

gnu: geocode-glib: Update to 3.26.4 and build with libsoup 3.

* gnu/packages/gnome.scm (geocode-glib): Update to 3.26.4.
[arguments]: Use gexps.
[configure-flags]: Add "-Dsoup2=false".
[native-inputs, inputs]: Remove labels.
[propagated-inputs]: Replace libsoup-minimal-2 with libsoup.
(geocode-glib-with-libsoup2): New variable.
(gnome-settings-daemon)[inputs]: Replace geocode-glib with
geocode-glib-with-libsoup2.
(gnome-clocks): Replace geocode-glib with geocode-glib-with-libsoup2.
master
Maxim Cournoyer 2022-08-22 20:59:58 -04:00
parent bbe444bcc1
commit c73d0555fe
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
2 changed files with 34 additions and 20 deletions

View File

@ -5432,7 +5432,7 @@ permission from user.")
(define-public geocode-glib (define-public geocode-glib
(package (package
(name "geocode-glib") (name "geocode-glib")
(version "3.26.2") (version "3.26.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://gnome/sources/geocode-glib/" (uri (string-append "mirror://gnome/sources/geocode-glib/"
@ -5440,29 +5440,31 @@ permission from user.")
"geocode-glib-" version ".tar.xz")) "geocode-glib-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"1l8g0f13xgkrk335afr9w8k46mziwb2jnyhl07jccl5yl37q9zh1")))) "1aipd82qk404qy88pyfgplzgi83db4hi51vkl54h8isqs4k6i6id"))))
(build-system meson-build-system) (build-system meson-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:configure-flags #~(list "-Dsoup2=false")
;; The tests require a bunch of locales. #:phases
(add-before 'check 'set-locales #~(modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) ;; The tests require a bunch of locales.
(setenv "GUIX_LOCPATH" (add-before 'check 'set-locales
(search-input-directory inputs "lib/locale"))))))) (lambda* (#:key inputs #:allow-other-keys)
(setenv "GUIX_LOCPATH"
(search-input-directory inputs "lib/locale")))))))
(native-inputs (native-inputs
`(("glib:bin" ,glib "bin") ; for glib-mkenums (list `(,glib "bin") ;for glib-mkenums
("glibc-locales" ,glibc-locales) ; for tests glibc-locales ;for tests
("gettext" ,gettext-minimal) gettext-minimal
("gobject-introspection" ,gobject-introspection) gobject-introspection
("gtk-doc" ,gtk-doc/stable) gtk-doc/stable
("pkg-config" ,pkg-config) pkg-config
("json-glib" ,json-glib))) json-glib))
(propagated-inputs (propagated-inputs
;; geocode-glib-1.0.pc refers to GIO. ;; geocode-glib-2.0.pc refers to GIO.
(list glib)) (list glib))
(inputs (inputs
`(("libsoup" ,libsoup-minimal-2))) (list libsoup))
(home-page "https://github.com/GNOME/geocode-glib/") (home-page "https://github.com/GNOME/geocode-glib/")
(synopsis "Geocoding and reverse-geocoding library") (synopsis "Geocoding and reverse-geocoding library")
(description (description
@ -5472,6 +5474,16 @@ coordinates) using the Nominatim service. geocode-glib caches requests for
faster results and to avoid unnecessary server load.") faster results and to avoid unnecessary server load.")
(license license:lgpl2.0+))) (license license:lgpl2.0+)))
(define-public geocode-glib-with-libsoup2
(package
(inherit geocode-glib)
(name "geocode-glib-with-libsoup2")
(arguments (substitute-keyword-arguments (package-arguments geocode-glib)
((#:configure-flags flags ''())
#~(delete "-Dsoup2=false" #$flags))))
(inputs (modify-inputs (package-inputs geocode-glib)
(replace "libsoup" libsoup-minimal-2)))))
(define-public upower (define-public upower
(package (package
(name "upower") (name "upower")
@ -5698,7 +5710,7 @@ services for numerous locations.")
lcms lcms
libnotify libnotify
geoclue geoclue
geocode-glib geocode-glib-with-libsoup2
libgweather libgweather
gnome-desktop gnome-desktop
nss nss
@ -9847,7 +9859,7 @@ Microsoft SkyDrive and Hotmail, using their REST protocols.")
gtk+ gtk+
gsound gsound
geoclue geoclue
geocode-glib geocode-glib-with-libsoup2
libgweather libgweather
libhandy libhandy
gnome-desktop)) gnome-desktop))

View File

@ -1,3 +1,5 @@
Allow the configuration file to be specified via an environment variable.
diff --git a/src/gclue-config.c b/src/gclue-config.c diff --git a/src/gclue-config.c b/src/gclue-config.c
index 7ab2a67..e41f3df 100644 index 7ab2a67..e41f3df 100644
--- a/src/gclue-config.c --- a/src/gclue-config.c