gnu: umockdev: Update to 0.17.13.
* gnu/packages/check.scm (umockdev): Update to 0.17.13. [build-system]: Use meson. [phases]{fix-test}: Delete phase. {skip-test-umockdev.c}: New phase. {absolute-introspection-library}: Adjust for meson. [native-inputs]: Sort lexicographically. [inputs]: Add libpcap.
This commit is contained in:
parent
587829ae26
commit
2fb1ff23e1
1 changed files with 22 additions and 17 deletions
|
@ -56,6 +56,7 @@
|
||||||
|
|
||||||
(define-module (gnu packages check)
|
(define-module (gnu packages check)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages admin)
|
||||||
#:use-module (gnu packages autotools)
|
#:use-module (gnu packages autotools)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages bash)
|
#:use-module (gnu packages bash)
|
||||||
|
@ -2902,7 +2903,7 @@ provides a simple way to achieve this.")
|
||||||
(define-public umockdev
|
(define-public umockdev
|
||||||
(package
|
(package
|
||||||
(name "umockdev")
|
(name "umockdev")
|
||||||
(version "0.14.4")
|
(version "0.17.13")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://github.com/martinpitt/umockdev/"
|
(uri (string-append "https://github.com/martinpitt/umockdev/"
|
||||||
|
@ -2910,23 +2911,25 @@ provides a simple way to achieve this.")
|
||||||
"umockdev-" version ".tar.xz"))
|
"umockdev-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0xmi24ckpps32k7hc139psgbsnsf4g106sv4l9m445m46amkxggd"))))
|
"1kqkraag5v1jl5qfv0mb3ckm8yq2im21mng08sbs9dh9c9pbyvkc"))))
|
||||||
(build-system gnu-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:phases
|
(list #:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-test
|
(add-after 'unpack 'skip-test-umockdev.c
|
||||||
|
;; This test depends on /sys being available, among other
|
||||||
|
;; things.
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "tests/test-umockdev.c"
|
(call-with-output-file "tests/test-umockdev.c"
|
||||||
(("/run") "/tmp"))))
|
(lambda (port)
|
||||||
|
(format port "int main(void) { return 0; }")))))
|
||||||
;; Avoid having to set 'LD_LIBRARY_PATH' to use umockdev
|
;; Avoid having to set 'LD_LIBRARY_PATH' to use umockdev
|
||||||
;; via introspection.
|
;; via introspection.
|
||||||
(add-after 'unpack 'absolute-introspection-library
|
(add-after 'unpack 'absolute-introspection-library
|
||||||
(lambda _
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(substitute* "Makefile.in"
|
(substitute* "meson.build"
|
||||||
(("g-ir-compiler -l libumockdev")
|
(("libumockdev.so.0" all)
|
||||||
(string-append "g-ir-compiler -l " #$output
|
(string-append #$output "/lib/" all)))))
|
||||||
"/lib/libumockdev")))))
|
|
||||||
(add-after 'install 'absolute-filenames
|
(add-after 'install 'absolute-filenames
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; 'patch-shebangs' will take care of the shebang.
|
;; 'patch-shebangs' will take care of the shebang.
|
||||||
|
@ -2935,17 +2938,19 @@ provides a simple way to achieve this.")
|
||||||
(("libumockdev")
|
(("libumockdev")
|
||||||
(string-append #$output "/lib/libumockdev"))))))))
|
(string-append #$output "/lib/libumockdev"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list vala
|
(list gobject-introspection
|
||||||
gobject-introspection
|
|
||||||
gtk-doc/stable
|
gtk-doc/stable
|
||||||
pkg-config
|
pkg-config
|
||||||
;; For tests.
|
|
||||||
python
|
python
|
||||||
|
vala
|
||||||
which))
|
which))
|
||||||
(inputs
|
(inputs
|
||||||
(list bash-minimal ;for umockdev-wrapper
|
(list bash-minimal ;for umockdev-wrapper
|
||||||
coreutils-minimal ;for bin/env
|
coreutils-minimal ;for bin/env
|
||||||
glib eudev libgudev))
|
eudev
|
||||||
|
glib
|
||||||
|
libgudev
|
||||||
|
libpcap))
|
||||||
(home-page "https://github.com/martinpitt/umockdev/")
|
(home-page "https://github.com/martinpitt/umockdev/")
|
||||||
(synopsis "Mock hardware devices for creating unit tests")
|
(synopsis "Mock hardware devices for creating unit tests")
|
||||||
(description "umockdev mocks hardware devices for creating integration
|
(description "umockdev mocks hardware devices for creating integration
|
||||||
|
|
Reference in a new issue