gnu: fortune-mod: Clean up empty directory.
* gnu/packages/games.scm (fortune-mod)[arguments]: RMDIR ‘games/’ after emptying it.
This commit is contained in:
parent
b3ce80d20f
commit
e08474d650
|
@ -5218,11 +5218,16 @@ Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
|
||||||
(chdir "fortune-mod")
|
(chdir "fortune-mod")
|
||||||
#t)))
|
#t)))
|
||||||
(add-after 'install 'fix-install-directory
|
(add-after 'install 'fix-install-directory
|
||||||
;; Move binary from "games/" to "bin/".
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
;; Move binary from "games/" to "bin/" and remove the latter. This
|
||||||
(rename-file (string-append out "/games/fortune")
|
;; is easier than patching CMakeLists.txt since the tests hard-code
|
||||||
(string-append out "/bin/fortune"))
|
;; the location as well.
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(bin (string-append out "/bin"))
|
||||||
|
(games (string-append out "/games")))
|
||||||
|
(rename-file (string-append games "/fortune")
|
||||||
|
(string-append bin "/fortune"))
|
||||||
|
(rmdir games)
|
||||||
#t))))))
|
#t))))))
|
||||||
(inputs `(("recode" ,recode)))
|
(inputs `(("recode" ,recode)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Loading…
Reference in New Issue