From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cymJb-0001xP-AM for guix-patches@gnu.org; Thu, 13 Apr 2017 17:30:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cymJX-0002kj-8X for guix-patches@gnu.org; Thu, 13 Apr 2017 17:30:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47970) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cymJW-0002kT-T7 for guix-patches@gnu.org; Thu, 13 Apr 2017 17:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cymJW-0008O4-My for guix-patches@gnu.org; Thu, 13 Apr 2017 17:30:02 -0400 Subject: bug#26488: [PATCH] gnu: Add crawl. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cymFz-0001gi-Uo for guix-patches@gnu.org; Thu, 13 Apr 2017 17:26:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cymFv-0000mX-Ts for guix-patches@gnu.org; Thu, 13 Apr 2017 17:26:23 -0400 Received: from cock.li ([185.100.85.212]:57185) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cymFv-0000lm-GU for guix-patches@gnu.org; Thu, 13 Apr 2017 17:26:19 -0400 From: nee Message-ID: <9758282d-96a4-8fe4-183b-a60a43a9eab9@cock.li> Date: Thu, 13 Apr 2017 23:26:13 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------DF81CA65153477EE1B39C72B" 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: 26488@debbugs.gnu.org This is a multi-part message in MIME format. --------------DF81CA65153477EE1B39C72B Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, this is just the console version for now. There is also a graphical version that I haven't build on the latest release, yet. * Multiple uris When crawl makes a new release they move the previous tar archive into a major-minor prefixed sub-directory. The current release only exists in the higher directory. I haven't seen any other package list multiple uris, so I hope I entered it correctly. I can only say that it builds, and got through guix lint like this. --------------DF81CA65153477EE1B39C72B Content-Type: text/x-patch; name="0001-gnu-Add-crawl.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-gnu-Add-crawl.patch" =46rom fd456a6f73fff5a2b9348ca1e43bd61fdf79fc6c Mon Sep 17 00:00:00 2001 From: nee Date: Thu, 13 Apr 2017 22:45:18 +0200 Subject: [PATCH] gnu: Add crawl. * gnu/packages/games.scm (crawl): New variable. --- gnu/packages/games.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++= ++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 710b2746c..522ad5366 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -115,6 +115,8 @@ #:use-module (gnu packages messaging) #:use-module (gnu packages upnp) #:use-module (gnu packages wxwidgets) + #:use-module (gnu packages bison) + #:use-module (gnu packages flex) #:use-module (guix build-system gnu) #:use-module (guix build-system haskell) #:use-module (guix build-system python) @@ -3649,3 +3651,68 @@ small robot living in the nano world, repair its m= aker.") ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright> ;; for a statement from the author. (license license:public-domain))) + +(define-public crawl + (package + (name "crawl") + (version "0.19.5") + (source (origin + (method url-fetch) + (uri (list + ;; Older releases get moved into a versioned directo= ry + (string-append "http://crawl.develz.org/release/" + (version-major+minor version) "/stone= _soup-" + version "-nodeps.tar.xz") + ;; Only the latest release is in this directory + (string-append "http://crawl.develz.org/release/ston= e_soup-" + version "-nodeps.tar.xz"))) + (sha256 + (base32 + "00yl2lb2shglxlxzpyk99zvglfx4amjybqwnzdcasvbiggb4cj18"))= )) + (arguments + '(#:tests? #f + #:make-flags + (let* ((sqlite (assoc-ref %build-inputs "sqlite")) + (out (assoc-ref %outputs "out"))) + (list (string-append "sqlite=3D" sqlite) + (string-append "prefix=3D" out) + "SAVEDIR=3D~/.crawl" + "dejavu_fonts=3D" + "TILES=3D" + "BUILD_LUA=3D" + "BUILD_SQLITE=3D" + "BUILD_ZLIB=3D")) + #:phases + (modify-phases + %standard-phases + (add-after + 'unpack 'prepare-before-make + (lambda* (#:key inputs #:allow-other-keys) + (chdir "source"))) + (add-before + 'configure 'patch-makefile + (lambda* (#:key inputs #:allow-other-keys) + (substitute* + "Makefile" + (("SQLITE_INCLUDE_DIR :=3D /usr/include") + "SQLITE_INCLUDE_DIR :=3D ${sqlite}/include")) + (substitute* + "Makefile" + (("/usr/share/fonts /usr/local/share/fonts /usr/*/lib/X11/= fonts;") + "${dejavu_fonts}/share/fonts;")))) + (delete 'configure)))) + (build-system gnu-build-system) + (inputs `(("ncurses" ,ncurses) + ("sqlite" ,sqlite) + ("bison" ,bison) + ("flex" ,flex) + ("perl" ,perl) + ("zlib" ,zlib) + ("lua51" ,lua-5.1))) + (native-inputs `(("pkg-config" ,pkg-config))) + (synopsis "Roguelike dungeon crawler game") + (description "A roguelike adventure through dungeons filled with dan= gerous +monsters in a quest to find the mystifyingly fabulous Orb of Zot. +The game is also known under the name 'Dungeon Crawl Stone Soup'.") + (home-page "https://crawl.develz.org") + (license license:gpl2+))) --=20 2.12.2 --------------DF81CA65153477EE1B39C72B--