mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
gnu: uxn11: Enable tests.
* gnu/packages/emulators (uxn11)[arguments] <#:tests?>: Remove. <#:test-target>: Set to “test”. <#:phases>: Delete ‘build’. Move ‘check’ after ‘install’. Add ‘fix-cc’ and ‘pre-check’. Closes: guix/guix#3228 Change-Id: I27789bd36ecd6b66684403b0043ad75972ca0ced Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
This commit is contained in:
@@ -4613,17 +4613,24 @@ stack-machine, written in ANSI C. Graphical output is implemented using SDL2.")
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #f ;no tests
|
||||
#:test-target "test"
|
||||
#:make-flags
|
||||
#~(list (string-append "PREFIX="
|
||||
(assoc-ref %outputs "out")))
|
||||
#~(list (string-append "PREFIX=" #$output))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(replace 'build
|
||||
(delete 'check)
|
||||
(delete 'build)
|
||||
(add-before 'install 'fix-cc
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "makefile"
|
||||
(("cc") #$(cc-for-target))))))))
|
||||
(("cc") #$(cc-for-target)))))
|
||||
(add-after 'fix-cc 'pre-check
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(invoke "make" "bin/uxncli")
|
||||
(invoke "make" "tests")))
|
||||
(add-after 'install 'check
|
||||
(assoc-ref %standard-phases 'check)))))
|
||||
(inputs (list libx11))
|
||||
(home-page "https://100r.co/site/uxn.html")
|
||||
(synopsis "Emulator for the Uxn stack-machine using X11")
|
||||
|
||||
Reference in New Issue
Block a user