diff options
author | Kei Kebreau <kkebreau@posteo.net> | 2019-02-27 01:10:25 -0500 |
---|---|---|
committer | Kei Kebreau <kkebreau@posteo.net> | 2019-03-06 09:17:24 -0500 |
commit | e366521a9467798f179d4a3eab35a5f93fccf888 (patch) | |
tree | 2abe289b7d04980961dc2baa2b7f6e95bdfedf5f /gnu/packages/games.scm | |
parent | 5bb674a0cdb1e2d9bb85cfb87ccd4f683ce820ce (diff) | |
download | guix-e366521a9467798f179d4a3eab35a5f93fccf888.tar.gz guix-e366521a9467798f179d4a3eab35a5f93fccf888.zip |
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.
Diffstat (limited to 'gnu/packages/games.scm')
-rw-r--r-- | gnu/packages/games.scm | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 53c476330b..8e0ef76165 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -4411,7 +4411,7 @@ fish. The whole game is accompanied by quiet, comforting music.") (define-public crawl (package (name "crawl") - (version "0.22.1") + (version "0.23.1") (source (origin (method url-fetch) @@ -4425,7 +4425,7 @@ fish. The whole game is accompanied by quiet, comforting music.") version "-nodeps.tar.xz"))) (sha256 (base32 - "1qc90wwbxvjzqq66n8kfr0a2ny7sfvv2n84si67jiv2887d0ws6k")) + "0c3mx49kpz6i2xvv2dwsaj9s7mm4mif1h2qdkfyi80lv2j1ay51h")) (patches (search-patches "crawl-upgrade-saves.patch")))) (build-system gnu-build-system) (inputs @@ -4437,6 +4437,8 @@ fish. The whole game is accompanied by quiet, comforting music.") `(("bison" ,bison) ("flex" ,flex) ("perl" ,perl) + ("python" ,python) + ("python-pyyaml" ,python-pyyaml) ("pkg-config" ,pkg-config))) (arguments '(#:make-flags @@ -4452,16 +4454,19 @@ fish. The whole game is accompanied by quiet, comforting music.") "-Csource")) #: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 '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 + (replace 'check (lambda* (#:key inputs outputs make-flags #:allow-other-keys) (setenv "HOME" (getcwd)) ;; Fake a terminal for the test cases. (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)) ;; Force command line build for test cases. (append make-flags '("GAME=crawl" "TILES=")))))))) |