guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: cdogs-sdl: Patch assets directory.


From: guix-commits
Subject: 02/03: gnu: cdogs-sdl: Patch assets directory.
Date: Mon, 21 Aug 2023 06:33:16 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit ae4da4c81f482d87bb6c40ba8862266ace79f9d3
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Aug 21 10:29:02 2023 +0200

    gnu: cdogs-sdl: Patch assets directory.
    
    * gnu/packages/games.scm (cdogs-sdl)[arguments]: Add phase
    'patch-install-directory to ensure data files are installed there.
---
 gnu/packages/games.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 8f8eca29de..d56c4ad5e0 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -6523,7 +6523,15 @@ emerges from a sewer hole and pulls her below ground.")
      (list
       #:configure-flags
       #~(list (string-append "-DCDOGS_DATA_DIR=" #$output
-                             "/share/cdogs-sdl/"))))
+                             "/share/cdogs-sdl/"))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-install-directory
+            (lambda _
+              (substitute* "CMakeLists.txt"
+                (("set\\(DATA_INSTALL_DIR \".\"\\)")
+                 (string-append "set(DATA_INSTALL_DIR \""
+                                #$output "/share/cdogs-sdl\")"))))))))
     (native-inputs
      (list pkg-config))
     (inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]