gnu: openrct2: Update to 0.2.2.

* gnu/packages/games.scm (openrct2): Update to 0.2.2.
[arguments]: Re-indent.
This commit is contained in:
Tobias Geerinckx-Rice 2019-03-15 21:32:24 +01:00
parent 924e6993aa
commit 6457509c73
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 28 additions and 27 deletions

View File

@ -2596,45 +2596,46 @@ Transport Tycoon Deluxe.")
(define-public openrct2 (define-public openrct2
(package (package
(name "openrct2") (name "openrct2")
(version "0.2.1") (version "0.2.2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://github.com/OpenRCT2/OpenRCT2/archive/v" (uri (string-append "https://github.com/OpenRCT2/OpenRCT2/archive/v"
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
(base32 (base32 "0yxaphgfq85piaacnnfy6lrvmnqmfj1891rxlkl5ndngq0zh0ysb"))
"1fxzk037xphpyk7vv5jfrcz739zrj86p43pnf5gjjv9rjxwv7m8f"))
(file-name (string-append name "-" version ".tar.gz")))) (file-name (string-append name "-" version ".tar.gz"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF" `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
"-DDOWNLOAD_TITLE_SEQUENCES=OFF") "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
#:tests? #f ; Tests require network. #:tests? #f ; tests require network access
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-usr-share-paths&add-data (add-after 'unpack 'fix-usr-share-paths&add-data
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let ((titles (assoc-ref inputs "openrct2-title-sequences")) (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
(objects (assoc-ref inputs "openrct2-objects"))) (objects (assoc-ref inputs "openrct2-objects")))
;; Fix some references to /usr/share. ;; Fix some references to /usr/share.
(substitute* "src/openrct2/platform/Platform.Linux.cpp" (substitute* "src/openrct2/platform/Platform.Linux.cpp"
(("/usr/share") (("/usr/share")
(string-append (assoc-ref %outputs "out") "/share"))) (string-append (assoc-ref %outputs "out") "/share")))
(copy-recursively (string-append titles (copy-recursively
"/share/openrct2/title-sequences") "data/title") (string-append titles "/share/openrct2/title-sequences")
(copy-recursively (string-append objects "data/title")
"/share/openrct2/objects") "data/object")))) (copy-recursively
(add-before 'configure 'fixgcc7 (string-append objects "/share/openrct2/objects")
(lambda _ "data/object"))))
(unsetenv "C_INCLUDE_PATH") (add-before 'configure 'fixgcc7
(unsetenv "CPLUS_INCLUDE_PATH") (lambda _
#t)) (unsetenv "C_INCLUDE_PATH")
(add-after 'fixgcc7 'get-rid-of-errors (unsetenv "CPLUS_INCLUDE_PATH")
(lambda _ #t))
;; Don't treat warnings as errors. (add-after 'fixgcc7 'get-rid-of-errors
(substitute* "CMakeLists.txt" (lambda _
(("-Werror") ""))))))) ;; Don't treat warnings as errors.
(substitute* "CMakeLists.txt"
(("-Werror") "")))))))
(inputs `(("curl" ,curl) (inputs `(("curl" ,curl)
("fontconfig" ,fontconfig) ("fontconfig" ,fontconfig)
("freetype" ,freetype) ("freetype" ,freetype)