mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-30 16:12:58 -05:00
gnu: python-pygame-sdl2: Use G-Expressions.
* gnu/packages/game-development.scm (python-pygame-sdl2)[arguments]: Convert to list of G-Expressions.
This commit is contained in:
parent
12fcdbd409
commit
1b3c9ef96e
1 changed files with 16 additions and 16 deletions
|
@ -1298,22 +1298,22 @@ (define-public python-pygame-sdl2
|
|||
(delete-file-recursively "gen-static")))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:tests? #f ; tests require pygame to be installed first
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'set-paths 'set-sdl-vars
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(setenv "PYGAME_SDL2_CFLAGS"
|
||||
(string-append "-I"
|
||||
(assoc-ref inputs "sdl-union")
|
||||
"/include/SDL2 -D_REENTRANT"))
|
||||
(setenv "PYGAME_SDL2_LDFLAGS"
|
||||
(string-append "-L"
|
||||
(assoc-ref inputs "sdl-union")
|
||||
"/lib -Wl,-rpath,"
|
||||
(assoc-ref inputs "sdl-union")
|
||||
"/lib -Wl,--enable-new-dtags -lSDL2"))
|
||||
#t)))))
|
||||
(list
|
||||
#:tests? #f ; tests require pygame to be installed first
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'set-paths 'set-sdl-vars
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(setenv "PYGAME_SDL2_CFLAGS"
|
||||
(string-append "-I"
|
||||
(assoc-ref inputs "sdl-union")
|
||||
"/include/SDL2 -D_REENTRANT"))
|
||||
(setenv "PYGAME_SDL2_LDFLAGS"
|
||||
(string-append "-L"
|
||||
(assoc-ref inputs "sdl-union")
|
||||
"/lib -Wl,-rpath,"
|
||||
(assoc-ref inputs "sdl-union")
|
||||
"/lib -Wl,--enable-new-dtags -lSDL2")))))))
|
||||
(inputs
|
||||
(list (sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))))
|
||||
(native-inputs
|
||||
|
|
Loading…
Reference in a new issue