From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: [PATCH] gnu: Add angband. (almost working!) Date: Fri, 03 Feb 2017 11:21:58 -0500 Message-ID: <87k297jlcp.fsf@openmailbox.org> References: <87inu04m4b.fsf@dustycloud.org> <87d1f6zt64.fsf@openmailbox.org> <87tw8dh9as.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cZgcj-0003T9-Tu for guix-devel@gnu.org; Fri, 03 Feb 2017 11:22:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cZgcg-0005bD-Me for guix-devel@gnu.org; Fri, 03 Feb 2017 11:22:09 -0500 Received: from lb1.openmailbox.org ([5.79.108.160]:55347) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cZgcg-0005ab-9r for guix-devel@gnu.org; Fri, 03 Feb 2017 11:22:06 -0500 In-Reply-To: <87tw8dh9as.fsf@dustycloud.org> (Christopher Allan Webber's message of "Wed, 01 Feb 2017 15:48:27 -0600") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Christopher Allan Webber Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Christopher Allan Webber writes: > Kei Kebreau writes: > >> Christopher Allan Webber writes: >> >>> At the risk of totally destroying my productivity, I thought I'd take a >>> short of packaging a common roguelike. Unfortunately, it seems like >>> every roguelike I try to package runs into some snag. In this case, >>> angband can't find ncurses. I don't know why! >>> >>> Apparently this is related: >>> https://lists.freebsd.org/pipermail/freebsd-ports-bugs/2014-January/271= 203.html >>> ... but I don't really know enough. >>> >>> Anyone who wants to help contribute to the downfall of various GuixSD >>> users by assisting getting roguelikes into the distribution: this is >>> pretty close, if we can solve that one thing! :) >>> >>> - Chris >>> >>> From 5a97d5dffa12a3282b57313db8aa609f27729074 Mon Sep 17 00:00:00 2001 >>> From: Christopher Allan Webber >>> Date: Mon, 12 Sep 2016 20:28:51 -0500 >>> Subject: [PATCH] gnu: Add angband. >>> >>> * gnu/packages/games.scm (angband): New variable. >>> --- >>> gnu/packages/games.scm | 34 +++++++++++++++++++++++++++++++++- >>> 1 file changed, 33 insertions(+), 1 deletion(-) >>> >>> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm >>> index d386e2c..08c00b9 100644 >>> --- a/gnu/packages/games.scm >>> +++ b/gnu/packages/games.scm >>> @@ -10,7 +10,7 @@ >>> ;;; Copyright =C2=A9 2014, 2015 Mark H Weaver >>> ;;; Copyright =C2=A9 2015, 2016 Andreas Enge >>> ;;; Copyright =C2=A9 2015 David Hashe >>> -;;; Copyright =C2=A9 2015 Christopher Allan Webber >>> +;;; Copyright =C2=A9 2015, 2106 Christopher Allan Webber >> Should be 2016, I assume. ^ >>> ;;; Copyright =C2=A9 2015 Ricardo Wurmus >>> ;;; Copyright =C2=A9 2015, 2016 Alex Kost >>> ;;; Copyright =C2=A9 2015 Paul van der Walt >>> @@ -223,6 +223,38 @@ them, called Jean Raymond, found an old church in = which to hide, not knowing >>> that beneath its ruins lay buried an ancient evil.") >>> (license license:gpl3+))) >>>=20=20 >>> +(define-public angband >>> + (package >>> + (name "angband") >>> + (version "4.0.5") >>> + (source >>> + (origin >>> + (method url-fetch) >>> + (uri (string-append "http://rephial.org/downloads/4.0/" >>> + "angband-" version ".tar.gz")) >>> + (sha256 >>> + (base32 >>> + "0lpq2kms7hp421vrasx2bkkn9w08kr581ldwik3v0hlq6h7rlxhd")))) >>> + (build-system gnu-build-system) >>> + (arguments >>> + `(#:tests? #f ;no check target >>> + ;; #:configure-flags '("--enable-sdl") >>> + #:phases (modify-phases %standard-phases >>> + (add-after >>> + 'unpack 'autogen.sh >>> + (lambda _ >>> + (zero? (system* "sh" "autogen.sh")))))))=20 >>> + (native-inputs >>> + `(("autoconf" ,autoconf) >>> + ("automake" ,automake))) >>> + (inputs `(("ncurses" ,ncurses))) >>> + (home-page "http://rephial.org/") >>> + (synopsis "Dungeon exploration roguelike") >>> + (description "Classic dungeon exploration roguelike. Explore the = depths >>> +below Angband, seeking riches, fighting monsters, and preparing to fig= ht >>> +Morgoth, the Lord of Darkness.") >>> + (license license:gpl2))) >>> + >>> (define-public pingus >>> (package >>> (name "pingus") >> >> I found the issue. You must substitute the instances of the string >> "ncursew5-config" with "ncursesw6-config" before running autogen.sh. >> This is because we only package version 6 of the ncurses library. By >> making this change, I was able to build angband reproducibly. Should we >> enable the SDL, X11 and GTK+ interfaces as well? > > Wow nice! > > I'm for enabling at least one of the visual interfaces, though I don't > think we need to enable all of them? Perhaps they should be different > derived package versions? WDYT? I say we use the SDL interface if we have to go with only one. Enabling more interfaces in derived packages shouldn't be difficult if someone requests them. :) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAliUricACgkQ5qXuPBlG eg21LxAAvMB9hd3shJAXwHDxCZ7GfDPab9tvvYKUlPK0q5IqRV0uCQoqDDNKyXKK /WxoxU4jCjmCdTgAAmPRsesagnfHRUFQ+ZWOXL1Jl7DH6uxQZw0LF7OzUqmoNHrz 8MKwH4SUzBXnJGayXb2RUsryZp75emzl6LXVB1THvg6lPpag+xTjh776wHo6ZECg Wq76PSZUfJVImAjxfod2GYeOZjEFvXF3OTghXm/lczTuVqh6+yw62SCeqAZNpr3S F1mP2OFWhc7X/w/ZsEDPePDzGANs5B24Mam59mjL+GxW6guRIOmdpLAQoeh6obH8 0JDfdu9PyyACw8acabHqISkWaJvB2s4QATKIJpWg0K1uG4D5+eWSJw0uTHXib1fX ZVvuYpBo76p5Uqx+zjm7ER/0WJeyAtI8Mc9TGrcTA2IRKRV5/yDsjG6jbL5srJgJ Rk8CvgcFpg1Mt2yHKHrNTaZzst92+fFeeGfcIW9ZZrMNmgw7NiFTjOAqy+swAzRk ixIiFugENAUB2WNlViclzCjQt6FMWQ5oGMdFxzu/ipVPU0h3gi4LCp1hq/q7KSB9 P9iZOqZiJqnc/JgJ42TwrKngl97Pgy7Ee8NzPgfrHAr970pBUi3S5/5IpGlzpE7z J4CDXisFxf71WZIxq0t+SW5d5Jewgvkq4l5KHpcbCUX9NATf0fo= =zjbb -----END PGP SIGNATURE----- --=-=-=--