gnu: stepmania: Fix all instances of accessing application data.
This is a follow-up to commit 45aba232ab
.
* gnu/packages/games.scm (stepmania)[arguments]: Rename phase
ensure-gtk-module-can-be-found to ensure-application-files-can-be-found and
fix remaining instances of application data access.
This commit is contained in:
parent
47131ebbc9
commit
4774677228
|
@ -6182,12 +6182,21 @@ civilized than your own.")
|
||||||
"/lib/glib-2.0/include"))
|
"/lib/glib-2.0/include"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'ensure-gtk-module-can-be-found
|
(add-after 'unpack 'ensure-application-files-can-be-found
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
|
(substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
|
||||||
(string-append "\"" (assoc-ref outputs "out")
|
(("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
|
||||||
"/share/stepmania/GtkModule.so\"")))
|
(string-append "\"" out
|
||||||
|
"/share/stepmania/GtkModule.so\"")))
|
||||||
|
(substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
|
||||||
|
(("Root = sDirOfExecutable")
|
||||||
|
(string-append "Root = \"" out "/share/stepmania/\""))
|
||||||
|
(("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
|
||||||
|
(string-append "\"" out "/share/stepmania/" dir "\"")))
|
||||||
|
(substitute* "src/RageFileManager.cpp"
|
||||||
|
(("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
|
||||||
|
(string-append "\"" out "/share/stepmania/\""))))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'unpack 'fix-install-subdir
|
(add-after 'unpack 'fix-install-subdir
|
||||||
;; Installation would be done in "%out/stepmania-X.Y", but we
|
;; Installation would be done in "%out/stepmania-X.Y", but we
|
||||||
|
|
Loading…
Reference in New Issue