From patchwork Tue Mar 31 17:36:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 21015 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C476727BBE4; Tue, 31 Mar 2020 18:37:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,HTML_MESSAGE, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_ABUSE_SURBL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 3646527BBE1 for ; Tue, 31 Mar 2020 18:37:11 +0100 (BST) Received: from localhost ([::1]:42290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJKp4-0004ei-Io for patchwork@mira.cbaines.net; Tue, 31 Mar 2020 13:37:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51876) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJKox-0004eP-SY for guix-patches@gnu.org; Tue, 31 Mar 2020 13:37:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJKow-0001Gu-8b for guix-patches@gnu.org; Tue, 31 Mar 2020 13:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53640) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJKov-0001GV-QH for guix-patches@gnu.org; Tue, 31 Mar 2020 13:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJKov-0004gV-Li for guix-patches@gnu.org; Tue, 31 Mar 2020 13:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40289] [PATCH] games.scm: add "neverball" and "neverputt" (bundled together) References: In-Reply-To: Resent-From: Vitaliy Shatrov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 31 Mar 2020 17:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40289 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "40289@debbugs.gnu.org" <40289@debbugs.gnu.org> Received: via spool by 40289-submit@debbugs.gnu.org id=B40289.158567621417987 (code B ref 40289); Tue, 31 Mar 2020 17:37:01 +0000 Received: (at 40289) by debbugs.gnu.org; 31 Mar 2020 17:36:54 +0000 Received: from localhost ([127.0.0.1]:36953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJKon-0004g1-AO for submit@debbugs.gnu.org; Tue, 31 Mar 2020 13:36:53 -0400 Received: from mail-40130.protonmail.ch ([185.70.40.130]:64464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJKok-0004fh-55 for 40289@debbugs.gnu.org; Tue, 31 Mar 2020 13:36:51 -0400 Date: Tue, 31 Mar 2020 17:36:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1585676203; bh=+ImJRv8sOehY9xvc7yUugTsSEHEYbujAvAUdcFl0N28=; h=Date:To:From:Reply-To:Subject:From; b=B9UvIw735+UC7Wf7TSMuPsCwLXBB44BTRSnHfPzbKjamd9APdshtKK1DOOlCoTnlx dcqHYnyqSXSvYrTw/C6v8xViRSgET4HS02HG1iE1COey8mJyUmD5ynUfok4g+Iv8J5 6TgfznaZZ7Vdi2L98ty4Ihpw+ycev9lkOGtyhCZQ= Message-ID: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Vitaliy Shatrov , Vitaliy Shatrov via Guix-patches X-Patchwork-Original-From: Vitaliy Shatrov via Guix-patches via From: "ashish.is--- via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches Hi. Seems that all is done. If it's good enough now? Sent with [ProtonMail](https://protonmail.com) Secure Email. From 0b46b87d49f6456ce16430c16e4c195b16586fcf Mon Sep 17 00:00:00 2001 From: Vitaliy Shatrov Date: Wed, 1 Apr 2020 00:31:30 +0700 Subject: [PATCH] gnu: Add neverball * gnu/packages/games.scm (neverball): New variable. --- gnu/packages/games.scm | 103 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 3284459021..528aef2056 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -172,6 +172,7 @@ #:use-module (gnu packages xml) #:use-module (gnu packages messaging) #:use-module (gnu packages networking) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system go) @@ -10310,3 +10311,105 @@ to conquer opponents by defeating them in war (with troops or machines), capturing their buildings with spies, or offering opponents money for their kingdom.") (license license:gpl2+))) + +(define-public neverball + ;; git-version is 6-years younger than latest release + (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644") + (revision "1")) + (package + (name "neverball") + (version (git-version "1.6.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Neverball/neverball.git") + (commit commit))) + (sha256 + (base32 + "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5")) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet + '(begin + ;; Debian doesn't strip it, though. i'm dummy + (delete-file-recursively "data/ball/octocat") + #t)))) + (build-system copy-build-system) + (arguments + `(#:install-plan + '(("neverball" "bin/") + ("neverputt" "bin/") + ("mapc" "bin/") + ("data" "share/games/neverball/") ;; Octocat seem to be non-free + ("locale" "share/") + ("dist/" "share/games/neverball" #:include ("neverball_replay.png" + "neverlogos.svg" + "svg readme.txt")) + ;; https://gitlab.com/xonotic/netradiant + ;;("NeverballPack" "share/games/neverball/") + ("dist/" "share/applications" #:include ("neverball.desktop" + "neverputt.desktop")) + ("dist/neverball_16.png" "/share/icons/hicolor/16x16/apps/neverball.png") + ("dist/neverball_24.png" "/share/icons/hicolor/24x24/apps/neverball.png") + ("dist/neverball_32.png" "/share/icons/hicolor/32x32/apps/neverball.png") + ("dist/neverball_48.png" "/share/icons/hicolor/48x48/apps/neverball.png") + ("dist/neverball_64.png" "/share/icons/hicolor/64x64/apps/neverball.png") + ("dist/neverball_128.png" "/share/icons/hicolor/128x128/apps/neverball.png") + ("dist/neverball_256.png" "/share/icons/hicolor/256x256/apps/neverball.png") + ("dist/neverball_512.png" "/share/icons/hicolor/512x512/apps/neverball.png") + + ("dist/neverputt_16.png" "/share/icons/hicolor/16x16/apps/neverputt.png") + ("dist/neverputt_24.png" "/share/icons/hicolor/24x24/apps/neverputt.png") + ("dist/neverputt_32.png" "/share/icons/hicolor/32x32/apps/neverputt.png") + ("dist/neverputt_48.png" "/share/icons/hicolor/48x48/apps/neverputt.png") + ("dist/neverputt_64.png" "/share/icons/hicolor/64x64/apps/neverputt.png") + ("dist/neverputt_128.png" "/share/icons/hicolor/128x128/apps/neverputt.png") + ("dist/neverputt_256.png" "/share/icons/hicolor/256x256/apps/neverputt.png") + ("dist/neverputt_512.png" "/share/icons/hicolor/512x512/apps/neverputt.png") + + ("dist/" "share/man/man1" #:include ("mapc.1")) + ("dist/" "share/man/man6" #:include ("neverball.6" + "neverputt.6")) + ("doc/" "share/doc/neverball") + ("README.md" "share/doc/neverball/")) + #:phases + (modify-phases %standard-phases + (add-before 'install 'build + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (sdl (assoc-ref inputs "sdl"))) + (invoke "make" "-j" (number->string (parallel-job-count)) + "--environment-overrides" + "CC=gcc" "BUILD=release" + (string-append "DATADIR=" out "/share/games/neverball/data") + (string-append "LOCALEDIR=" out "/share/locale") + (string-append "SDL_CPPFLAGS=-I" sdl "/include/SDL2/"))) + #t)) + (add-after 'install 'fix-some-broken-fonts + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (wrap-program (string-append out "/bin/neverball") + `("LANG" = ("en_US.utf8"))) + (wrap-program (string-append out "/bin/neverputt") + `("LANG" = ("en_US.utf8")))) + #t))))) + (native-inputs + `(("gettext" ,gettext-minimal))) ;for msgfmt + (inputs + `(("libjpeg" ,libjpeg) + ("libpng" ,libpng) + ("libvorbis" ,libvorbis) + ("physfs" ,physfs) + ("sdl" ,(sdl-union (list sdl2 + sdl2-ttf))))) + (home-page "https://neverball.org/") + (synopsis "3D floor-tilting game") + (description + "In the grand tradition of Marble Madness and Super Monkey Ball, +Neverball has you guide a rolling ball through dangerous territory. Balance +on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers +and shovers to get to the goal. Race against the clock to collect coins to +earn extra balls. Also included is Neverputt, which is a 3D miniature golf +game.") ;thanks to Debian for description + (license license:gpl2+)))) -- 2.25.1