gnu: python2-renpy: Correct inputs.
* gnu/packages/game-development.scm (python2-renpy)[#:phases]<fix-commands>: Search for ‘xdg-open’ in inputs. <set-build-vars>: Search for ‘cython’ in native-inputs. [native-inputs]: Move ‘xdg-utils’ from here… [inputs]: … to here.
This commit is contained in:
parent
a613e6268d
commit
3d7dea0906
@ -1186,10 +1186,11 @@ developed mainly for Ren'py.")
|
|||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-commands
|
(add-after 'unpack 'fix-commands
|
||||||
(lambda _
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "renpy/editor.py"
|
(substitute* "renpy/editor.py"
|
||||||
(("xdg-open")
|
(("xdg-open")
|
||||||
(which "xdg-open")))
|
(string-append (assoc-ref inputs "xdg-utils")
|
||||||
|
"/bin/xdg-open")))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'unpack 'fix-include-paths
|
(add-after 'unpack 'fix-include-paths
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
@ -1199,9 +1200,10 @@ developed mainly for Ren'py.")
|
|||||||
"/include/fribidi")))
|
"/include/fribidi")))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'set-paths 'set-build-vars
|
(add-after 'set-paths 'set-build-vars
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
||||||
(setenv "RENPY_CYTHON"
|
(setenv "RENPY_CYTHON"
|
||||||
(string-append (assoc-ref inputs "python2-cython")
|
(string-append (assoc-ref (or native-inputs inputs)
|
||||||
|
"python2-cython")
|
||||||
"/bin/cython"))
|
"/bin/cython"))
|
||||||
(setenv "RENPY_DEPS_INSTALL" (string-join (map cdr inputs) ":"))
|
(setenv "RENPY_DEPS_INSTALL" (string-join (map cdr inputs) ":"))
|
||||||
#t))
|
#t))
|
||||||
@ -1240,14 +1242,14 @@ developed mainly for Ren'py.")
|
|||||||
("glew" ,glew)
|
("glew" ,glew)
|
||||||
("libpng" ,libpng)
|
("libpng" ,libpng)
|
||||||
("sdl-union"
|
("sdl-union"
|
||||||
,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
|
,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
|
||||||
|
("xdg-utils" ,xdg-utils)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python2-future" ,python2-future)
|
`(("python2-future" ,python2-future)
|
||||||
("python2-pygame" ,python2-pygame-sdl2)))
|
("python2-pygame" ,python2-pygame-sdl2)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("gcc" ,gcc-8) ; for const variables as initializer elements
|
`(("gcc" ,gcc-8) ; for const variables as initializer elements
|
||||||
("python2-cython" ,python2-cython)
|
("python2-cython" ,python2-cython)))
|
||||||
("xdg-utils" ,xdg-utils)))
|
|
||||||
(home-page "https://www.renpy.org/")
|
(home-page "https://www.renpy.org/")
|
||||||
(synopsis "Ren'py python module")
|
(synopsis "Ren'py python module")
|
||||||
(description "This package contains the shared libraries and Python modules
|
(description "This package contains the shared libraries and Python modules
|
||||||
|
Loading…
Reference in New Issue
Block a user