gnu: crawl, crawl-tiles: Update to 0.23.1.
* gnu/packages/games.scm (crawl, crawl-tiles): Update to 0.23.1. [native-inputs]: Add python and python-pyyaml. [arguments]: Add 'patch-python' phase, modify the 'check' phase and move the 'check' phase back after the 'build' phase.master
parent
5bb674a0cd
commit
e366521a94
|
@ -4411,7 +4411,7 @@ fish. The whole game is accompanied by quiet, comforting music.")
|
||||||
(define-public crawl
|
(define-public crawl
|
||||||
(package
|
(package
|
||||||
(name "crawl")
|
(name "crawl")
|
||||||
(version "0.22.1")
|
(version "0.23.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -4425,7 +4425,7 @@ fish. The whole game is accompanied by quiet, comforting music.")
|
||||||
version "-nodeps.tar.xz")))
|
version "-nodeps.tar.xz")))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1qc90wwbxvjzqq66n8kfr0a2ny7sfvv2n84si67jiv2887d0ws6k"))
|
"0c3mx49kpz6i2xvv2dwsaj9s7mm4mif1h2qdkfyi80lv2j1ay51h"))
|
||||||
(patches (search-patches "crawl-upgrade-saves.patch"))))
|
(patches (search-patches "crawl-upgrade-saves.patch"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs
|
(inputs
|
||||||
|
@ -4437,6 +4437,8 @@ fish. The whole game is accompanied by quiet, comforting music.")
|
||||||
`(("bison" ,bison)
|
`(("bison" ,bison)
|
||||||
("flex" ,flex)
|
("flex" ,flex)
|
||||||
("perl" ,perl)
|
("perl" ,perl)
|
||||||
|
("python" ,python)
|
||||||
|
("python-pyyaml" ,python-pyyaml)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:make-flags
|
'(#:make-flags
|
||||||
|
@ -4452,16 +4454,19 @@ fish. The whole game is accompanied by quiet, comforting music.")
|
||||||
"-Csource"))
|
"-Csource"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-python
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* "source/util/species-gen.py"
|
||||||
|
(("python") "python3"))
|
||||||
|
#t))
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(delete 'check)
|
(replace 'check
|
||||||
;; Test cases require the source to be rebuild with the -DDEBUG define.
|
|
||||||
;; Do 'check before 'build to avoid a 3rd build on make install.
|
|
||||||
(add-before 'build 'check
|
|
||||||
(lambda* (#:key inputs outputs make-flags #:allow-other-keys)
|
(lambda* (#:key inputs outputs make-flags #:allow-other-keys)
|
||||||
(setenv "HOME" (getcwd))
|
(setenv "HOME" (getcwd))
|
||||||
;; Fake a terminal for the test cases.
|
;; Fake a terminal for the test cases.
|
||||||
(setenv "TERM" "xterm-256color")
|
(setenv "TERM" "xterm-256color")
|
||||||
(apply invoke "make" "debug" "test"
|
;; Run the tests that don't require a debug build.
|
||||||
|
(apply invoke "make" "nondebugtest"
|
||||||
(format #f "-j~d" (parallel-job-count))
|
(format #f "-j~d" (parallel-job-count))
|
||||||
;; Force command line build for test cases.
|
;; Force command line build for test cases.
|
||||||
(append make-flags '("GAME=crawl" "TILES="))))))))
|
(append make-flags '("GAME=crawl" "TILES="))))))))
|
||||||
|
|
Reference in New Issue