From 347227efc13d3389f1a40084ea28297ce1a9e14d Mon Sep 17 00:00:00 2001 From: phodina Date: Wed, 3 Nov 2021 14:17:39 +0000 Subject: gnu: flightgear: Update to 2020.3.11. * gnu/packages/games.scm (simgear, flightgear): Update to 2020.3.11. (flightgear-data): Update uri. Signed-off-by: Efraim Flashner --- gnu/packages/games.scm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index a1f6deb044..48722230c4 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -9261,7 +9261,7 @@ (define-public marble-marcher (define simgear (package (name "simgear") - (version "2018.3.5") + (version "2020.3.11") (source (origin (method url-fetch) @@ -9269,7 +9269,7 @@ (define simgear (version-major+minor version) "/" "simgear-" version ".tar.bz2")) (sha256 - (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl")))) + (base32 "0g2g3n3sb6kdimvcrn9kvlhyyrp5c6lx20fgzz8l609v5aygr3dv")))) (build-system cmake-build-system) (arguments `(#:phases @@ -9305,7 +9305,7 @@ (define-public flightgear (version-major+minor version) "/" "flightgear-" version ".tar.bz2")) (sha256 - (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc")) + (base32 "15sar94x13j2y1m6adgmz2q1m1i9bzj3sxqla6y3m9vyf33hc9zy")) (modules '((guix build utils))) (snippet '(begin @@ -9375,10 +9375,10 @@ (define-public flightgear (method url-fetch) (uri (string-append "mirror://sourceforge/flightgear/release-" (version-major+minor version) "/" - "FlightGear-" version "-data.tar.bz2")) + "FlightGear-" version "-data.txz")) (sha256 (base32 - "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk")))))) + "0n5mw9vw1snab16c1y3i9ylkiv54az57bs2mvpq20hhg5hdiagqj")))))) (home-page "https://home.flightgear.org/") (synopsis "Flight simulator") (description "The goal of the FlightGear project is to create a -- cgit v1.2.3 From 3a5b1cc32a4f9dd1128f373c087d37aad95ed309 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 3 Nov 2021 22:00:01 +0200 Subject: gnu: flightgear: Build with qt-build-system. * gnu/packages/games.scm (flightgear)[build-system]: Switch to qt-build-system. [arguments]: Remove 'wrap-executable phase. --- gnu/packages/games.scm | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 48722230c4..f601e96035 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -9313,7 +9313,7 @@ (define-public flightgear (for-each delete-file-recursively '("3rdparty/sqlite3/")) #t)))) - (build-system cmake-build-system) + (build-system qt-build-system) (arguments `(#:configure-flags (list "-DSYSTEM_SQLITE=ON" @@ -9325,21 +9325,6 @@ (define-public flightgear #:tests? #f #:phases (modify-phases %standard-phases - (add-after 'install 'wrap-executable - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (wrap-program (string-append out "/bin/fgfs") - `("QT_PLUGIN_PATH" ":" prefix - ,(map (lambda (label) - (string-append (assoc-ref inputs label) - "/lib/qt5/plugins")) - '("qtbase" "qtdeclarative" "qtsvg"))) - `("QML2_IMPORT_PATH" ":" prefix - ,(map (lambda (label) - (string-append (assoc-ref inputs label) - "/lib/qt5/qml")) - '("qtdeclarative" "qtsvg")))) - #t))) (add-after 'install 'install-data (lambda* (#:key inputs outputs #:allow-other-keys) (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear"))) @@ -9379,7 +9364,7 @@ (define-public flightgear (sha256 (base32 "0n5mw9vw1snab16c1y3i9ylkiv54az57bs2mvpq20hhg5hdiagqj")))))) - (home-page "https://home.flightgear.org/") + (home-page "https://www.flightgear.org/") (synopsis "Flight simulator") (description "The goal of the FlightGear project is to create a sophisticated flight simulator framework for use in research or academic -- cgit v1.2.3 From 230b34cb5c88bcfda155094fde85a0a125f490f2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 3 Nov 2021 22:01:23 +0200 Subject: gnu: simgear: Honor #:tests? flag. * gnu/packages/games.scm (simgear)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/games.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index f601e96035..b1de90cf24 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -9275,9 +9275,10 @@ (define simgear `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - ;; Skip tests that require internet access. - (invoke "ctest" "-E" "(http|dns)")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Skip tests that require internet access. + (invoke "ctest" "-E" "(http|dns)"))))))) (inputs `(("boost" ,boost-for-mysql) ; fails with 1.69 ("curl" ,curl) -- cgit v1.2.3 From aae82f2a9587bf5c9f0af21be26e38e3bd941a84 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 3 Nov 2021 22:10:34 +0200 Subject: gnu: flightgear: Build with newer inputs. * gnu/packages/games.scm (flightgear)[inputs]: Replace openscenegraph-3.4 with openscenegraph, boost-for-mysql with boost. (simgear)[inputs]: Same. --- gnu/packages/games.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index b1de90cf24..1ea1846c0a 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -9280,12 +9280,12 @@ (define simgear ;; Skip tests that require internet access. (invoke "ctest" "-E" "(http|dns)"))))))) (inputs - `(("boost" ,boost-for-mysql) ; fails with 1.69 + `(("boost" ,boost) ("curl" ,curl) ("expat" ,expat) ("mesa" ,mesa) ("openal" ,openal) - ("openscenegraph" ,openscenegraph-3.4) + ("openscenegraph" ,openscenegraph) ("zlib" ,zlib))) (home-page "https://home.flightgear.org/") (synopsis "Libraries for 3D simulations and games") @@ -9335,7 +9335,7 @@ (define-public flightgear "--strip-components=1"))) #t))))) (inputs - `(("boost" ,boost-for-mysql) ; same as simgear + `(("boost" ,boost) ("dbus" ,dbus) ("eudev" ,eudev) ("freeglut" ,freeglut) @@ -9343,7 +9343,7 @@ (define-public flightgear ("glew" ,glew) ("libpng" ,libpng) ("openal" ,openal) - ("openscenegraph" ,openscenegraph-3.4) + ("openscenegraph" ,openscenegraph) ("plib" ,plib) ("qtbase" ,qtbase-5) ("qtdeclarative" ,qtdeclarative) -- cgit v1.2.3 From d3abd5cd8b16a9a4121da08a2778dd8a3b9cbae6 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 3 Nov 2021 22:27:21 +0200 Subject: gnu: simgear: Remove bundled expat. * gnu/packages/games.scm (simgear)[source]: Add snippet to remove bundled expat. [arguments]: Add configure-flag to use system expat. --- gnu/packages/games.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 1ea1846c0a..df32a6b27d 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -9269,10 +9269,18 @@ (define simgear (version-major+minor version) "/" "simgear-" version ".tar.bz2")) (sha256 - (base32 "0g2g3n3sb6kdimvcrn9kvlhyyrp5c6lx20fgzz8l609v5aygr3dv")))) + (base32 "0g2g3n3sb6kdimvcrn9kvlhyyrp5c6lx20fgzz8l609v5aygr3dv")) + (modules '((guix build utils))) + (snippet + '(begin + ;; There are some bundled libraries. + (for-each delete-file-recursively + '("3rdparty/expat/")) + #t)))) (build-system cmake-build-system) (arguments - `(#:phases + `(#:configure-flags (list "-DSYSTEM_EXPAT=ON") + #:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) -- cgit v1.2.3 From b93e06a96418b7caba109cae327c3d226a33d782 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 3 Nov 2021 22:39:47 +0200 Subject: gnu: flightgear: Use system cppunit. * gnu/packages/games.scm (flightgear)[source]: Adjust snippet to remove bundled cppunit. [arguments]: Add configure-flag to use system cppunit. --- gnu/packages/games.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index df32a6b27d..7bab31f9be 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -9320,12 +9320,14 @@ (define-public flightgear '(begin ;; There are some bundled libraries. (for-each delete-file-recursively - '("3rdparty/sqlite3/")) + '("3rdparty/sqlite3/" + "3rdparty/cppunit/")) #t)))) (build-system qt-build-system) (arguments `(#:configure-flags (list "-DSYSTEM_SQLITE=ON" + "-DSYSTEM_CPPUNIT=ON" (string-append "-DFG_DATA_DIR=" (assoc-ref %outputs "out") "/share/flightgear")) -- cgit v1.2.3 From 19c38b2acc99644c4104c8526d2586b3ee67f5a7 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 3 Nov 2021 23:56:01 +0200 Subject: gnu: flightgear: Prepare to run test suite. * gnu/packages/games.scm (flightgear)[arguments]: Add phase to build test binary. Add phase to skip some failing tests. Move 'check phase to after 'install-data. --- gnu/packages/games.scm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 7bab31f9be..eb3db37c46 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -9331,11 +9331,25 @@ (define-public flightgear (string-append "-DFG_DATA_DIR=" (assoc-ref %outputs "out") "/share/flightgear")) - ;; TODO: test cannot be run because the "run_test_suite" executable - ;; does not seem to be built. + ;; TODO: test suite segfaults. #:tests? #f #:phases (modify-phases %standard-phases + (add-after 'unpack 'skip-some-tests + (lambda _ + (substitute* "test_suite/unit_tests/Instrumentation/test_gps.hxx" + (("CPPUNIT_TEST\\(testLongLegWestbound\\);" all) + (string-append "// " all)) + (("CPPUNIT_TEST\\(testFinalLegCourse\\);" all) + (string-append "// " all))))) + (add-after 'build 'build-test-suite + (lambda* args + ((assoc-ref %standard-phases 'build) + #:make-flags (list "fgfs_test_suite")))) + ;; Test suite needs access to FGData so run it after 'install. + (delete 'check) + (add-after 'install-data 'check + (assoc-ref %standard-phases 'check)) (add-after 'install 'install-data (lambda* (#:key inputs outputs #:allow-other-keys) (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear"))) -- cgit v1.2.3 From b6bb7720eb887fa4497a34611e963ebc90f6a396 Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Sat, 6 Nov 2021 10:40:36 +0000 Subject: gnu: openttd-engine: Update to 12.0. * gnu/packages/games.scm (openttd-engine): Update engine to 12.0. Signed-off-by: Liliana Marie Prikler --- gnu/packages/games.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index eb3db37c46..70207c6205 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -4287,14 +4287,14 @@ (define-public manaplus (define openttd-engine (package (name "openttd-engine") - (version "1.11.2") + (version "12.0") (source (origin (method url-fetch) (uri (string-append "https://cdn.openttd.org/openttd-releases/" version "/openttd-" version "-source.tar.xz")) (sha256 (base32 - "0v9f93lsdcv3ia28y8iihx9nj9zp6fpf5hkdrpl4ypw159d97fhg")))) + "1p1j5cf4ry57dcgm7qx2g2s00z1c6qgjabb4kqjp00yz00wgv85v")))) (build-system cmake-build-system) (inputs `(("allegro" ,allegro) -- cgit v1.2.3 From c2759211fcc37e1a6cde904217a185e1a6097405 Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Sat, 6 Nov 2021 10:40:37 +0000 Subject: gnu: openttd-opengfx: Update to 7.1. * packages/games.scm (openttd-opengfx): Update to 7.1. [native-inputs]: Replace python-2 with python. [arguments]: Use cc-for-target. Signed-off-by: Liliana Marie Prikler --- gnu/packages/games.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 70207c6205..bcce16c91c 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -4324,7 +4324,7 @@ (define openttd-engine (define openttd-opengfx (package (name "openttd-opengfx") - (version "0.6.1") + (version "7.1") (source (origin (method url-fetch) @@ -4332,10 +4332,10 @@ (define openttd-opengfx version "/opengfx-" version "-source.tar.xz")) (sha256 (base32 - "0jgy8xv7r72m127qn09vr3rxhnbakl2990f7lldsk0d5d8n993vd")))) + "0nhzlk6s73qvznm5fdwcs1b42g2plf26s5ag39fvck45zm7m48jk")))) (build-system gnu-build-system) (arguments - '(#:make-flags (list "CC=gcc" + `(#:make-flags (list (string-append "CC=" ,(cc-for-target)) (string-append "INSTALL_DIR=" (assoc-ref %outputs "out") "/share/games/openttd/baseset/opengfx")) @@ -4363,7 +4363,7 @@ (define openttd-opengfx ("grfcodec" ,grfcodec) ("nml" ,nml) ("which" ,which) - ("python" ,python-2))) + ("python" ,python))) (home-page "http://dev.openttdcoop.org/projects/opengfx") (synopsis "Base graphics set for OpenTTD") (description -- cgit v1.2.3 From 574f4b7d3f8cf934d747dc15a6766c7f764404c7 Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Sat, 6 Nov 2021 10:40:38 +0000 Subject: gnu: openttd-opensfx: Update to 1.0.2. * packages/games.scm (openttd-opensfx): Update to 1.0.2. [native-inputs]: Replace python-2 with python. Signed-off-by: Liliana Marie Prikler --- gnu/packages/games.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index bcce16c91c..4764021f73 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -4383,7 +4383,7 @@ (define openttd-opengfx (define openttd-opensfx (package (name "openttd-opensfx") - (version "1.0.1") + (version "1.0.2") (source (origin (method url-fetch) @@ -4392,11 +4392,11 @@ (define openttd-opensfx version "/opensfx-" version "-source.tar.xz")) (sha256 (base32 - "06vycppqcxbfdqlxzna5xr303zgcmpcvj6ylw5b2ws0ssph2f1s0")))) + "0aym026lg0r7dp3jxxs9c0rj8lwy1fz3v9hmk3mml6sycsg3fv42")))) (build-system gnu-build-system) (native-inputs `(("catcodec" ,catcodec) - ("python" ,python-2) + ("python" ,python) ("tar" ,tar))) (arguments `(#:make-flags -- cgit v1.2.3 From c9b991985814b58542e41e375d5fb5d009f55bfc Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Sun, 7 Nov 2021 20:11:29 +0000 Subject: gnu: openttd-openmsx: Update to 0.4.2. * packages/games.scm (openttd-openmsx): Update to 0.4.2. [native-inputs]: Replace python-2 with python-wrapper. Signed-off-by: Liliana Marie Prikler --- gnu/packages/games.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 4764021f73..0b4f8c6bfe 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -4433,7 +4433,7 @@ (define openttd-opensfx (define openttd-openmsx (package (name "openttd-openmsx") - (version "0.4.0") + (version "0.4.2") (source (origin (method url-fetch) @@ -4442,11 +4442,13 @@ (define openttd-openmsx version "/openmsx-" version "-source.tar.xz")) (sha256 (base32 - "0prjljsdgdxqdhhcriqskqha004ybs575xcjq80zha3pqnmrdk0k")))) + "0h583d8fxy78kc3jvpp78r76a48qhxrhm4q7jbnj74aw0kwrcl8g")))) (build-system gnu-build-system) (native-inputs `(("grfcodec" ,grfcodec) - ("python" ,python-2) + ; Scripts are Python3 compatible, but call the interpreter as + ; python instead of python3. + ("python" ,python-wrapper) ("tar" ,tar))) (arguments `(#:make-flags -- cgit v1.2.3 From 92af2ec5d07b124c67f45e0e9d0e1202ac3e2220 Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Sat, 6 Nov 2021 10:40:40 +0000 Subject: gnu: openttd: Fix build failure. * packages/games.scm (openttd)[native-inputs]: Use gcc-9 to fix build failure. Signed-off-by: Liliana Marie Prikler --- gnu/packages/games.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 0b4f8c6bfe..1e5f0a1e9a 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -4497,6 +4497,7 @@ (define-public openttd `(("opengfx" ,openttd-opengfx) ("openmsx" ,openttd-openmsx) ("opensfx" ,openttd-opensfx) + ("gcc" ,gcc-9) ; for #include ,@(package-native-inputs openttd-engine))))) (define openrct2-title-sequences -- cgit v1.2.3 From dab2ac2ed53810427bb6a053137091d8d9ab3e56 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Sun, 7 Nov 2021 22:25:34 +0100 Subject: gnu: 0ad: Update to 0.0.25b-alpha. * gnu/packages/games.scm (0ad-data): Update to 0.0.25b-alpha. Unpack .zip files without need for a snippet. (0ad): Update to 0.0.25b-alpha. [arguments]<#:phases>: Properly unbundle cxxtest. Respect #:tests?. Install Freedesktop mimeinfo. Install icon to hicolor theme instead of share/pixmaps, which I don't think is used. <#:tests> Disable tests for now since they don't run. Signed-off-by: Nicolas Goaziou --- gnu/packages/games.scm | 96 +++++++++++++++++++++++++++----------------------- 1 file changed, 51 insertions(+), 45 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 1e5f0a1e9a..f33ee8795b 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -65,6 +65,8 @@ ;;; Copyright © 2021 Solene Rapenne ;;; Copyright © 2021 Noisytoot ;;; Copyright © 2021 Petr Hodina +;;; Copyright © 2021 Brendan Tildesley +;;; Copyright © 2021 Christopher Baines ;;; ;;; This file is part of GNU Guix. ;;; @@ -151,6 +153,7 @@ (define-module (gnu packages games) #:use-module (gnu packages less) #:use-module (gnu packages libcanberra) #:use-module (gnu packages libedit) + #:use-module (gnu packages libidn) #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) @@ -171,6 +174,7 @@ (define-module (gnu packages games) #:use-module (gnu packages perl-check) #:use-module (gnu packages perl-compression) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pretty-print) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) @@ -6667,7 +6671,7 @@ (define-public lugaru (define-public 0ad-data (package (name "0ad-data") - (version "0.0.23b-alpha") + (version "0.0.25b-alpha") (source (origin (method url-fetch) @@ -6675,21 +6679,10 @@ (define-public 0ad-data version "-unix-data.tar.xz")) (file-name (string-append name "-" version ".tar.xz")) (sha256 - (base32 - "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1")) - (modules '((guix build utils))) - (snippet - #~(begin - (for-each (lambda (name) - (let* ((dir (string-append "binaries/data/mods/" name)) - (file (string-append dir "/" name ".zip")) - (unzip #$(file-append unzip "/bin/unzip"))) - (invoke unzip "-d" dir file) - (delete-file file))) - '("mod" "public")) - #t)))) + (base32 "1c9zrddmjxvvacismld6fbwbw9vrdbq6g6d3424p8w5p6xg5wlwy")))) (build-system trivial-build-system) (native-inputs `(("tar" ,tar) + ("unzip" ,unzip) ("xz" ,xz))) (arguments `(#:modules ((guix build utils)) @@ -6699,10 +6692,18 @@ (define-public 0ad-data (let ((out (assoc-ref %outputs "out")) (source (assoc-ref %build-inputs "source")) (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar")) + (unzip (string-append (assoc-ref %build-inputs "unzip") + "/bin/unzip")) (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin"))) (setenv "PATH" xz-path) (mkdir out) - (invoke tar "xvf" source "-C" out "--strip=3"))))) + (invoke tar "xvf" source "-C" out "--strip=3") + (for-each (lambda (name) + (let* ((dir (string-append out "/mods/" name)) + (file (string-append dir "/" name ".zip"))) + (invoke unzip "-o" "-d" dir file) + (delete-file file))) + '("mod" "public")))))) (synopsis "Data files for 0ad") (description "0ad-data provides the data files required by the game 0ad.") (home-page "https://play0ad.com") @@ -6720,7 +6721,7 @@ (define-public 0ad-data (define-public 0ad (package (name "0ad") - (version "0.0.23b-alpha") + (version "0.0.25b-alpha") (source (origin (method url-fetch) @@ -6728,23 +6729,24 @@ (define-public 0ad version "-unix-build.tar.xz")) (file-name (string-append name "-" version ".tar.xz")) (sha256 - (base32 - "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1")))) - ;; A snippet here would cause a build failure because of timestamps - ;; reset. See https://bugs.gnu.org/26734. + (base32 "1p9fa8f7sjb9c5wl3mawzyfqvgr614kdkhrj2k4db9vkyisws3fp")))) + ;; A snippet here would cause a build failure because of timestamps + ;; reset. See https://bugs.gnu.org/26734. (inputs `(("0ad-data" ,0ad-data) ("curl" ,curl) ("enet" ,enet) + ("fmt" ,fmt) ("gloox" ,gloox) - ("icu4c" ,icu4c) + ("icu4c" ,icu4c-68) + ("libidn" ,libidn) ("libpng" ,libpng) ("libsodium" ,libsodium) ("libvorbis" ,libvorbis) ("libxcursor" ,libxcursor) ("libxml2" ,libxml2) ("miniupnpc" ,miniupnpc) - ("mozjs-38" ,mozjs-38) + ("mozjs" ,mozjs-78) ("openal" ,openal) ("sdl2" ,sdl2) ("wxwidgets" ,wxwidgets) @@ -6752,29 +6754,27 @@ (define-public 0ad (native-inputs `(("boost" ,boost) ("cmake" ,cmake-minimal) + ("cxxtest" ,cxxtest) ("mesa" ,mesa) ("pkg-config" ,pkg-config) ("python-2" ,python-2))) (build-system gnu-build-system) (arguments `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc") + #:tests? #f ;tests fail currently #:phases (modify-phases %standard-phases (add-after 'unpack 'delete-bundles - (lambda _ + (lambda* (#:key inputs #:allow-other-keys) (delete-file-recursively "libraries/source/spidermonkey") - #t)) - (add-after 'unpack 'fix-x11-includes - (lambda _ - (substitute* "source/lib/sysdep/os/unix/x/x.cpp" - (("") "")) - (substitute* "source/lib/sysdep/os/unix/x/x.cpp" - (("") "")) - (substitute* "source/lib/sysdep/os/unix/x/x.cpp" - (("") "")) - #t)) + (delete-file-recursively "libraries/source/cxxtest-4.4") + (substitute* "build/premake/premake5.lua" + (("rootdir\\.\\.\"\\/libraries\\/source\\/cxxtest-4.4\\/bin\\/cxxtestgen\"") + (string-append "\"" (assoc-ref inputs "cxxtest") + "/bin/cxxtestgen" + "\""))))) (replace 'configure - (lambda* (#:key inputs outputs #:allow-other-keys) + (lambda* (#:key inputs outputs tests? #:allow-other-keys) (let* ((jobs (number->string (parallel-job-count))) (out (assoc-ref outputs "out")) (lib (string-append out "/lib")) @@ -6782,11 +6782,13 @@ (define-public 0ad (setenv "JOBS" (string-append "-j" jobs)) (setenv "CC" "gcc") (with-directory-excursion "build/workspaces" - (invoke "./update-workspaces.sh" - (string-append "--libdir=" lib) - (string-append "--datadir=" data) - ;; TODO: "--with-system-nvtt" - "--with-system-mozjs38"))))) + (apply invoke + `("./update-workspaces.sh" + ,(string-append "--libdir=" lib) + ,(string-append "--datadir=" data) + ;; TODO: "--with-system-nvtt" + "--with-system-mozjs" + ,@(if tests? '() '("--without-tests")))))))) (delete 'check) (replace 'install (lambda* (#:key inputs outputs #:allow-other-keys) @@ -6796,7 +6798,9 @@ (define-public 0ad (lib (string-append out "/lib")) (data (string-append out "/share/0ad")) (applications (string-append out "/share/applications")) - (pixmaps (string-append out "/share/pixmaps")) + (hicolor (string-append out "/share/icons/hicolor/128x128/apps")) + (metainfo (string-append out "/share/metainfo")) + (mime (string-append out "/share/mime/application")) (0ad-data (assoc-ref inputs "0ad-data"))) ;; data (copy-recursively "data" data) @@ -6815,12 +6819,14 @@ (define-public 0ad ;; resources (with-directory-excursion "../build/resources" (install-file "0ad.desktop" applications) - (install-file "0ad.png" pixmaps)) - #t))) + (install-file "0ad.png" hicolor) + (install-file "0ad.appdata.xml" metainfo) + (install-file "pyrogenesis.xml" mime))))) (add-after 'install 'check - (lambda _ - (with-directory-excursion "system" - (invoke "./test"))))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "system" + (invoke "./test")))))))) (home-page "https://play0ad.com") (synopsis "3D real-time strategy game of ancient warfare") (description "0 A.D. is a real-time strategy (RTS) game of ancient -- cgit v1.2.3 From 3f4eb02fe523f63eaf5c44e323f77061977aba7d Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Mon, 8 Nov 2021 01:21:05 +0100 Subject: gnu: fheroes2: Update to 0.9.9. * gnu/packages/games.scm (fheroes2): Update to 0.9.9. --- gnu/packages/games.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index f33ee8795b..a474933c93 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -12686,7 +12686,7 @@ (define-public sdlpop (define-public fheroes2 (package (name "fheroes2") - (version "0.9.8") + (version "0.9.9") (build-system cmake-build-system) (arguments `(#:tests? #f ; no tests @@ -12706,7 +12706,7 @@ (define-public fheroes2 (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1sc7rmyiciahxh5f6rarhil2hrw8q8sjdssh063grji50mlnrf6a")))) + (base32 "030kfaagxy3i7bjvbx2nf05jmbbh5g2r52l17y9bl6vbfj67yvxy")))) (home-page "https://ihhub.github.io/fheroes2/") (synopsis "Turn-based strategy game engine") (description "@code{fheroes2} is an implementation of Heroes of Might and -- cgit v1.2.3