From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:46184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBjqp-00025r-V9 for guix-patches@gnu.org; Wed, 03 Apr 2019 13:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBjqo-0001Ge-Oo for guix-patches@gnu.org; Wed, 03 Apr 2019 13:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57859) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBjqo-0001FB-JI for guix-patches@gnu.org; Wed, 03 Apr 2019 13:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBjqo-00069g-Cl for guix-patches@gnu.org; Wed, 03 Apr 2019 13:39:02 -0400 Subject: [bug#35127] [PATCH] Add meritous. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:45993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBjps-00022h-Qk for guix-patches@gnu.org; Wed, 03 Apr 2019 13:38:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBjpo-00083y-1O for guix-patches@gnu.org; Wed, 03 Apr 2019 13:38:04 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:38747) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBjpm-0007vW-Sd for guix-patches@gnu.org; Wed, 03 Apr 2019 13:37:59 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 7B9ECFF802 for ; Wed, 3 Apr 2019 17:37:53 +0000 (UTC) From: Nicolas Goaziou Date: Wed, 03 Apr 2019 19:37:52 +0200 Message-ID: <87ftqzhtvz.fsf@nicolasgoaziou.fr> 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: 35127@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello, The following patch adds Meritous game. See comments for the usual gotchas. Feedback welcome. Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-meritous.patch Content-Description: Add meritous >From 72cb4a70ecc8e8f2688dec78ece29e434e04acd1 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 1 Apr 2019 21:36:44 +0200 Subject: [PATCH] gnu: Add meritous. * gnu/packages/games.scm (meritous): New variable. --- gnu/packages/games.scm | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 8207b92dc9..050ff657a1 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -6749,3 +6749,63 @@ exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%" (description "Flare is a single-player 2D action RPG with fast-paced action and a dark fantasy style.") (license license:cc-by-sa3.0))) + +(define-public meritous + (package + (name "meritous") + (version "1.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/meritous/meritous.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ;no test + #:make-flags + (list "CC=gcc" + (string-append "prefix=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'fix-sdl-path + ;; XXX: For some reason, `sdl-config' reports stand-alone SDL + ;; directory, not SDL-union provided as an input to the package. + ;; We force the latter with "--prefix=" option. + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makefile" + (("sdl-config" command) + (string-append command " --prefix=" (assoc-ref inputs "sdl")))) + #t)) + (add-after 'unpack 'fix + ;; XXX: Songs are removed due to licensing issues. However, the + ;; game tries to load them, and, since it cannot find them, + ;; crashes. Users cannot add them back, the store being read-only, + ;; so we turn off background music altogether. + (lambda _ + (substitute* "src/audio.c" + (("PlayBackgroundMusic\\(new_track\\);" all) + (string-append "// " all)))))))) + (native-inputs + `(("intltool" ,intltool))) + (inputs + `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer))) + ("zlib" ,zlib))) + ;; Original home page has stalled. + (home-page "https://gitlab.com/meritous/meritous") + (synopsis "Action-adventure dungeon crawl game") + (description "Far below the surface of the planet is a secret. A place of +limitless power. Those that seek to control such a utopia will soon bring an +end to themselves. Seeking an end to the troubles that plague him, PSI user +Merit journeys into the hallowed Orcus Dome in search of answers. + +Meritous is a action-adventure game with simple controls but a challenge to +find a balance of power verses recovery time during real-time battles. Set in +a procedurally generated world, the player can explore thousands of rooms in +search of powerful artifacts, tools to help them, and to eventually free the +Orcus Dome from evil.") + (license license:gpl3+))) -- 2.21.0 --=-=-=--