From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1da2vK-000308-6F for guix-patches@gnu.org; Tue, 25 Jul 2017 12:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1da2vG-0000su-Su for guix-patches@gnu.org; Tue, 25 Jul 2017 12:43:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1da2vG-0000se-P4 for guix-patches@gnu.org; Tue, 25 Jul 2017 12:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1da2vG-0002bV-F3 for guix-patches@gnu.org; Tue, 25 Jul 2017 12:43:02 -0400 Subject: [bug#27691] Tabs and patches names Resent-Message-ID: From: Oleg Pykhalov References: <20170714124108.24997-1-go.wigust@gmail.com> <87poczcaxz.fsf@magnolia.i-did-not-set--mail-host-address--so-tickle-me> <87h8y7xy7n.fsf@gnu.org> Date: Tue, 25 Jul 2017 19:41:52 +0300 In-Reply-To: <87h8y7xy7n.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 20 Jul 2017 11:19:08 +0200") Message-ID: <87bmo8eaen.fsf@gmail.com> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 27691@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi Ludovic, Thank you for supporting this bug report. I did my best: * Move all non-upstream patches directly in package definition. * Find a way to use version and name inside phases. * Fix pixmap name in tome4.desktop. * Remove open-source and free from description. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Description: Worked on suggestons >From 3b92b15460fdf422d2de2ea39297a73a8dd87e19 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Tue, 25 Jul 2017 19:27:47 +0300 Subject: [PATCH] gnu: Add tome4. * gnu/packages/games.scm (tome4): New variable. --- gnu/packages/games.scm | 121 +++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 121 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 2dec9a395..a2bf132d2 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -4579,3 +4579,124 @@ computer-hosted roleplaying games. This is the las= t version released by Crowther & Woods, its original authors, in 1995. It has been known as \"adventure 2.5\" and \"430-point adventure\".") (license license:bsd-2)))) + +(define-public tome4 + (package + (name "tome4") + (version "1.5.5") + (synopsis "Single-player, RPG roguelike game set in the world of Eyal") + (source + (origin + (method url-fetch) + (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-" + version ".tar.bz2")) + (sha256 + (base32 + "0v2qgdfpvdzd1bcbp9v8pfahj1bgczsq2d4xfhh5wg11jgjcwz03")) + (modules '((guix build utils))) + (snippet + '(for-each (lambda (file) + (substitute* file + (("#elif defined(__FreeBSD__)" line) + (string-append + line " || defined(__GNUC__)")))) + '("src/music.h" "src/tSDL.h"))))) + (build-system gnu-build-system) + (native-inputs + `(("unzip" ,unzip))) + (inputs + `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)= )) + ("glu" ,glu) + ("premake4" ,premake4) + ("openal" ,openal) + ("vorbis" ,libvorbis) + ("luajit" ,luajit))) + (arguments + `(#:make-flags '("CC=3Dgcc" "config=3Drelease") + #:phases (modify-phases %standard-phases + (replace 'configure + (lambda _ + (zero? (system* "premake4" "gmake")) + #t)) + (add-after 'set-paths 'set-sdl-paths + (lambda* (#:key inputs #:allow-other-keys) + (setenv "CPATH" + (string-append (assoc-ref inputs "sdl-union") + "/include/SDL2")) + #t)) + (delete 'check) + ;; premake doesn't provide install target + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (usr (string-append out "/usr")) + (bin (string-append out "/bin")) + (licenses (string-append out "/share/licenses= ")) + (documents (string-append out "/share/doc")) + (pixmaps (string-append out "/share/pixmaps")) + (icon "te4-icon.png") + (data (string-append out "/share/" ,name)) + (applications (string-append + out "/share/applications")) + (unzip (string-append + (assoc-ref inputs "unzip") "/bin/unzi= p")) + (wrapper (string-append bin "/" ,name))) + ;; icon + (mkdir-p pixmaps) + (system* unzip "-j" + (string-append + "game/engines/te4-" ,version ".teae") + (string-append + "data/gfx/" icon) "-d" pixmaps) + ;; game executable + (install-file "t-engine" data) + (mkdir-p bin) + (with-output-to-file wrapper + (lambda () + (display + (string-append + "#!/bin/sh\n" + ;; No bootstrap code found, + ;; defaulting to working directory + ;; for engine code! + "cd " data "\n" + "./t-engine &\n" + "exit\n")))) + (chmod wrapper #o555) + ;; licenses + (for-each (lambda (file) + (install-file file licenses)) + '("COPYING" "COPYING-MEDIA")) + ;; documents + (for-each (lambda (file) + (install-file file documents)) + '("CONTRIBUTING" "CREDITS")) + ;; data + (copy-recursively "bootstrap" (string-append + data "/bootstrap")) + (copy-recursively "game" (string-append data "/gam= e")) + ;; launcher + (mkdir-p applications) + (with-output-to-file (string-append applications "= /" + ,name ".deskto= p") + (lambda () + (display + (string-append + "[Desktop Entry] +Name=3DToME4 +Comment=3D" ,synopsis "\n" +"Exec=3D" ,name "\n" +"Icon=3D" icon "\n" +"Terminal=3Dfalse +Type=3DApplication +Categories=3DGame;RolePlaying;\n"))))) + #t))))) + (home-page "https://te4.org") + (description "Tales of Maj=E2=80=99Eyal (ToME) RPG, featuring tactical= turn-based +combat and advanced character building. Play as one of many unique races = and +classes in the lore-filled world of Eyal, exploring random dungeons, facing +challenging battles, and developing characters with your own tailored mix = of +abilities and powers. With a modern graphical and customisable interface, +intuitive mouse control, streamlined mechanics and deep, challenging comba= t, +Tales of Maj=E2=80=99Eyal offers engaging roguelike gameplay for the 21st = century.") + (license license:gpl3+))) --=20 2.13.3 --=-=-=--