mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pygame: Update to 1.9.3.
* gnu/packages/game-development.scm (python-pygame)[version]: Update to 1.9.3. [source]: Use pypi-uri. [inputs]: Add freetype. [arguments]: Use python-3 instead of python-2. Provide path to freetype library in 'set-library-paths' phase. Remove "src/movie.c" dummy substitution. (python2-pygame): New variable.
This commit is contained in:
parent
c0185d8e84
commit
052f75da75
1 changed files with 16 additions and 8 deletions
|
@ -526,18 +526,16 @@ interface (API).")
|
||||||
(define-public python-pygame
|
(define-public python-pygame
|
||||||
(package
|
(package
|
||||||
(name "python-pygame")
|
(name "python-pygame")
|
||||||
(version "1.9.1")
|
(version "1.9.3")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "http://pygame.org/ftp/pygame-"
|
(uri (pypi-uri "pygame" version))
|
||||||
version "release.tar.gz"))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0cyl0ww4fjlf289pjxa53q4klyn55ajvkgymw0qrdgp4593raq52"))))
|
"1hlydiyygl444bq5m5g8n3jsxsgrdyxlm42ipmfbw36wkf0j243m"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:python ,python-2
|
`(#:tests? #f ; Tests require pygame to be installed first.
|
||||||
#:tests? #f ; Tests require pygame to be installed first.
|
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; Set the paths to the dependencies manually because
|
;; Set the paths to the dependencies manually because
|
||||||
|
@ -553,6 +551,7 @@ interface (API).")
|
||||||
(smpeg-ref (assoc-ref inputs "libsmpeg"))
|
(smpeg-ref (assoc-ref inputs "libsmpeg"))
|
||||||
(png-ref (assoc-ref inputs "libpng"))
|
(png-ref (assoc-ref inputs "libpng"))
|
||||||
(jpeg-ref (assoc-ref inputs "libjpeg"))
|
(jpeg-ref (assoc-ref inputs "libjpeg"))
|
||||||
|
(freetype-ref (assoc-ref inputs "freetype"))
|
||||||
(v4l-ref (assoc-ref inputs "v4l-utils"))
|
(v4l-ref (assoc-ref inputs "v4l-utils"))
|
||||||
(out-ref (assoc-ref outputs "out")))
|
(out-ref (assoc-ref outputs "out")))
|
||||||
(substitute* "Setup.in"
|
(substitute* "Setup.in"
|
||||||
|
@ -582,9 +581,14 @@ interface (API).")
|
||||||
(("JPEG = -ljpeg")
|
(("JPEG = -ljpeg")
|
||||||
(string-append "JPEG = -I" jpeg-ref "/include -L"
|
(string-append "JPEG = -I" jpeg-ref "/include -L"
|
||||||
jpeg-ref "/lib -ljpeg")))
|
jpeg-ref "/lib -ljpeg")))
|
||||||
|
|
||||||
|
(substitute* "Setup.in"
|
||||||
|
(("FREETYPE = -lfreetype")
|
||||||
|
(string-append "FREETYPE = -I" freetype-ref "/include/freetype2 -L"
|
||||||
|
freetype-ref "/lib -lfreetype")))
|
||||||
|
|
||||||
(substitute* "Setup.in"
|
(substitute* "Setup.in"
|
||||||
(("^pypm") "#pypm"))
|
(("^pypm") "#pypm"))
|
||||||
(substitute* "src/movie.c")
|
|
||||||
;; Create a path to a header file provided by v4l-utils.
|
;; Create a path to a header file provided by v4l-utils.
|
||||||
(system* "mkdir" "linux")
|
(system* "mkdir" "linux")
|
||||||
(system* "ln" "--symbolic"
|
(system* "ln" "--symbolic"
|
||||||
|
@ -592,7 +596,8 @@ interface (API).")
|
||||||
"linux/videodev.h")
|
"linux/videodev.h")
|
||||||
(system* "ln" "--symbolic" "Setup.in" "Setup")))))))
|
(system* "ln" "--symbolic" "Setup.in" "Setup")))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("sdl" ,sdl)
|
`(("freetype" ,freetype)
|
||||||
|
("sdl" ,sdl)
|
||||||
("sdl-image" ,sdl-image)
|
("sdl-image" ,sdl-image)
|
||||||
("sdl-mixer" ,sdl-mixer)
|
("sdl-mixer" ,sdl-mixer)
|
||||||
("sdl-ttf" ,sdl-ttf)
|
("sdl-ttf" ,sdl-ttf)
|
||||||
|
@ -619,3 +624,6 @@ to create fully featured games and multimedia programs in the python language.")
|
||||||
license:psfl
|
license:psfl
|
||||||
license:public-domain
|
license:public-domain
|
||||||
license:lgpl2.1+))))
|
license:lgpl2.1+))))
|
||||||
|
|
||||||
|
(define-public python2-pygame
|
||||||
|
(package-with-python2 python-pygame))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue