all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#49871] [PATCH 0/3] Update endless-sky
@ 2021-08-04 10:45 Timotej Lazar
  2021-08-04 10:49 ` [bug#49871] [PATCH 1/3] gnu: endless-sky: Update to 0.9.14 Timotej Lazar
  2021-08-05  7:05 ` bug#49871: [PATCH 0/3] Update endless-sky Nicolas Goaziou
  0 siblings, 2 replies; 5+ messages in thread
From: Timotej Lazar @ 2021-08-04 10:45 UTC (permalink / raw)
  To: 49871

Hi,

these patches update Endless Sky to the latest version and clean up the
package.

Thanks!

Timotej Lazar (3):
  gnu: endless-sky: Update to 0.9.14.
  gnu: endless-sky: Clean up phases.
  gnu: endless-sky: Enable tests.

 gnu/packages/games.scm | 24 ++++++++++--------------
 1 file changed, 10 insertions(+), 14 deletions(-)

-- 
2.32.0




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

* [bug#49871] [PATCH 1/3] gnu: endless-sky: Update to 0.9.14.
  2021-08-04 10:45 [bug#49871] [PATCH 0/3] Update endless-sky Timotej Lazar
@ 2021-08-04 10:49 ` Timotej Lazar
  2021-08-04 10:49   ` [bug#49871] [PATCH 2/3] gnu: endless-sky: Clean up phases Timotej Lazar
  2021-08-04 10:49   ` [bug#49871] [PATCH 3/3] gnu: endless-sky: Enable tests Timotej Lazar
  2021-08-05  7:05 ` bug#49871: [PATCH 0/3] Update endless-sky Nicolas Goaziou
  1 sibling, 2 replies; 5+ messages in thread
From: Timotej Lazar @ 2021-08-04 10:49 UTC (permalink / raw)
  To: 49871; +Cc: Timotej Lazar

* gnu/packages/games.scm (endless-sky): Update to 0.9.14.
[arguments]: Add 'use-gcc-ar phase to support LTO used by the new version.
---
 gnu/packages/games.scm | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index ad48c49566..792ff64a07 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -8351,7 +8351,7 @@ your score gets higher, you level up and the blocks fall faster.")
 (define-public endless-sky
   (package
     (name "endless-sky")
-    (version "0.9.12")
+    (version "0.9.14")
     (source
       (origin
         (method git-fetch)
@@ -8360,7 +8360,7 @@ your score gets higher, you level up and the blocks fall faster.")
                (commit (string-append "v" version))))
         (file-name (git-file-name name version))
         (sha256
-         (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
+         (base32 "12iganf8dxiyrjznnabsarxjsr0h717j3k4mz15p0k67wxyahhmf"))))
     (build-system scons-build-system)
     (arguments
      `(#:scons ,scons-python2
@@ -8382,7 +8382,10 @@ your score gets higher, you level up and the blocks fall faster.")
                 "Environment(ENV = os.environ)")
                ;; Install into %out/bin
                (("games\"") "bin\""))
-             #t)))))
+             #t))
+         (add-before 'build 'use-gcc-ar
+           ;; Use gcc-ar to support LTO.
+           (lambda _ (setenv "AR" "gcc-ar") #t)))))
     (inputs
      `(("glew" ,glew)
        ("libjpeg" ,libjpeg-turbo)
-- 
2.32.0





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

* [bug#49871] [PATCH 2/3] gnu: endless-sky: Clean up phases.
  2021-08-04 10:49 ` [bug#49871] [PATCH 1/3] gnu: endless-sky: Update to 0.9.14 Timotej Lazar
@ 2021-08-04 10:49   ` Timotej Lazar
  2021-08-04 10:49   ` [bug#49871] [PATCH 3/3] gnu: endless-sky: Enable tests Timotej Lazar
  1 sibling, 0 replies; 5+ messages in thread
From: Timotej Lazar @ 2021-08-04 10:49 UTC (permalink / raw)
  To: 49871; +Cc: Timotej Lazar

* gnu/packages/games.scm (endless-sky)[arguments]: Drop unused substitution
and merge existing phases into 'fix-paths.
---
 gnu/packages/games.scm | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 792ff64a07..9a595162de 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -8368,19 +8368,13 @@ your score gets higher, you level up and the blocks fall faster.")
        #:tests? #f ; no tests
        #:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'patch-resource-locations
+         (add-after 'unpack 'fix-paths
            (lambda* (#:key outputs #:allow-other-keys)
+             ;; Look for resources in the store directory.
              (substitute* "source/Files.cpp"
-               (("/usr/local/")
-                (string-append (assoc-ref outputs "out") "/")))
-             #t))
-         (add-after 'unpack 'patch-scons
-           (lambda _
+               (("/usr/local") (assoc-ref outputs "out")))
+             ;; Install game binary into %out/bin.
              (substitute* "SConstruct"
-               ;; Keep environmental variables
-               (("Environment\\(\\)")
-                "Environment(ENV = os.environ)")
-               ;; Install into %out/bin
                (("games\"") "bin\""))
              #t))
          (add-before 'build 'use-gcc-ar
-- 
2.32.0





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

* [bug#49871] [PATCH 3/3] gnu: endless-sky: Enable tests.
  2021-08-04 10:49 ` [bug#49871] [PATCH 1/3] gnu: endless-sky: Update to 0.9.14 Timotej Lazar
  2021-08-04 10:49   ` [bug#49871] [PATCH 2/3] gnu: endless-sky: Clean up phases Timotej Lazar
@ 2021-08-04 10:49   ` Timotej Lazar
  1 sibling, 0 replies; 5+ messages in thread
From: Timotej Lazar @ 2021-08-04 10:49 UTC (permalink / raw)
  To: 49871; +Cc: Timotej Lazar

* gnu/packages/games.scm (endless-sky)[arguments]: Enable tests.
---
 gnu/packages/games.scm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 9a595162de..40c49063cd 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -8365,7 +8365,6 @@ your score gets higher, you level up and the blocks fall faster.")
     (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 'fix-paths
-- 
2.32.0





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

* bug#49871: [PATCH 0/3] Update endless-sky
  2021-08-04 10:45 [bug#49871] [PATCH 0/3] Update endless-sky Timotej Lazar
  2021-08-04 10:49 ` [bug#49871] [PATCH 1/3] gnu: endless-sky: Update to 0.9.14 Timotej Lazar
@ 2021-08-05  7:05 ` Nicolas Goaziou
  1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2021-08-05  7:05 UTC (permalink / raw)
  To: Timotej Lazar; +Cc: 49871-done

Hello,

Timotej Lazar <timotej.lazar@araneo.si> writes:

> these patches update Endless Sky to the latest version and clean up the
> package.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2021-08-05  7:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-04 10:45 [bug#49871] [PATCH 0/3] Update endless-sky Timotej Lazar
2021-08-04 10:49 ` [bug#49871] [PATCH 1/3] gnu: endless-sky: Update to 0.9.14 Timotej Lazar
2021-08-04 10:49   ` [bug#49871] [PATCH 2/3] gnu: endless-sky: Clean up phases Timotej Lazar
2021-08-04 10:49   ` [bug#49871] [PATCH 3/3] gnu: endless-sky: Enable tests Timotej Lazar
2021-08-05  7:05 ` bug#49871: [PATCH 0/3] Update endless-sky Nicolas Goaziou

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.