From patchwork Sun Jan 13 12:58:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 725 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 05762169F7; Sun, 13 Jan 2019 13:05:52 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 1A30616817 for ; Sun, 13 Jan 2019 13:05:48 +0000 (GMT) Received: from localhost ([127.0.0.1]:53811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gifSV-0000tm-Bk for patchwork@mira.cbaines.net; Sun, 13 Jan 2019 08:05:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gifRn-0000QP-PO for guix-patches@gnu.org; Sun, 13 Jan 2019 08:05:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gifRm-0004us-Jo for guix-patches@gnu.org; Sun, 13 Jan 2019 08:05:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58093) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gifRm-0004ud-G7 for guix-patches@gnu.org; Sun, 13 Jan 2019 08:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gifRm-0004Mf-1B for guix-patches@gnu.org; Sun, 13 Jan 2019 08:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34058] [PATCH]: Add endless-sky Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 13 Jan 2019 13:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34058@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154738465016691 (code B ref -1); Sun, 13 Jan 2019 13:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Jan 2019 13:04:10 +0000 Received: from localhost ([127.0.0.1]:57371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gifQp-0004L2-61 for submit@debbugs.gnu.org; Sun, 13 Jan 2019 08:04:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gifQn-0004KY-Eh for submit@debbugs.gnu.org; Sun, 13 Jan 2019 08:04:02 -0500 Received: from lists.gnu.org ([209.51.188.17]:54815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gifQd-0004Du-BB for submit@debbugs.gnu.org; Sun, 13 Jan 2019 08:03:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gifQc-0007zj-1C for guix-patches@gnu.org; Sun, 13 Jan 2019 08:03:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gifLC-0000rE-26 for guix-patches@gnu.org; Sun, 13 Jan 2019 07:58:15 -0500 Received: from flashner.co.il ([178.62.234.194]:49542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gifLB-0000qe-OV for guix-patches@gnu.org; Sun, 13 Jan 2019 07:58:14 -0500 Received: from localhost (unknown [188.120.128.87]) by flashner.co.il (Postfix) with ESMTPSA id BD6C840007 for ; Sun, 13 Jan 2019 12:58:11 +0000 (UTC) Date: Sun, 13 Jan 2019 14:58:10 +0200 From: Efraim Flashner Message-ID: <20190113125810.GA25281@macbook41> MIME-Version: 1.0 Content-Disposition: inline X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 User-Agent: Mutt/1.11.0 (2018-11-25) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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" X-getmail-retrieved-from-mailbox: Patches After listening to libre lounge episode 6 I decided to package endless-sky. After buying EV:Nova at least twice I figured it'd be better to package endless-sky. Downside: 'guix environment --ad-hoc mesa-utils -- glxinfo | grep "OpenGL version"' reports my hardware only supports OpenGL 2.1, so I can't test the game, it needs 3.0 or later. diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 852de8b43..c913152f9 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -19,7 +19,7 @@ ;;; Copyright © 2016 Albin Söderqvist ;;; Copyright © 2016, 2017, 2018 Kei Kebreau ;;; Copyright © 2016 Alex Griffin -;;; Copyright © 2016, 2017, 2018 Efraim Flashner +;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner ;;; Copyright © 2016 Jan Nieuwenhuizen ;;; Copyright © 2016 Steve Webber ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira @@ -151,6 +151,7 @@ #:use-module (guix build-system go) #:use-module (guix build-system haskell) #:use-module (guix build-system meson) + #:use-module (guix build-system scons) #:use-module (guix build-system python) #:use-module (guix build-system cmake) #:use-module (guix build-system trivial)) @@ -5945,3 +5946,59 @@ order. You rotate the blocks and move them across the screen to drop them in complete lines. You score by dropping blocks fast and completing lines. As your score gets higher, you level up and the blocks fall faster.") (license license:gpl2+))) + +(define-public endless-sky + (package + (name "endless-sky") + (version "0.9.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/endless-sky/endless-sky") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0i36lawypikbq8vvzfis1dn7yf6q0d2s1cllshfn7kmjb6pqfi6c")))) + (build-system scons-build-system) + (arguments + `(#:scons ,scons-python2 + #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-resource-locations + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "source/Files.cpp" + (("/usr/local/") + (string-append (assoc-ref outputs "out") "/"))) + #t)) + (add-after 'unpack 'patch-scons + (lambda _ + (substitute* "SConstruct" + ;; Keep environmental variables + (("Environment\\(\\)") + "Environment(ENV = os.environ)") + ;; Install into %out/bin + (("games\"") "bin\"")) + #t))))) + (inputs + `(("glew" ,glew) + ("libjpeg" ,libjpeg-turbo) + ("libmad" ,libmad) + ("libpng" ,libpng) + ("openal" ,openal) + ("sdl2" ,sdl2))) + (home-page "https://endless-sky.github.io/") + (synopsis "2D space trading and combat game") + (description "Endless Sky is a 2D space trading and combat game. Explore +other star systems. Earn money by trading, carrying passengers, or completing +missions. Use your earnings to buy a better ship or to upgrade the weapons and +engines on your current one. Blow up pirates. Take sides in a civil war. Or +leave human space behind and hope to find friendly aliens whose culture is more +civilized than your own.") + (license (list license:gpl3+ + license:cc-by-sa3.0 + license:cc-by-sa4.0 + license:public-domain))))