From mboxrd@z Thu Jan 1 00:00:00 1970 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 Subject: [bug#34058] [PATCH]: Add endless-sky Resent-Message-ID: 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-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bCsyhTFzCvuiizWE" Content-Disposition: inline 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: 34058@debbugs.gnu.org --bCsyhTFzCvuiizWE Content-Type: multipart/mixed; boundary="liOOAslEiF7prFVr" Content-Disposition: inline --liOOAslEiF7prFVr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --liOOAslEiF7prFVr Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-endless-sky.patch" Content-Transfer-Encoding: quoted-printable =46rom efe963662cdce008414fc26cfff2f6b5bcac5112 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Sun, 13 Jan 2019 11:31:57 +0200 Subject: [PATCH] gnu: Add endless-sky. * gnu/packages/games.scm (endless-sky): New variable. --- gnu/packages/games.scm | 59 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) 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 =C2=A9 2016 Albin S=C3=B6derqvist ;;; Copyright =C2=A9 2016, 2017, 2018 Kei Kebreau ;;; Copyright =C2=A9 2016 Alex Griffin -;;; Copyright =C2=A9 2016, 2017, 2018 Efraim Flashner +;;; Copyright =C2=A9 2016, 2017, 2018, 2019 Efraim Flashner ;;; Copyright =C2=A9 2016 Jan Nieuwenhuizen ;;; Copyright =C2=A9 2016 Steve Webber ;;; Copyright =C2=A9 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 t= he 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=3D" (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 =3D 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. Expl= ore +other star systems. Earn money by trading, carrying passengers, or comple= ting +missions. Use your earnings to buy a better ship or to upgrade the weapon= s 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)))) --=20 2.20.1 --liOOAslEiF7prFVr-- --bCsyhTFzCvuiizWE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlw7Nd8ACgkQQarn3Mo9 g1EvDA//dsJy21swbmIUUMRe8a+WkkYnMX3h7iRu5VcMx0LC2L3SG7odX64RTVP7 bLQPWsiLkpOxuok4zYD4PuMjbBg9ma67nGJBV0cLLZe46jIjO+/20HlD46kY7J2O U36IwBR0symQaWOIfcb/sm51E0TgAwx2EGbToWl5zPV7NZ4cNZJtLq1XJ+x5nDYL oOqrE+MEyZ1EISGxYnIADLBF8avgZ82GQ6uRJxEvTfwDdWoV2Wp/8elm91s2RsxE 0m3ztw6sL7q1Ks87tS7KqUJFA1ccHHZsTUIj2bunasybQsHueQB/upNCIBLLJfDW OV697dGwzSpOGROdej9dM4nzemtf24mBxzRmMUD7mZ8u6SJk95wYF99BF12WJfWl OpAwQEF2N4TOeN2fS7MjBDVkVPt6Uk/outFw4CdVQJ3DxTHG4Hnr29cQS+Lx+qtL dSVSyZ1yTM4+qAQguWgsfzJ0yGlnzczjgKRa7BGIavn4oRtn9BjkrVbWv5yLnsi9 1cxLDiEtVRSaalqhIzAflYYi5wRG2vBZVAIag5cO73Q3grL6UM+4MVNgkgsKv1K6 5+nyswKkmhfpAPACbM1KBKYXnzlZ0as+YNn2FcxybE7mTM1PvJiBHB0MGJUR3gnM H981INo/A7LS/PZBCgGLD4R0MACfppssXXfcP8z31+SD++Csbhw= =34BT -----END PGP SIGNATURE----- --bCsyhTFzCvuiizWE--