From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: [PATCH] gnu: Add hyperrogue. Date: Wed, 05 Oct 2016 10:11:51 -0400 Message-ID: <87fuoavqag.fsf@openmailbox.org> References: <871szx6n38.fsf@openmailbox.org> <87wphoyuo3.fsf@gmail.com> <87shsbhoj6.fsf@openmailbox.org> <87shsb6x2u.fsf@gmail.com> 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]:55340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brmvZ-0001iv-8D for guix-devel@gnu.org; Wed, 05 Oct 2016 10:12:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brmvT-0002ej-Ua for guix-devel@gnu.org; Wed, 05 Oct 2016 10:12:08 -0400 Received: from mail.openmailbox.org ([62.4.1.34]:47057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brmvT-0002eQ-G1 for guix-devel@gnu.org; Wed, 05 Oct 2016 10:12:03 -0400 In-Reply-To: <87shsb6x2u.fsf@gmail.com> (Alex Kost's message of "Wed, 05 Oct 2016 11:04:25 +0300") 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: Alex Kost Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Alex Kost writes: > Kei Kebreau (2016-10-04 16:01 -0400) wrote: > > [...] >> All issues corrected! If you could check over it a second time to be >> sure, that would be appreciated. Thanks for your assistance! :-) > > I think it's OK now, thanks! > > And I've just lost an hour playing this game :-) > Bwahahahaha! >> From bff2f006ca78a54955857afc5559e5662e21c7e1 Mon Sep 17 00:00:00 2001 >> From: Kei Kebreau >> Date: Tue, 4 Oct 2016 15:58:21 -0400 >> Subject: [PATCH] gnu: Add hyperrogue. >> >> * gnu/packages/games.scm (hyperrogue): New variable. >> --- >> gnu/packages/games.scm | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 86 insertions(+) >> >> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm >> index cd5cf6f..5d61487 100644 >> --- a/gnu/packages/games.scm >> +++ b/gnu/packages/games.scm >> @@ -2896,3 +2896,89 @@ extinguishing action, intense boss battles, a catchy soundtrack and lots of >> throwing people around in pseudo-randomly generated buildings.") >> (license (list license:zlib ; for source code >> license:cc-by-sa3.0)))) ; for graphics and music assets >> + >> +(define-public hyperrogue >> + (package >> + (name "hyperrogue") >> + (version "8.3j") >> + (source (origin >> + (method url-fetch) >> + (uri (string-append >> + "http://www.roguetemple.com/z/hyper/" >> + name "-83j.zip")) >> + (sha256 >> + (base32 >> + "1ag95d84m4j0rqyn9hj7655znixw2j57bpf93nk14nfy02xz1g6p")) >> + (modules '((guix build utils))) >> + ;; remove .exe and .dll files > > Rather: ;; Remove .exe and .dll files. > >> + (snippet >> + '(for-each delete-file (find-files "." "\\.(exe|dll)$"))))) >> + (build-system gnu-build-system) >> + (arguments >> + '(#:tests? #f ; no check target >> + #:make-flags '("-Csrc") >> + #:phases >> + (modify-phases %standard-phases >> + (add-after 'set-paths 'set-sdl-paths >> + (lambda* (#:key inputs #:allow-other-keys) >> + (setenv "CPATH" >> + (string-append (assoc-ref inputs "sdl-union") >> + "/include/SDL")))) >> + ;; Fix font and music paths. >> + (replace 'configure >> + (lambda* (#:key inputs outputs #:allow-other-keys) >> + (let ((out (assoc-ref outputs "out")) >> + (dejavu-dir (string-append >> + (assoc-ref inputs "font-dejavu") >> + "/share/fonts/truetype")) >> + (dejavu-font "DejaVuSans-Bold.ttf") >> + (music-file "hyperrogue-music.txt")) >> + (with-directory-excursion "src" >> + (substitute* "graph.cpp" >> + ((dejavu-font) >> + (string-append dejavu-dir "/" dejavu-font)) >> + (((string-append "\\./" music-file)) >> + (string-append out "/share/hyperrogue/" music-file))) >> + (substitute* music-file >> + (("\\*/") >> + (string-append out "/share/hyperrogue/"))))) >> + #t)) >> + (replace 'install >> + (lambda* (#:key inputs outputs #:allow-other-keys) >> + (let* ((out (assoc-ref outputs "out")) >> + (bin (string-append out "/bin")) >> + (share-dir (string-append out "/share/hyperrogue"))) >> + (mkdir-p bin) >> + (copy-file "src/hyper" (string-append bin "/hyperrogue")) >> + (mkdir-p share-dir) >> + (copy-file "src/hyperrogue-music.txt" >> + (string-append share-dir "/hyperrogue-music.txt")) >> + (for-each (lambda (file) >> + (copy-file file (string-append share-dir "/" file))) >> + (find-files "." "\\.ogg$"))) >> + #t))))) >> + (inputs >> + `(("font-dejavu" ,font-dejavu) >> + ("glew" ,glew) >> + ("libpng" ,libpng) >> + ("sdl-union" ,(sdl-union (list sdl >> + sdl-gfx >> + sdl-mixer >> + sdl-ttf))))) >> + (home-page "http://www.roguetemple.com/z/hyper/") >> + (synopsis "Non-euclidean graphical rogue-like game") >> + (description >> + "HyperRogue is a game in which the player collects treasures and fights >> +monsters -- rogue-like but for the fact that it is played on the hyperbolic >> +plane and not in euclidean space. >> + >> +In HyperRogue, the player can move through different parts of the >> world, which >> +are home to particular creatures and may be subject to own rules of >> \"physics\". >> + >> +While it can use ASCII characters to display the world the classical rogue >> +symbols, the game needs graphics to render the non-euclidean world.") >> + (license (list license:bsd-3 ; src/glew.c, src/mtrand.* >> + license:cc-by-sa3.0 ; *.ogg >> + license:public-domain ; src/direntx.* >> + license:zlib ; src/savepng.* >> + license:gpl2+)))) ; remaining files Corrected and pushed as cd1869cdbda5538fb47b4690126d24a9dae3f7ba! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX9QonAAoJEOal7jwZRnoN/4EP/jBLpYutox2lRAD7cOn0Q/zQ wEJZi7w9ZvTJZ6Or6/1yVnvLj3zLbjMkevEX6Qq1LrPW/J6mY2TmA2cjJb4aDX7d KswB7YNi6fPoX2Bx/xc9eHa1jYAR/jtcXom/MSzjXk2H2vAwsqU/5523dxVtpJJl wd5LX0dgWIeDATt8baO/e7ebz6VS2ribixH4oFM0mjQIcJA2dliJs+5PMWe/njKP US8ukZ2H1phq/zkKjBruRmW2IO+LbVpwv75zF5k6ifsZ2mWsyoRIKFCWnZ/KmL3g ouwN7NIqzbv0OPO5EBfD+gUlx5d5hXMBTAtx6bXs2UhBaeZiaJUh22ZwnGoX5qpC 3Td41IEk9GpXQ9UjUNUUPpXY+UFvrpU2hqp7gFElVJxlOCPFvFKsqJlUQ1k3JJo4 m3O6BiDllmKKOiYLJOhy2xkksPA1EY6rW98A/MMM0zLKYIdCiMbNOY520p3fJLZ6 3lVuBLPPVJ8Og1Xccs7EfR3kbujexGB1Kqm2iBA5O7doyodTNMxGPIY5dpZcJuEk 9fjI/bkbx+0dIIfS5uj06e6pK+rihAnEH9O9JFwX6WVniDy1+rm27bQXiHqJF8NO qlVYcSa+2ZlTuUpW/ZaaoBJ1AsyCxMie/JRzWPl6E4NAeNCSgOppfJ8Xm6R+m/Zx fFG2HaV4MjgOl2N+DV1k =PB2j -----END PGP SIGNATURE----- --=-=-=--