me
/
guix
Archived
1
0
Fork 0

gnu: cataclysm-dda: Update snapshot.

* gnu/packages/games.scm (cataclysm-dda): Update snapshot to ad3b0c3d5.
[source]: Use git-fetch and remove snippet.
[arguments]: Remove 'configure' phase.  Use 'invoke' in 'build-tiles' and
'install-tiles' phases.
master
Kei Kebreau 2018-06-29 10:55:00 -04:00
parent 12a96d4d41
commit 529701aa01
No known key found for this signature in database
GPG Key ID: E6A5EE3C19467A0D
1 changed files with 64 additions and 76 deletions

View File

@ -177,82 +177,70 @@ settings to tweak as well.")
(license license:gpl2+))) (license license:gpl2+)))
(define-public cataclysm-dda (define-public cataclysm-dda
(package (let ((commit "ad3b0c3d521292d119f97a83390e7acfe9e9e7f7")
(name "cataclysm-dda") (revision "1"))
(version "0.C") (package
(source (origin (name "cataclysm-dda")
(method url-fetch) ;; This denotes the version released after the 0.C release.
(uri (string-append "https://github.com/CleverRaven/Cataclysm-DDA/" ;; Revert to a normal version number if updating to stable version 0.D.
"archive/" version ".tar.gz")) (version (git-version "0.C" revision commit))
(file-name (string-append name "-" version ".tar.gz")) (source (origin
(sha256 (method git-fetch)
(base32 (uri (git-reference
"1xlajmgl9cviqyjpp5g5q4rbljy9gqc49v54bi8gpzr68s14gsb9")) (url "https://github.com/CleverRaven/Cataclysm-DDA.git")
(modules '((guix build utils))) (commit commit)))
(snippet (sha256
;; Import cmath header for the std::pow function. (base32
'(begin "1kdgbl8zqd53f5yilm2c9nyq3w6585yxl5jvgxy65dlpzxcqqj7y"))
(for-each (lambda (file) (file-name (git-file-name name version))))
(substitute* file (build-system gnu-build-system)
(("#include <math.h>") (arguments
"#include <cmath>"))) '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
(find-files "src")) "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1")
#t)))) #:phases
(build-system gnu-build-system) (modify-phases %standard-phases
(arguments (delete 'configure)
'(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) (add-after 'build 'build-tiles
"USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1") (lambda* (#:key make-flags outputs #:allow-other-keys)
#:phases ;; Change prefix directory and enable tile graphics and sound.
(modify-phases %standard-phases (apply invoke "make" "TILES=1" "SOUND=1"
(replace 'configure (string-append "PREFIX="
(lambda _ (assoc-ref outputs "tiles"))
(substitute* "Makefile" (cdr make-flags))))
(("ncursesw5-config") "ncursesw6-config") (add-after 'install 'install-tiles
(("RELEASE_FLAGS = -Werror") "RELEASE_FLAGS =")) (lambda* (#:key make-flags outputs #:allow-other-keys)
#t)) (apply invoke "make" "install" "TILES=1" "SOUND=1"
(add-after 'build 'build-tiles (string-append "PREFIX="
(lambda* (#:key make-flags outputs #:allow-other-keys) (assoc-ref outputs "tiles"))
;; Change prefix directory and enable tile graphics and sound. (cdr make-flags)))))
(zero? ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
(apply system* "make" "TILES=1" "SOUND=1" ;; input in order to support tests.
(string-append "PREFIX=" #:tests? #f))
(assoc-ref outputs "tiles")) (outputs '("out"
(cdr make-flags))))) "tiles")) ; For tile graphics and sound support.
(add-after 'install 'install-tiles (native-inputs
(lambda* (#:key make-flags outputs #:allow-other-keys) `(("gettext" ,gettext-minimal)
(zero? ("pkg-config" ,pkg-config)))
(apply system* "make" "install" "TILES=1" "SOUND=1" (inputs
(string-append "PREFIX=" `(("freetype" ,freetype)
(assoc-ref outputs "tiles")) ("libogg" ,libogg)
(cdr make-flags)))))) ("libvorbis" ,libvorbis)
;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native ("ncurses" ,ncurses)
;; input in order to support tests. ("sdl2" ,sdl2)
#:tests? #f)) ("sdl2-image" ,sdl2-image)
(outputs '("out" ("sdl2-ttf" ,sdl2-ttf)
"tiles")) ; For tile graphics and sound support. ("sdl2-mixer" ,sdl2-mixer)))
(native-inputs (home-page "http://en.cataclysmdda.com/")
`(("gettext" ,gettext-minimal) (synopsis "Survival horror roguelike video game")
("pkg-config" ,pkg-config))) (description
(inputs "Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic
`(("freetype" ,freetype) world. Struggle to survive in a harsh, persistent, procedurally generated
("libogg" ,libogg) world. Scavenge the remnants of a dead civilization for food, equipment, or,
("libvorbis" ,libvorbis) if you are lucky, a vehicle with a full tank of gas to get you out of Dodge.
("ncurses" ,ncurses) Fight to defeat or escape from a wide variety of powerful monstrosities, from
("sdl2" ,sdl2) zombies to giant insects to killer robots and things far stranger and deadlier,
("sdl2-image" ,sdl2-image) and against the others like yourself, that want what you have.")
("sdl2-ttf" ,sdl2-ttf) (license license:cc-by-sa3.0))))
("sdl2-mixer" ,sdl2-mixer)))
(home-page "http://en.cataclysmdda.com/")
(synopsis "Survival horror roguelike video game")
(description
"Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world.
Struggle to survive in a harsh, persistent, procedurally generated world.
Scavenge the remnants of a dead civilization for food, equipment, or, if you are
lucky, a vehicle with a full tank of gas to get you out of Dodge. Fight to
defeat or escape from a wide variety of powerful monstrosities, from zombies to
giant insects to killer robots and things far stranger and deadlier, and against
the others like yourself, that want what you have.")
(license license:cc-by-sa3.0)))
(define-public cowsay (define-public cowsay
(package (package