gnu: python-renpy: Fix build.

* gnu/packages/game-development.scm (python-renpy):
[arguments] <phases>: Add 'relax-gcc-14-strictness.
[inputs]: Remove ffmpeg; add ffmpeg-6.
[native-inputs]: Remove python-cython; add python-cython-0.

Fixes: guix/guix#3308
Change-Id: Ie0c8187e4ec12e9854ce90d94e84b06fbe9a7be1
This commit is contained in:
Sharlatan Hellseher 2025-10-05 20:38:03 +01:00
parent 548f225f31
commit 2f4ffa29e4
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1743,6 +1743,13 @@ bugfixes and enhancements, and a new governance model.")
(search-input-file (or native-inputs inputs)
"/bin/cython"))
(setenv "RENPY_DEPS_INSTALL" (string-join (map cdr inputs) ":"))))
(add-before 'build 'relax-gcc-14-strictness
(lambda _
(setenv "CFLAGS" (string-join
(list "-g" "-O2"
"-Wno-error=incompatible-pointer-types"
"-Wno-error=implicit-function-declaration")
" "))))
(replace 'build
(lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
;; The "module" subdirectory contains a python (really cython)
@ -1769,9 +1776,9 @@ bugfixes and enhancements, and a new governance model.")
(string-append out site "/renpy"))
(delete-file-recursively (string-append out site
"/renpy/common"))))))))
(native-inputs (list python-cython))
(native-inputs (list python-cython-0))
(inputs
(list ffmpeg
(list ffmpeg-6
freetype
fribidi
glew