me
/
guix
Archived
1
0
Fork 0

gnu: fifengine: Gexp arguments.

* gnu/packages/games.scm (fifengine)[arguments]: Rewrite as gexps.  Remove
input labels, top-level Python reference, and trailing #t's.
master
Marius Bakke 2021-12-25 23:28:21 +01:00
parent 52d945d382
commit d9aa923dfd
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 34 additions and 35 deletions

View File

@ -3733,41 +3733,40 @@ Widgets, and allows users to create more.")
"1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8")))) "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:tests? #f ; TODO The test running fails to run some tests. (list #:tests? #f ;TODO The test running fails to run some tests.
#:configure-flags #:configure-flags
(list #~(list
(string-append "-DOPENALSOFT_INCLUDE_DIR=" (string-append "-DOPENALSOFT_INCLUDE_DIR="
(assoc-ref %build-inputs "openal") (search-input-directory %build-inputs "include/AL"))
"/include/AL") (string-append "-DPYTHON_SITE_PACKAGES="
(string-append "-DPYTHON_SITE_PACKAGES=" #$output "/lib/python"
(assoc-ref %outputs "out") #$(version-major+minor
"/lib/python" (package-version (this-package-input "python")))
,(version-major+minor (package-version python)) "/site-packages"))
"/site-packages")) #:phases
#:phases #~(modify-phases %standard-phases
(modify-phases %standard-phases (add-after 'unpack 'patch-run_tests.py
(add-after 'unpack 'patch-run_tests.py (lambda _
(lambda _ ;; Patch the test runner to exit with a status of 1 if any test
;; Patch the test runner to exit with a status of 1 if any test ;; fails, to allow detecting failures.
;; fails, to allow detecting failures. (substitute* "run_tests.py"
(substitute* "run_tests.py" (("ERROR\\. One or more tests failed!'\\)")
(("ERROR\\. One or more tests failed!'\\)") "ERROR. One or more tests failed!')
"ERROR. One or more tests failed!') \t\texit(1)"))))
\t\texit(1)")) ;; Run tests after installation so that we can make use of the built
#t)) ;; python modules.
;; Run tests after installation so that we can make use of the built (delete 'check)
;; python modules. (add-after 'install 'check
(delete 'check) (lambda* (#:key tests? #:allow-other-keys)
(add-after 'install 'check (when tests?
(lambda* (#:key tests? #:allow-other-keys) ;; The tests require an X server.
(when tests? (system "Xvfb :1 &")
;; The tests require an X server. (setenv "DISPLAY" ":1")
(system "Xvfb :1 &") (setenv "XDG_RUNTIME_DIR" "/tmp")
(setenv "DISPLAY" ":1") ;; Run tests
(setenv "XDG_RUNTIME_DIR" "/tmp") (chdir #$(string-append "../" (package-name this-package)
;; Run tests "-" (package-version this-package)))
(chdir ,(string-append "../" name "-" version)) (invoke "python3" "run_tests.py" "-a")))))))
(invoke "python3" "run_tests.py" "-a")))))))
(inputs (inputs
(list sdl2 (list sdl2
sdl2-image sdl2-image