From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxNoZ-0000GS-U6 for guix-patches@gnu.org; Tue, 04 Sep 2018 22:45:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxNoW-0003zI-4e for guix-patches@gnu.org; Tue, 04 Sep 2018 22:45:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxNoU-0003vx-4G for guix-patches@gnu.org; Tue, 04 Sep 2018 22:45:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fxNoT-0007Pk-Px for guix-patches@gnu.org; Tue, 04 Sep 2018 22:45:01 -0400 Subject: [bug#32638] [PATCH] games.scm - add frotz packages Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxNni-0000DB-DP for guix-patches@gnu.org; Tue, 04 Sep 2018 22:44:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxNna-0002kk-T2 for guix-patches@gnu.org; Tue, 04 Sep 2018 22:44:10 -0400 Received: from mail-it0-x22e.google.com ([2607:f8b0:4001:c0b::22e]:52475) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxNnW-0002JS-Hw for guix-patches@gnu.org; Tue, 04 Sep 2018 22:44:04 -0400 Received: by mail-it0-x22e.google.com with SMTP id h3-v6so7926235ita.2 for ; Tue, 04 Sep 2018 19:43:57 -0700 (PDT) Received: from vitasta (c-174-52-88-123.hsd1.ut.comcast.net. [174.52.88.123]) by smtp.gmail.com with ESMTPSA id a11-v6sm417789ita.21.2018.09.04.19.43.55 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Sep 2018 19:43:55 -0700 (PDT) From: Benjamin Slade Date: Tue, 04 Sep 2018 20:43:47 -0600 Message-ID: <874lf48xzw.fsf@jnanam.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32638@debbugs.gnu.org --=-=-= Content-Type: text/plain gnu: Add frotz, frotz-dumb-terminal, frotz-sdl * gnu/packages/games.scm (frotz): New variable. * gnu/packages/games.scm (frotz-dumb-terminal): New variable. * gnu/packages/games.scm (frotz-sdl): New variable. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=games.scm.patch Content-Transfer-Encoding: quoted-printable Content-Description: add frotz pkgs to games.scm diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 728f76380..0ae2d0548 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -34,6 +34,7 @@ ;;; Copyright =C2=A9 2018 okapi ;;; Copyright =C2=A9 2018 Tim Gesthuizen ;;; Copyright =C2=A9 2018 Madalin Ionel-Patrascu +;;; Copyright =C2=A9 2018 Benjamin Slade ;;; ;;; This file is part of GNU Guix. ;;; @@ -5553,3 +5554,153 @@ open-source FPS of its kind.") (license (list license:gpl2+ license:bsd-3 ; /source/d0_blind_id folder and others (license:x11-style "" "See file rcon.pl."))))) + +(define-public frotz + (package + (name "frotz") + (version "2.44") + (source (origin + (method url-fetch) + (uri (list (string-append + "http://www.ifarchive.org/if-archive/infocom/int= erpreters/" + name "/" name "-" version ".tar.gz") + (string-append + "ftp://ftp.ifarchive.org/if-archive/infocom/inte= rpreters/" + name "/" name "-" version ".tar.gz"))) + (sha256 + (base32 + "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k")))) + (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")))) + (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 `(("libmodplug" ,libmodplug) + ("libsamplerate" ,libsamplerate) + ("libsndfile" ,libsndfile) + ("libvorbis" ,libvorbis) + ("ncurses" ,ncurses))) + (synopsis "Portable Z-machine interpreter (ncurses version) for text a= dventure games") + (description "Frotz is an interpreter for Infocom games and +other Z-machine games in the text adventure/interactive fiction genre. Thi= s version +of Frotz complies with standard 1.0 of Graham Nelson's specification. It p= lays all +Z-code games V1-V8, including V6, with sound support through libao, and us= es ncurses +for text display.") + (home-page "http://frotz.sourceforge.net") + (license license:gpl2))) + +(define-public frotz-dumb-terminal + (package + (name "frotz-dumb-terminal") + (version "2.44") + (source (origin + (method url-fetch) + (uri (list (string-append + "http://www.ifarchive.org/if-archive/infocom/int= erpreters/" + "frotz" "/" "frotz" "-" version ".tar.gz") + (string-append + "ftp://ftp.ifarchive.org/if-archive/infocom/inte= rpreters/" + "frotz" "/" "frotz" "-" version ".tar.gz"))) + (sha256 + (base32 + "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; there are no tests + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda _ + (invoke "make" "dumb"))) + (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 "dfrotz" bin) + (mkdir-p man) + (install-file "doc/dfrotz.6" man) + #t)))))) + (synopsis "Portable Z-machine dumb interpreter for text adventure game= s") + (description "Frotz is an interpreter for Infocom games and +other Z-machine games in the text adventure/interactive fiction genre. dfr= otz is the +dumb interface version. You get no screen control; everything is just prin= ted to the +terminal line by line. The terminal handles all the scrolling. Maybe you'= d like to +experience what it's like to play Adventure on a teletype. A much cooler u= se for +compiling Frotz with the dumb interface is that it can be wrapped in CGI s= cripting, +PHP, and the like to allow people to play games on webpages. It can also = be made +into a chat bot.") + (home-page "http://frotz.sourceforge.net") + (license license:gpl2))) + +(define-public frotz-sdl + (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24")) + (package + (name "frotz-sdl") + (version "2.45pre") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/DavidGriffith/frotz") + (commit commit))) + (sha256 + (base32 + "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))= )) + (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")))) + (replace 'build + (lambda _ + (invoke "make" "sdl"))) + (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 "sfrotz" bin) + (mkdir-p man) + (install-file "doc/sfrotz.6" man) + #t)))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("which" ,which))) + (inputs `(("sdl2" ,sdl2) + ("sdl2-mixer" ,sdl2-mixer)=20=20=20=20=20=20=20=20=20=20= =20=20=20 + ("libmodplug" ,libmodplug) + ("libsamplerate" ,libsamplerate) + ("libsndfile" ,libsndfile) + ("libvorbis" ,libvorbis) + ("ncurses" ,ncurses) + ("freetype" ,freetype) + ("libjpeg-turbo" ,libjpeg-turbo))) + (synopsis "Portable Z-machine interpreter (SDL-port) for text advent= ure games") + (description "Frotz is an interpreter for Infocom games and other Z-= machine +games in the text adventure/interactive fiction genre. This version of Fro= tz using +SDL fully supports all these versions of the Z-Machine including the graph= ical +version 6. Graphics and sound are created through the use of the SDL libr= aries. +AIFF sound effects and music in MOD and OGG formats are supported when pac= kaged in +Blorb container files or optionally from individual files.") + (home-page "http://frotz.sourceforge.net") + (license license:gpl2)))) --=-=-= Content-Type: text/plain -- Benjamin Slade - https://babbagefiles.xyz `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19)) '(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org ) `(Choose Linux ,(Choose Freedom) . https://linux.com ) --=-=-=--