gnu: retroarch: Don't use %OUTPUT.

* gnu/packages/games.scm (retroarch)[arguments]: Accept an OUTPUTS key
in the configure phase.  Add a comment about the script.  Use LET*.
This commit is contained in:
Tobias Geerinckx-Rice 2017-03-29 20:13:30 +02:00
parent 3f12714742
commit 05e0ac46ef
No known key found for this signature in database
GPG Key ID: 91CCDB9B48541B99
1 changed files with 12 additions and 8 deletions

View File

@ -1100,13 +1100,17 @@ either by Infocom or created using the Inform compiler.")
#:phases
(modify-phases %standard-phases
(replace 'configure
(lambda _
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(etc (string-append out "/etc")))
(substitute* "qb/qb.libs.sh"
(("/bin/true") (which "true")))
;; The configure script does not yet accept the extra arguments
;; (like CONFIG_SHELL=) passed by the default configure phase.
(zero? (system*
"./configure"
(string-append "--prefix=" %output)
(string-append "--global-config-dir=" %output "/etc"))))))))
(string-append "--prefix=" out)
(string-append "--global-config-dir=" etc)))))))))
(inputs
`(("alsa-lib" ,alsa-lib)
("ffmpeg" ,ffmpeg)