mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: endless-sky: Clean up phases.
* gnu/packages/games.scm (endless-sky)[arguments]: Drop unused substitution and merge existing phases into 'fix-paths. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
79eb05f84f
commit
fd85c59d1e
1 changed files with 4 additions and 10 deletions
|
@ -8368,19 +8368,13 @@ (define-public endless-sky
|
|||
#:tests? #f ; no tests
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-resource-locations
|
||||
(add-after 'unpack 'fix-paths
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; Look for resources in the store directory.
|
||||
(substitute* "source/Files.cpp"
|
||||
(("/usr/local/")
|
||||
(string-append (assoc-ref outputs "out") "/")))
|
||||
#t))
|
||||
(add-after 'unpack 'patch-scons
|
||||
(lambda _
|
||||
(("/usr/local") (assoc-ref outputs "out")))
|
||||
;; Install game binary into %out/bin.
|
||||
(substitute* "SConstruct"
|
||||
;; Keep environmental variables
|
||||
(("Environment\\(\\)")
|
||||
"Environment(ENV = os.environ)")
|
||||
;; Install into %out/bin
|
||||
(("games\"") "bin\""))
|
||||
#t))
|
||||
(add-before 'build 'use-gcc-ar
|
||||
|
|
Loading…
Reference in a new issue