gnu: Add python-pygame-sdl2.
* gnu/packages/game-development.scm (python-pygame-sdl2): New variable. Reuse package definition from previous python2-pygame-sdl2, with the following additions: [source]: Also drop “gen3” in snippet. [arguments]: Drop #:python. [native-inputs]: Use ‘python-cython’ instead of ‘python2-cython’. (python2-pygame-sdl2): Define in terms of python-pygame-sdl2.master
parent
769f7d2ccf
commit
313d5e6286
|
@ -1106,12 +1106,12 @@ to create fully featured games and multimedia programs in the python language.")
|
||||||
(define-public python2-pygame
|
(define-public python2-pygame
|
||||||
(package-with-python2 python-pygame))
|
(package-with-python2 python-pygame))
|
||||||
|
|
||||||
(define-public python2-pygame-sdl2
|
(define-public python-pygame-sdl2
|
||||||
(let ((real-version "2.1.0")
|
(let ((real-version "2.1.0")
|
||||||
(renpy-version "7.4.6"))
|
(renpy-version "7.4.6"))
|
||||||
(package
|
(package
|
||||||
(inherit python2-pygame)
|
(inherit python-pygame)
|
||||||
(name "python2-pygame-sdl2")
|
(name "python-pygame-sdl2")
|
||||||
(version (string-append real-version "-for-renpy-" renpy-version))
|
(version (string-append real-version "-for-renpy-" renpy-version))
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
|
@ -1124,12 +1124,12 @@ to create fully featured games and multimedia programs in the python language.")
|
||||||
'(begin
|
'(begin
|
||||||
;; drop generated sources
|
;; drop generated sources
|
||||||
(delete-file-recursively "gen")
|
(delete-file-recursively "gen")
|
||||||
|
(delete-file-recursively "gen3")
|
||||||
(delete-file-recursively "gen-static")
|
(delete-file-recursively "gen-static")
|
||||||
#t))))
|
#t))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; tests require pygame to be installed first
|
`(#:tests? #f ; tests require pygame to be installed first
|
||||||
#:python ,python-2
|
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'set-paths 'set-sdl-vars
|
(add-after 'set-paths 'set-sdl-vars
|
||||||
|
@ -1149,7 +1149,7 @@ to create fully featured games and multimedia programs in the python language.")
|
||||||
`(("sdl-union"
|
`(("sdl-union"
|
||||||
,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
|
,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python2-cython" ,python2-cython)))
|
`(("python-cython" ,python-cython)))
|
||||||
(home-page "https://www.renpy.org/")
|
(home-page "https://www.renpy.org/")
|
||||||
(synopsis "Reimplementation of the Pygame API using SDL2")
|
(synopsis "Reimplementation of the Pygame API using SDL2")
|
||||||
(description "Pygame_SDL2 reimplements the Pygame API using SDL2,
|
(description "Pygame_SDL2 reimplements the Pygame API using SDL2,
|
||||||
|
@ -1158,6 +1158,9 @@ While it aims to be used as a drop-in replacement, it appears to be
|
||||||
developed mainly for Ren'py.")
|
developed mainly for Ren'py.")
|
||||||
(license (list license:lgpl2.1 license:zlib)))))
|
(license (list license:lgpl2.1 license:zlib)))))
|
||||||
|
|
||||||
|
(define-public python2-pygame-sdl2
|
||||||
|
(package-with-python2 python-pygame-sdl2))
|
||||||
|
|
||||||
(define-public python2-renpy
|
(define-public python2-renpy
|
||||||
(package
|
(package
|
||||||
(name "python2-renpy")
|
(name "python2-renpy")
|
||||||
|
|
Reference in New Issue