build-system/meson: Use invoke.
* guix/build/meson-build-system.scm (configure, build, check, install): Use "invoke" and unconditionally return #t.
This commit is contained in:
parent
f1728d4346
commit
302213b9be
1 changed files with 13 additions and 10 deletions
|
@ -1,5 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
|
;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
|
||||||
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -58,15 +59,17 @@
|
||||||
|
|
||||||
(mkdir build-dir)
|
(mkdir build-dir)
|
||||||
(chdir build-dir)
|
(chdir build-dir)
|
||||||
(zero? (apply system* "meson" args))))
|
(apply invoke "meson" args)
|
||||||
|
#t))
|
||||||
|
|
||||||
(define* (build #:key parallel-build?
|
(define* (build #:key parallel-build?
|
||||||
#:allow-other-keys)
|
#:allow-other-keys)
|
||||||
"Build a given meson package."
|
"Build a given meson package."
|
||||||
(zero? (apply system* "ninja"
|
(apply invoke "ninja"
|
||||||
(if parallel-build?
|
(if parallel-build?
|
||||||
`("-j" ,(number->string (parallel-job-count)))
|
`("-j" ,(number->string (parallel-job-count)))
|
||||||
'("-j" "1")))))
|
'("-j" "1")))
|
||||||
|
#t)
|
||||||
|
|
||||||
(define* (check #:key test-target parallel-tests? tests?
|
(define* (check #:key test-target parallel-tests? tests?
|
||||||
#:allow-other-keys)
|
#:allow-other-keys)
|
||||||
|
@ -75,13 +78,13 @@
|
||||||
(number->string (parallel-job-count))
|
(number->string (parallel-job-count))
|
||||||
"1"))
|
"1"))
|
||||||
(if tests?
|
(if tests?
|
||||||
(zero? (system* "ninja" test-target))
|
(invoke "ninja" test-target)
|
||||||
(begin
|
(format #t "test suite not run~%"))
|
||||||
(format #t "test suite not run~%")
|
#t)
|
||||||
#t)))
|
|
||||||
|
|
||||||
(define* (install #:rest args)
|
(define* (install #:rest args)
|
||||||
(zero? (system* "ninja" "install")))
|
(invoke "ninja" "install")
|
||||||
|
#t)
|
||||||
|
|
||||||
(define* (fix-runpath #:key (elf-directories '("lib" "lib64" "libexec"
|
(define* (fix-runpath #:key (elf-directories '("lib" "lib64" "libexec"
|
||||||
"bin" "sbin"))
|
"bin" "sbin"))
|
||||||
|
|
Reference in a new issue