From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 22 20:58:26 2022 Received: (at 52684) by debbugs.gnu.org; 23 Jun 2022 00:58:26 +0000 Received: from localhost ([127.0.0.1]:36911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4BAw-0008M4-Ag for submit@debbugs.gnu.org; Wed, 22 Jun 2022 20:58:26 -0400 Received: from mail-qv1-f50.google.com ([209.85.219.50]:34478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4BAr-0008Ln-5h for 52684@debbugs.gnu.org; Wed, 22 Jun 2022 20:58:25 -0400 Received: by mail-qv1-f50.google.com with SMTP id t16so22784705qvh.1 for <52684@debbugs.gnu.org>; Wed, 22 Jun 2022 17:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cE1wA2XyNVV6/QnoagpIlYE3hRfHvElSFSncRlqxdrY=; b=PFR/hm742lZZpkjWGwYtNj/sMldVtMyUq+hv1z7t07kbXOtvZGs2O2psuuWBEQZwAS Ah1V9tc8sgAtkG7vJEyJ5ynP9ghA9teHuTKLgWFS2a36hzM3DX/iaMQcctWv/UdTu9Ge Qfe6MuSkWYW3Fl78GU0SJf4Qbkk5QD+pub7yn4djDQobY/eQE+qI1mBcCdkzVEa4pTZ+ v0JwUjyykl8kXMyHN4f31OvH428ly5bXQwMbPLnyxpkcPAbq4IJpjxZfDyecawBtS/J9 F7VzbNcOALhvvTIcghCe7YM4Zng2Cjwk7TclIjn01VNUxRR0ugo+AgwmxRsQJs98HKrG dMVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cE1wA2XyNVV6/QnoagpIlYE3hRfHvElSFSncRlqxdrY=; b=UlbOFCTeWo6O/WSEz+StEzm7IPRWyyTyLf7LT67tIbvLvd79NLgre2u9vHCB9fVNRv VHvn7v9TP7Atyb/KoADrcERjvF9cmM9bQhX1F18wANHyDxJUGQC9xky3fZ232dEp0ndz dAFHTpybCogTqpZvxJ+boTchp2UjP7NGWi/9ULmyxquLWRxUsufoDYHkSa0oDf8AdI9u Yfv1miMDA/c9R6nAKshHb6gudCfxAGWitnEuJaXr8IssK9lhcHoE8PyxWAIBdUeFF7L5 wPnrA94BM2BwYy8nba1x51MVhVAn3V1zI+qIqiNJV9B44YpW/wXhC6Noanm+FOYR4IGf efUw== X-Gm-Message-State: AJIora92sMt2OwTbGRKtpQah6xI6IxZc4bMOSSlqIa2INABn8njV1XW1 Ib4VmmR6q++ZyIkfkXG/LkL4P1JiauU= X-Google-Smtp-Source: AGRyM1tc5RxR9mOvAbGZLODJheBKCyruJxCxF14JSDLTuAKkIu+vyx/TxzaEYzAVJyTNLyPFnoEOnQ== X-Received: by 2002:a05:622a:1213:b0:305:1f3c:549a with SMTP id y19-20020a05622a121300b003051f3c549amr5863455qtx.386.1655945895291; Wed, 22 Jun 2022 17:58:15 -0700 (PDT) Received: from gmail.com (72-21-196-64.amazon.com. [72.21.196.64]) by smtp.gmail.com with ESMTPSA id c135-20020a379a8d000000b006a6c552736asm18323273qke.119.2022.06.22.17.58.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 17:58:14 -0700 (PDT) From: Christopher Rodriguez To: 52684@debbugs.gnu.org Subject: [PATCH v1] Updated and fixed frotz package. Date: Wed, 22 Jun 2022 20:58:03 -0400 Message-Id: <20220623005803.2569142-1-yewscion@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52684 Cc: Christopher Rodriguez X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --- Hello! Was going through my open issues, saw this one was still open. Took a crack at fixing frotz; It builds and works as expected now. Wanted to share. Thanks for Your time! gnu/packages/games.scm | 66 +++++++++++++++++++++++++++--------------- 1 file changed, 43 insertions(+), 23 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 8e6ab03530..512871d780 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -7988,7 +7988,7 @@ (define (install src dst) (define-public frotz (package (name "frotz") - (version "2.44") + (version "2.54") (source (origin (method url-fetch) (uri (list (string-append @@ -7999,30 +7999,50 @@ (define-public frotz "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)) - (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games") - (description "Frotz is an interpreter for Infocom games and other Z-machine + `(#:tests? #f ;there are no tests + #:phases (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* _ + ;; Compile. + (invoke "make" "frotz"))) + (add-before 'build 'patch-makefile + (lambda* _ + (let ((makefiles (list "Makefile" + "src/common/Makefile" + "src/curses/Makefile" + "src/x11/Makefile" + "src/sdl/Makefile" + "src/dumb/Makefile" + "src/blorb/Makefile"))) + (map (lambda (x) + (substitute* x + (("\\$\\(CC\\)") "gcc"))) makefiles)))) + (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)) + (inputs (list ao + libmodplug + libsamplerate + libsndfile + libvorbis + ncurses + which + perl + pkg-config)) + (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 complies with standard 1.0 of Graham Nelson's specification. It plays all Z-code games V1-V8, including V6, with sound support through libao, and uses base-commit: 2873433c72ad6302a275579a646ba9635f036927 -- 2.36.1