[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#29392] [PATCH 07/11] gnu: godot: Use scons-build-system.
From: |
Arun Isaac |
Subject: |
[bug#29392] [PATCH 07/11] gnu: godot: Use scons-build-system. |
Date: |
Tue, 28 Nov 2017 22:36:47 +0530 |
* gnu/packages/game-development.scm (godot): Switch to scons-build-system.
---
gnu/packages/game-development.scm | 45 +++++++++++++++++----------------------
1 file changed, 20 insertions(+), 25 deletions(-)
diff --git a/gnu/packages/game-development.scm
b/gnu/packages/game-development.scm
index be241cbd3..3c544f554 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -37,6 +37,7 @@
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
+ #:use-module (guix build-system scons)
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
#:use-module (gnu packages boost)
@@ -1063,12 +1064,26 @@ games.")
(file-name (string-append name "-" version))
(sha256
(base32
"1mz89nafc1m7srbqvy7iagxrxmqvf5hbqi7i0lwaapkx6q0kpkq7"))))
- (build-system gnu-build-system)
+ (build-system scons-build-system)
(arguments
- `(#:tests? #f ; There are no tests
+ `(#:scons ,scons-python2
+ #:scons-flags (list "platform=x11"
+ ;; Avoid using many of the bundled libs.
+ ;; Note: These options can be found in the
SConstruct file.
+ "builtin_freetype=no"
+ "builtin_glew=no"
+ "builtin_libmpdec=no"
+ "builtin_libogg=no"
+ "builtin_libpng=no"
+ "builtin_libtheora=no"
+ "builtin_libvorbis=no"
+ "builtin_libwebp=no"
+ "builtin_openssl=no"
+ "builtin_opus=no"
+ "builtin_zlib=no")
+ #:tests? #f ; There are no tests
#:phases
(modify-phases %standard-phases
- (delete 'configure)
(add-after 'unpack 'scons-use-env
(lambda _
;; Scons does not use the environment variables by default,
@@ -1079,24 +1094,6 @@ games.")
"env_base = Environment(tools=custom_tools)\n"
"env_base = Environment(ENV=os.environ)")))
#t))
- (replace 'build
- (lambda _
- (zero? (system*
- "scons"
- "platform=x11"
- ;; Avoid using many of the bundled libs.
- ;; Note: These options can be found in the SConstruct
file.
- "builtin_freetype=no"
- "builtin_glew=no"
- "builtin_libmpdec=no"
- "builtin_libogg=no"
- "builtin_libpng=no"
- "builtin_libtheora=no"
- "builtin_libvorbis=no"
- "builtin_libwebp=no"
- "builtin_openssl=no"
- "builtin_opus=no"
- "builtin_zlib=no"))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
@@ -1128,8 +1125,7 @@ games.")
Type=Application~%"
out)))
#t))))))
- (native-inputs `(("pkg-config" ,pkg-config)
- ("scons" ,scons)))
+ (native-inputs `(("pkg-config" ,pkg-config)))
(inputs `(("alsa-lib" ,alsa-lib)
("freetype" ,freetype)
("glew" ,glew)
@@ -1144,8 +1140,7 @@ games.")
("mesa" ,mesa)
("openssl" ,openssl)
("opusfile" ,opusfile)
- ("pulseaudio" ,pulseaudio)
- ("python2" ,python-2)))
+ ("pulseaudio" ,pulseaudio)))
(home-page "https://godotengine.org/")
(synopsis "Advanced 2D and 3D game engine")
(description
--
2.15.0
- [bug#29392] [PATCH 03/11] gnu: linuxdcpp: Use scons-build-system., (continued)
- [bug#29392] [PATCH 00/11] New scons build system, Leo Famulari, 2017/11/25
- [bug#29392] [PATCH 00/11] New scons build system, Leo Famulari, 2017/11/25
- [bug#29392] [PATCH 00/11] New scons build system, Leo Famulari, 2017/11/25
- [bug#29392] [PATCH 00/11] Add scons build system, Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 04/11] gnu: gpick: Use scons-build-system., Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 07/11] gnu: godot: Use scons-build-system.,
Arun Isaac <=
- [bug#29392] [PATCH 01/11] gnu: scons: Update to 3.0.1., Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 08/11] gnu: pingus: Use scons-build-system., Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 06/11] gnu: metabat: Use scons-build-system., Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 03/11] gnu: linuxdcpp: Use scons-build-system., Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 02/11] build-system: Add scons-build-system., Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 05/11] gnu: serf: Use scons-build-system., Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 09/11] gnu: klick: Use scons-build-system., Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 10/11] gnu: mongodb: Use scons-build-system., Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 11/11] gnu: pingus: Use HTTPS for home page., Arun Isaac, 2017/11/28
- [bug#29392] [PATCH 00/11] Add scons build system, Leo Famulari, 2017/11/28