mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: the-butterfly-effect: Fix build.
* gnu/packages/games.scm (the-butterfly-effect)[build-system]: Switch to the cmake-build-system. [arguments]: Don't delete the 'configure phase. Remove custom 'install phase. Add a phase to set some cmake variables and one to disable the translations. [native-inputs]: Remove cmake-minimal. Change-Id: I8f654b1e0c3231dda87ea41c150cc85661541cda
This commit is contained in:
parent
84a53f3fa4
commit
c9d4a1c42e
1 changed files with 12 additions and 15 deletions
|
@ -19,7 +19,7 @@
|
||||||
;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
|
;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
|
||||||
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
|
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
|
||||||
;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
|
;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
|
||||||
;;; Copyright © 2016-2021, 2023 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2016-2021, 2023, 2024 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
||||||
;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
|
;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
|
||||||
;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
|
;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
|
||||||
|
@ -7884,22 +7884,20 @@ making Yamagi Quake II one of the most solid Quake II implementations available.
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
|
"1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
|
||||||
(build-system gnu-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(add-after 'unpack 'set-cmake-install-prefix
|
||||||
;; There is no "install" phase. By default, tbe is installed
|
|
||||||
;; in the build directory. Provide our own installation.
|
|
||||||
(replace 'install
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(substitute* "CMakeLists.txt"
|
||||||
(bin (string-append out "/bin"))
|
(("/usr") (assoc-ref outputs "out"))
|
||||||
(share (string-append out "/share")))
|
(("TBE_BIN_DIR games") "TBE_BIN_DIR bin"))))
|
||||||
(install-file "usr/games/tbe" bin)
|
(add-after 'unpack 'disable-translations
|
||||||
(mkdir-p share)
|
;; TODO: Re-enable translations when they no longer fail to build.
|
||||||
(copy-recursively "usr/share" share)
|
(lambda _
|
||||||
#t))))
|
(substitute* "CMakeLists.txt"
|
||||||
|
((".*i18n.*") "")))))
|
||||||
;; Test suite requires a running Xorg server. Even when
|
;; Test suite requires a running Xorg server. Even when
|
||||||
;; provided, it fails with "D-Bus library appears to be
|
;; provided, it fails with "D-Bus library appears to be
|
||||||
;; incorrectly set up; failed to read machine uuid: Failed to
|
;; incorrectly set up; failed to read machine uuid: Failed to
|
||||||
|
@ -7909,8 +7907,7 @@ making Yamagi Quake II one of the most solid Quake II implementations available.
|
||||||
(inputs
|
(inputs
|
||||||
(list qtbase-5 qtsvg-5))
|
(list qtbase-5 qtsvg-5))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("cmake" ,cmake-minimal)
|
`(("gettext-minimal" ,gettext-minimal)
|
||||||
("gettext-minimal" ,gettext-minimal)
|
|
||||||
("qttools-5" ,qttools-5)))
|
("qttools-5" ,qttools-5)))
|
||||||
(synopsis "Realistic physics puzzle game")
|
(synopsis "Realistic physics puzzle game")
|
||||||
(description "The Butterfly Effect (tbe) is a game that uses
|
(description "The Butterfly Effect (tbe) is a game that uses
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue