mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pysdl2: Use G-expressions.
* gnu/packages/python-xyz.scm (python-pysdl2): Refresh package style with G-expressions and FORMAT. Change-Id: Id3f43b490ca4892337769cbce65b1fa6d08738e9
This commit is contained in:
parent
3387675d84
commit
ab38239fab
1 changed files with 11 additions and 21 deletions
|
@ -7692,7 +7692,7 @@ Mako, and Tornado.")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-paths
|
(add-after 'unpack 'patch-paths
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda _
|
||||||
(substitute* "sdl2/dll.py"
|
(substitute* "sdl2/dll.py"
|
||||||
;; Disable pysdl2-dll. It can't be packaged on GNU Guix
|
;; Disable pysdl2-dll. It can't be packaged on GNU Guix
|
||||||
;; as it duplicates an existing package (sdl2).
|
;; as it duplicates an existing package (sdl2).
|
||||||
|
@ -7702,34 +7702,24 @@ Mako, and Tornado.")
|
||||||
(("postpath = os\\.getenv\\('PYSDL2_DLL_PATH'\\)")
|
(("postpath = os\\.getenv\\('PYSDL2_DLL_PATH'\\)")
|
||||||
"postpath = \"system\"")
|
"postpath = \"system\"")
|
||||||
(("DLL\\(.*, os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)\\)")
|
(("DLL\\(.*, os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)\\)")
|
||||||
(string-append
|
(format #f "DLL('SDL2', ['SDL2', 'SDL2-2.0', 'SDL2-2.0.0'], '~a/lib')"
|
||||||
"DLL(\"SDL2\", [\"SDL2\", \"SDL2-2.0\", \"SDL2-2.0.0\"], \""
|
#$(this-package-input "sdl2"))))
|
||||||
(dirname (search-input-file inputs "/lib/libSDL2.so"))
|
|
||||||
"\")")))
|
|
||||||
(substitute* "sdl2/sdlimage.py"
|
(substitute* "sdl2/sdlimage.py"
|
||||||
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
|
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
|
||||||
(string-append
|
(format #f "'~a/~a'" #$(this-package-input "sdl2-image")
|
||||||
"\""
|
"lib/libSDL2_image.so")))
|
||||||
(dirname (search-input-file inputs "/lib/libSDL2_image.so"))
|
|
||||||
"\"")))
|
|
||||||
(substitute* "sdl2/sdlgfx.py"
|
(substitute* "sdl2/sdlgfx.py"
|
||||||
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
|
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
|
||||||
(string-append
|
(format #f "'~a/~a'" #$(this-package-input "sdl2-gfx")
|
||||||
"\""
|
"lib/libSDL2_gfx.so")))
|
||||||
(dirname (search-input-file inputs "/lib/libSDL2_gfx.so"))
|
|
||||||
"\"")))
|
|
||||||
(substitute* "sdl2/sdlmixer.py"
|
(substitute* "sdl2/sdlmixer.py"
|
||||||
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
|
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
|
||||||
(string-append
|
(format #f "'~a/~a'" #$(this-package-input "sdl2-mixer")
|
||||||
"\""
|
"lib/libSDL2_mixer.so")))
|
||||||
(dirname (search-input-file inputs "/lib/libSDL2_mixer.so"))
|
|
||||||
"\"")))
|
|
||||||
(substitute* "sdl2/sdlttf.py"
|
(substitute* "sdl2/sdlttf.py"
|
||||||
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
|
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
|
||||||
(string-append
|
(format #f "'~a/~a'" #$(this-package-input "sdl2-ttf")
|
||||||
"\""
|
"lib/libSDL2_ttf.so"))))))))
|
||||||
(dirname (search-input-file inputs "/lib/libSDL2_ttf.so"))
|
|
||||||
"\""))))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list sdl2 sdl2-image sdl2-gfx sdl2-mixer sdl2-ttf))
|
(list sdl2 sdl2-image sdl2-gfx sdl2-mixer sdl2-ttf))
|
||||||
(home-page "https://github.com/py-sdl/py-sdl2")
|
(home-page "https://github.com/py-sdl/py-sdl2")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue