From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: [PATCH] gnu: Add angband. (almost working!) Date: Sat, 28 Jan 2017 18:00:35 -0500 Message-ID: <87d1f6zt64.fsf@openmailbox.org> References: <87inu04m4b.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]:56661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXbzJ-0003MT-IV for guix-devel@gnu.org; Sat, 28 Jan 2017 18:00:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXbzG-00033i-Fu for guix-devel@gnu.org; Sat, 28 Jan 2017 18:00:53 -0500 Received: from lb1.openmailbox.org ([5.79.108.160]:54715) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXbzG-000339-3v for guix-devel@gnu.org; Sat, 28 Jan 2017 18:00:50 -0500 In-Reply-To: <87inu04m4b.fsf@dustycloud.org> (Christopher Allan Webber's message of "Mon, 12 Sep 2016 20:36:04 -0500") 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: > 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/27120= 3.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 wh= ich 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 de= pths > +below Angband, seeking riches, fighting monsters, and preparing to fight > +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? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAliNIpMACgkQ5qXuPBlG eg2CAA//TxO5EMgW4/F6haDa6YS75vr9vDv8Kn+izATQdHkeifX8aYeO9DahyZlz SUb0KgbjWL9IqKAcHZmcCrTlzq7w+RXh/XTRU5clBUTRB3WU2G+zH6wsjQqLGNx2 i6Wm1G98kOfuVAJ3wdfVIKqdbuiQ/SbWOoX1EPSskU3yRbc3xoso9Uk6KuKD7b+h WpGgIrSI0Tm/FqDO4oTSf3HYHJmiW3wcVYyh74QpGccLCM29f9Z5FTKsVUnzFSwP DmzXZHlayOclVRL5enGBR43YD/KsXWDEEY0n/4LL3Gk3GuXz8W5QH8/Lv2cMQB6L zSx80yrhP6xAOE830YEe1j2QH1Z61VoeYwiRzUdXahRrkh0ePAzxzzZdlWdmIXiK sOEk3gyU2yHPAtKvYFwsHaFIaFSisB0lec85dNGJwBO9e/ajM2BCfeXGzempxw3z F18I+zjrvxHSL/+y7zHrEpL61OKKhv4lxe8cxvpTn/HRMCg/AyopCnKJn/7oXQpB rt+hzgTAsdqpmz8Qm3I9uXS31PxtO10jPAxqNgKG8xw6fJ9RePt8+UAANS1aiAJ7 0ToE8dk90ANSwOcHsoyWG4BP5/3TEdUYN37VIp8xT52vBF6Gu2bDPf27lrsVMFTe wzJ/dEHIn7I5Z3wBDfpzTCAQ1Os7jKsIWwHumYO8svv53UiPhxw= =T9HF -----END PGP SIGNATURE----- --=-=-=--