summaryrefslogtreecommitdiff
path: root/gnu/packages/games.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/games.scm')
-rw-r--r--gnu/packages/games.scm195
1 files changed, 117 insertions, 78 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 2128a06d30..12d4efff4a 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -1554,6 +1554,9 @@ practise.")
(arguments
(list
#:tests? #f ;no tests
+ #:modules '((guix build qt-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'configure
@@ -1563,6 +1566,8 @@ practise.")
#$output))
(invoke "qmake" "DoomRunner.pro" "-spec" "linux-g++"
"\"CONFIG+=release\"")))
+ (replace 'build (assoc-ref gnu:%standard-phases 'build))
+ (replace 'install (assoc-ref gnu:%standard-phases 'install))
(add-after 'install 'install-xdg
(lambda _
(with-directory-excursion "Install/XDG"
@@ -7183,6 +7188,9 @@ colors, pictures, and sounds.")
(arguments
(list
#:tests? #f ;no test suite
+ #:modules '((guix build qt-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'configure
@@ -7198,7 +7206,9 @@ colors, pictures, and sounds.")
((" h264bitstream.*\n") "")
((" app \\\\") " app")
(("app.depends") "INCLUDEPATH +="))
- (invoke "qmake" (string-append "PREFIX=" #$output)))))))
+ (invoke "qmake" (string-append "PREFIX=" #$output))))
+ (replace 'build (assoc-ref gnu:%standard-phases 'build))
+ (replace 'install (assoc-ref gnu:%standard-phases 'install)))))
(native-inputs (list pkg-config qttools-5))
(inputs (list ffmpeg
h264bitstream
@@ -7603,22 +7613,31 @@ screensaver.")))
(native-inputs
(list cppunit pkg-config))
(arguments
- `(#:configure-flags
- (list "-DCMAKE_CXX_FLAGS=-fcommon"
- "-DCMAKE_C_FLAGS=-fcommon"
- (string-append "-DCUSTOM_DATA_INSTALL_PATH="
- (search-input-directory %build-inputs
- "share/megaglest"))
- "-DBUILD_MEGAGLEST_TESTS=ON")
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-ini-search-path
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "source/glest_game/global/config.cpp"
- (("/usr/share/megaglest/")
- (string-append (assoc-ref outputs "out")
- "/share/megaglest/"))))))
- #:test-target "megaglest_tests"))
+ (list
+ #:modules '((guix build cmake-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
+ #:configure-flags
+ #~(list "-DCMAKE_CXX_FLAGS=-fcommon"
+ "-DCMAKE_C_FLAGS=-fcommon"
+ (string-append "-DCUSTOM_DATA_INSTALL_PATH="
+ (search-input-directory %build-inputs
+ "share/megaglest"))
+ "-DBUILD_MEGAGLEST_TESTS=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-ini-search-path
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "source/glest_game/global/config.cpp"
+ (("/usr/share/megaglest/")
+ (string-append (assoc-ref outputs "out")
+ "/share/megaglest/")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys #:rest args)
+ (when tests?
+ (apply (assoc-ref gnu:%standard-phases 'check)
+ #:tests? tests? #:test-target "megaglest_tests" args)
+ (invoke "source/tests/megaglest_tests")))))))
(home-page "https://megaglest.org/")
(synopsis "3D real-time strategy (RTS) game")
(description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
@@ -7844,26 +7863,31 @@ small robot living in the nano world, repair its maker.")
#t))))
(build-system cmake-build-system)
(arguments
- `(#:test-target "run_tests"
+ (list
+ #:modules '((guix build cmake-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-paths
- (lambda* (#:key outputs #:allow-other-keys)
- ;; Embed path to assets.
- (substitute* "src/engine/shared/storage.cpp"
- (("#define DATA_DIR.*")
- (string-append "#define DATA_DIR \""
- (assoc-ref outputs "out")
- "/share/teeworlds/data"
- "\"")))
- #t))
- (add-after 'unpack 'replace-font
- (lambda* (#:key inputs #:allow-other-keys)
- (delete-file "datasrc/fonts/DejaVuSans.ttf")
- (symlink (string-append (assoc-ref inputs "font-dejavu")
- "/share/fonts/truetype/DejaVuSans.ttf")
- "datasrc/fonts/DejaVuSans.ttf")
- #t)))))
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Embed path to assets.
+ (substitute* "src/engine/shared/storage.cpp"
+ (("#define DATA_DIR.*")
+ (string-append "#define DATA_DIR \""
+ (assoc-ref outputs "out")
+ "/share/teeworlds/data"
+ "\"")))))
+ (add-after 'unpack 'replace-font
+ (lambda* (#:key inputs #:allow-other-keys)
+ (delete-file "datasrc/fonts/DejaVuSans.ttf")
+ (symlink (string-append (assoc-ref inputs "font-dejavu")
+ "/share/fonts/truetype/DejaVuSans.ttf")
+ "datasrc/fonts/DejaVuSans.ttf")))
+ (replace 'check
+ (lambda* (#:rest args)
+ (apply (assoc-ref gnu:%standard-phases 'check)
+ #:test-target "run_tests" args))))))
(inputs
(list freetype
font-dejavu
@@ -10808,7 +10832,9 @@ a fortress beyond the forbidden swamp.")
(list
#:configure-flags
#~(list "-DAudio_TK=OpenAL")
- #:test-target "tests"
+ #:modules '((guix build cmake-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'prepare-gmock
@@ -10839,7 +10865,13 @@ a fortress beyond the forbidden swamp.")
(substitute* "CMakeLists.txt"
(("share/games/openclonk") "share/openclonk")
(("TARGETS openclonk DESTINATION games")
- "TARGETS openclonk DESTINATION bin")))))))
+ "TARGETS openclonk DESTINATION bin"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys #:rest args)
+ (when tests?
+ (apply (assoc-ref gnu:%standard-phases 'check)
+ #:tests? tests? #:test-target "tests" args)
+ (invoke "tests/tests")))))))
(native-inputs
(list (package-source googletest)
googletest
@@ -11134,13 +11166,7 @@ levels to unlock.")
(build-system cmake-build-system)
(arguments
`(#:configure-flags (list "-DSYSTEM_EXPAT=ON")
- #:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Skip tests that require internet access.
- (invoke "ctest" "-E" "(http|dns)")))))))
+ #:test-exclude "(http|dns)"))
(inputs
`(("boost" ,boost)
("curl" ,curl)
@@ -11292,7 +11318,10 @@ attached joysticks and displays which buttons and axis are pressed.")
(base32
"1x5m6xvd1r9dhgzh6hp4vrszczbbxr04v7lyh4wjxxzrj3ahbmcq"))))
(build-system cmake-build-system)
- (arguments (list #:configure-flags #~(list "-DBUILD_TESTS=ON")))
+ (arguments
+ (list #:tests? #f
+ #:configure-flags
+ #~(list "-DBUILD_TESTS=ON")))
(native-inputs (list pkg-config))
(inputs (list gtkmm-3 libsigc++-2))
(home-page "https://github.com/Grumbel/jstest-gtk/")
@@ -11812,12 +11841,17 @@ can be downloaded from @url{https://zero.sjeng.org/best-network}.")
(arguments
(list
#:tests? #f
+ #:modules '((guix build qt-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'configure
(lambda _
(invoke "qmake"
- (string-append "PREFIX=" #$output)))))))
+ (string-append "PREFIX=" #$output))))
+ (replace 'build (assoc-ref gnu:%standard-phases 'build))
+ (replace 'install (assoc-ref gnu:%standard-phases 'install)))))
(inputs (list qtbase-5 qtsvg-5))
(home-page "https://portnov.github.io/qcheckers/")
(synopsis "Qt-based checkers boardgame")
@@ -12004,35 +12038,36 @@ and chess engines.")
(inputs
(list qtbase-5 qtmultimedia-5 qtspeech-5 qtsvg-5 zlib))
(arguments
- `(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-paths
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "chessx.pro"
- (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
- (search-input-file inputs "/bin/lrelease")))))
- (add-after 'fix-paths 'make-qt-deterministic
- (lambda _
- (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
- #t))
- (add-after 'make-qt-deterministic 'disable-versioncheck
- (lambda _
- (substitute* "src/database/settings.cpp"
- (("\"/General/onlineVersionCheck\", true")
- "\"/General/onlineVersionCheck\", false"))
- #t))
- (replace 'configure
- (lambda _
- (invoke "qmake")
- #t))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (install-file "release/chessx" (string-append out "/bin"))
- (install-file "unix/chessx.desktop"
- (string-append out "/share/applications")))
- #t)))))
+ (list
+ #:tests? #f
+ #:modules '((guix build qt-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "chessx.pro"
+ (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
+ (search-input-file inputs "/bin/lrelease")))))
+ (add-after 'fix-paths 'make-qt-deterministic
+ (lambda _
+ (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")))
+ (add-after 'make-qt-deterministic 'disable-versioncheck
+ (lambda _
+ (substitute* "src/database/settings.cpp"
+ (("\"/General/onlineVersionCheck\", true")
+ "\"/General/onlineVersionCheck\", false"))))
+ (replace 'configure
+ (lambda _
+ (invoke "qmake")))
+ (replace 'build (assoc-ref gnu:%standard-phases 'build))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (install-file "release/chessx" (string-append out "/bin"))
+ (install-file "unix/chessx.desktop"
+ (string-append out "/share/applications"))))))))
(synopsis "Chess game database")
(description
"ChessX is a chess database. With ChessX you can operate on your
@@ -12406,6 +12441,9 @@ game.") ;thanks to Debian for description
(arguments
(list
#:tests? #f ; No test suite
+ #:modules '((guix build qt-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
@@ -12428,7 +12466,9 @@ game.") ;thanks to Debian for description
(replace 'configure
(lambda _
(invoke "qmake" "pokerth.pro" "CONFIG+=client"
- (string-append "PREFIX=" #$output)))))))
+ (string-append "PREFIX=" #$output))))
+ (replace 'build (assoc-ref gnu:%standard-phases 'build))
+ (replace 'install (assoc-ref gnu:%standard-phases 'install)))))
(home-page "https://www.pokerth.net")
(synopsis "Texas holdem poker game")
(description
@@ -13482,7 +13522,6 @@ virtual reality devices.")
(build-system cmake-build-system)
(arguments
(list
- #:cmake cmake-next
#:configure-flags
#~(list "-DUSE_TESTS=ON" "-DOPENGL_BACKEND=OpenGL")))
(native-inputs (list python-3.10 glibc-locales googletest))