gnu: libgweather: Update to 3.18.1, enable tests.

* gnu/packages/gnome.scm (libgweather): Update to 3.18.1.  Enable tests.
  [native-inputs]: Add gobject-introspection.
This commit is contained in:
宋文武 2015-11-10 13:51:28 +08:00
parent d2ab0e90c6
commit b6072e6b90
1 changed files with 17 additions and 13 deletions

View File

@ -2377,7 +2377,7 @@ service via the system message bus.")
(define-public libgweather (define-public libgweather
(package (package
(name "libgweather") (name "libgweather")
(version "3.16.0") (version "3.18.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://gnome/sources/" name "/" (uri (string-append "mirror://gnome/sources/" name "/"
@ -2385,22 +2385,26 @@ service via the system message bus.")
name "-" version ".tar.xz")) name "-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"0x1z6wv7hdw2ivlkifcbd940zyrnvqvc4zh2drgvd2r6jmd7bjza")))) "1l3sra84k5dnavbdbjyf1ar84xmjszpnnldih6mf45kniwpjkcll"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(;; The tests want to write to $HOME/.cache/geocode-glib, which doesn't `(#:configure-flags
;; work for the builder. Punt. `(,(string-append "--with-zoneinfo-dir="
#:tests? #f (assoc-ref %build-inputs "tzdata")
#:configure-flags "/share/zoneinfo"))
`(;; No introspection for now, as it wants to install to #:phases
;; gobject-introspection's own directory and I don't know how to easily (modify-phases %standard-phases
;; override this. (add-before
"--enable-introspection=no" 'check 'pre-check
,(string-append "--with-zoneinfo-dir=" (lambda* (#:key inputs #:allow-other-keys)
(assoc-ref %build-inputs "tzdata") (substitute* "data/check-timezones.sh"
"/share/zoneinfo")))) (("/usr/share/zoneinfo/zone.tab")
(string-append (assoc-ref inputs "tzdata")
"/share/zoneinfo/zone.tab")))
#t)))))
(native-inputs (native-inputs
`(("glib:bin" ,glib "bin") ; for glib-mkenums `(("glib:bin" ,glib "bin") ; for glib-mkenums
("gobject-introspection" ,gobject-introspection)
("pkg-config" ,pkg-config) ("pkg-config" ,pkg-config)
("intltool" ,intltool))) ("intltool" ,intltool)))
(propagated-inputs (propagated-inputs