[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: fortune-mod: Clean up empty directory.
From: |
Tobias Geerinckx-Rice |
Subject: |
08/08: gnu: fortune-mod: Clean up empty directory. |
Date: |
Sun, 12 Aug 2018 19:52:36 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit e08474d650f144ecc73614b9655684b92000293d
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Sat Aug 11 17:58:32 2018 +0200
gnu: fortune-mod: Clean up empty directory.
* gnu/packages/games.scm (fortune-mod)[arguments]: RMDIR ‘games/’ after
emptying it.
---
gnu/packages/games.scm | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 9b726cf..a16ecb8 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -5218,11 +5218,16 @@ Strife, Chex Quest, and fan-created games like Harmony,
Hacx and Freedoom.")
(chdir "fortune-mod")
#t)))
(add-after 'install 'fix-install-directory
- ;; Move binary from "games/" to "bin/".
(lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (rename-file (string-append out "/games/fortune")
- (string-append out "/bin/fortune"))
+ ;; Move binary from "games/" to "bin/" and remove the latter.
This
+ ;; is easier than patching CMakeLists.txt since the tests
hard-code
+ ;; 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))))))
(inputs `(("recode" ,recode)))
(native-inputs
- branch master updated (efb22b4 -> e08474d), Tobias Geerinckx-Rice, 2018/08/12
- 01/08: gnu: ghc-parsec-numbers: Use HTTPS home page., Tobias Geerinckx-Rice, 2018/08/12
- 02/08: gnu: ethtool: Update to 4.17., Tobias Geerinckx-Rice, 2018/08/12
- 03/08: gnu: strongswan: Update to 5.6.3 [fixes CVE-2018-{10811, 5388}]., Tobias Geerinckx-Rice, 2018/08/12
- 07/08: gnu: libwacom: Update to 0.31., Tobias Geerinckx-Rice, 2018/08/12
- 08/08: gnu: fortune-mod: Clean up empty directory.,
Tobias Geerinckx-Rice <=
- 06/08: gnu: python-wsgiproxy2: Update to 0.4.4., Tobias Geerinckx-Rice, 2018/08/12
- 04/08: gnu: python-pep8: Use HTTPS home page., Tobias Geerinckx-Rice, 2018/08/12
- 05/08: gnu: python-ndg-httpsclient: Update to 0.5.1., Tobias Geerinckx-Rice, 2018/08/12