all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#34058] [PATCH]: Add endless-sky
@ 2019-01-13 12:58 Efraim Flashner
  2019-01-13 14:19 ` Jonathan Brielmaier
  2019-01-17 19:42 ` Leo Famulari
  0 siblings, 2 replies; 4+ messages in thread
From: Efraim Flashner @ 2019-01-13 12:58 UTC (permalink / raw)
  To: 34058


[-- Attachment #1.1: Type: text/plain, Size: 564 bytes --]

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.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #1.2: 0001-gnu-Add-endless-sky.patch --]
[-- Type: text/plain, Size: 4015 bytes --]

From efe963662cdce008414fc26cfff2f6b5bcac5112 Mon Sep 17 00:00:00 2001
From: Efraim Flashner <efraim@flashner.co.il>
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 © 2016 Albin Söderqvist <albin@fripost.org>
 ;;; Copyright © 2016, 2017, 2018 Kei Kebreau <kkebreau@posteo.net>
 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
-;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
@@ -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))))
-- 
2.20.1


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#34058] [PATCH]: Add endless-sky
  2019-01-13 12:58 [bug#34058] [PATCH]: Add endless-sky Efraim Flashner
@ 2019-01-13 14:19 ` Jonathan Brielmaier
  2019-01-17 19:42 ` Leo Famulari
  1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Brielmaier @ 2019-01-13 14:19 UTC (permalink / raw)
  To: 34058


[-- Attachment #1.1: Type: text/plain, Size: 549 bytes --]

I build endless-sky on my computer. I just started the programm and it
seems to works fine after some 5 minutes of playing :)

On 1/13/19 1:58 PM, Efraim Flashner wrote:
> 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.
> 
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#34058] [PATCH]: Add endless-sky
  2019-01-13 12:58 [bug#34058] [PATCH]: Add endless-sky Efraim Flashner
  2019-01-13 14:19 ` Jonathan Brielmaier
@ 2019-01-17 19:42 ` Leo Famulari
  2019-01-19 17:19   ` bug#34058: " Efraim Flashner
  1 sibling, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2019-01-17 19:42 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: 34058

[-- Attachment #1: Type: text/plain, Size: 959 bytes --]

On Sun, Jan 13, 2019 at 02:58:10PM +0200, Efraim Flashner wrote:
> 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.
> 
> 
> -- 
> Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted

> From efe963662cdce008414fc26cfff2f6b5bcac5112 Mon Sep 17 00:00:00 2001
> From: Efraim Flashner <efraim@flashner.co.il>
> Date: Sun, 13 Jan 2019 11:31:57 +0200
> Subject: [PATCH] gnu: Add endless-sky.
> 
> * gnu/packages/games.scm (endless-sky): New variable.

Works for me :) Please push!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#34058: [PATCH]: Add endless-sky
  2019-01-17 19:42 ` Leo Famulari
@ 2019-01-19 17:19   ` Efraim Flashner
  0 siblings, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2019-01-19 17:19 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 34058-done

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

Pushed! Thanks for the review everyone!


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-19 17:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-13 12:58 [bug#34058] [PATCH]: Add endless-sky Efraim Flashner
2019-01-13 14:19 ` Jonathan Brielmaier
2019-01-17 19:42 ` Leo Famulari
2019-01-19 17:19   ` bug#34058: " Efraim Flashner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.