3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: frotz: Update to 2.54.

This fixes the build.

* gnu/packages/games.scm (frotz): Update to 2.54.
[arguments]: Use G-expressions.  Set CC in #:make-flags.
Remove obsolete 'curses phase.
Don't explicitly return #t from phases.
[native-inputs]: Add pkg-config and which.
[inputs]: Add ao.
This commit is contained in:
Tobias Geerinckx-Rice 2022-07-31 02:00:04 +02:00
parent 32ac3efa98
commit fe47ae3b79
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -8003,7 +8003,7 @@ open-source FPS of its kind.")
(define-public frotz
(package
(name "frotz")
(version "2.44")
(version "2.54")
(source (origin
(method url-fetch)
(uri (list (string-append
@ -8014,28 +8014,25 @@ open-source FPS of its kind.")
"frotz/frotz-" version ".tar.gz")))
(sha256
(base32
"1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
"1vsfq9ryyb4nvzxpnnn40k423k9pdy8k67i8390qz5h0vmxw0fds"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; there are no tests
#:phases
(modify-phases %standard-phases
(delete 'configure)
(add-before 'build 'curses
(lambda _
(substitute* "Makefile"
(("lcurses") "lncurses"))
#t))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
(man (string-append out "/share/man/man6")))
(install-file "frotz" bin)
(mkdir-p man)
(install-file "doc/frotz.6" man)
#t))))))
(inputs (list libmodplug libsamplerate libsndfile libvorbis ncurses))
(list #:tests? #f ; there are no tests
#:make-flags
#~(list (string-append "CC=" #$(cc-for-target)))
#:phases
#~(modify-phases %standard-phases
(delete 'configure) ; no configure-script
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
(man (string-append out "/share/man/man6")))
(install-file "frotz" bin)
(mkdir-p man)
(install-file "doc/frotz.6" man)))))))
(native-inputs (list pkg-config which))
(inputs (list ao libmodplug libsamplerate libsndfile libvorbis ncurses))
(synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
(description "Frotz is an interpreter for Infocom games and other Z-machine
games in the text adventure/interactive fiction genre. This version of Frotz