gnu: libinput: Update to 1.9.3.

* gnu/packages/freedesktop.scm (libinput): Update to 1.9.3.
[build-system]: Switch to meson-build-system.
[arguments]: Disable documentation.
[native-inputs]: Add check and valgrind for tests.
(libinput-minimal)[native-inputs]: Add check, valgrind.
[arguments]: Disable libwacom, documentation and debug-gui.
This commit is contained in:
Efraim Flashner 2017-12-08 09:25:40 +02:00
parent 57dfd28826
commit 5f5083749c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -33,6 +33,7 @@ (define-module (gnu packages freedesktop)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
#:use-module (guix build-system perl) #:use-module (guix build-system perl)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module (gnu packages acl) #:use-module (gnu packages acl)
@ -67,6 +68,7 @@ (define-module (gnu packages freedesktop)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages perl-check) #:use-module (gnu packages perl-check)
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages valgrind)
#:use-module (gnu packages w3m) #:use-module (gnu packages w3m)
#:use-module (gnu packages web) #:use-module (gnu packages web)
#:use-module (gnu packages xml) #:use-module (gnu packages xml)
@ -141,19 +143,22 @@ (define-public xdg-utils
(define-public libinput (define-public libinput
(package (package
(name "libinput") (name "libinput")
(version "1.7.3") (version "1.9.3")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://freedesktop.org/software/libinput/" (uri (string-append "https://freedesktop.org/software/libinput/"
name "-" version ".tar.xz")) name "-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"07fbzxddvhjcch43hdxb24sj7ri96zzpcjalvsicmw0i4wnn2v89")))) "09wkc5qqk1k2a68cwfy4x853z8z35wf2qkijh66kacsvc2fjq394"))))
(build-system gnu-build-system) (build-system meson-build-system)
(arguments '(#:configure-flags '("-Ddocumentation=false")))
(native-inputs (native-inputs
`(("cairo" ,cairo) `(("cairo" ,cairo)
("check" ,check)
("gtk+" ,gtk+) ("gtk+" ,gtk+)
("pkg-config" ,pkg-config))) ("pkg-config" ,pkg-config)
("valgrind" ,valgrind)))
(propagated-inputs (propagated-inputs
`(("libudev" ,eudev))) ; required by libinput.pc `(("libudev" ,eudev))) ; required by libinput.pc
(inputs (inputs
@ -172,13 +177,17 @@ (define-public libinput-minimal
(package (inherit libinput) (package (inherit libinput)
(name "libinput-minimal") (name "libinput-minimal")
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config))) `(("check" ,check)
("pkg-config" ,pkg-config)
("valgrind" ,valgrind)))
(inputs (inputs
`(("libevdev" ,libevdev) `(("libevdev" ,libevdev)
("mtdev" ,mtdev))) ("mtdev" ,mtdev)))
(arguments (arguments
`(#:configure-flags '(#:configure-flags
'("--disable-libwacom"))))) '("-Dlibwacom=false"
"-Ddocumentation=false"
"-Ddebug-gui=false"))))) ; requires gtk+@3
(define-public libxdg-basedir (define-public libxdg-basedir
(package (package