unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#59049] [PATCH 0/2] Update opensurge
@ 2022-11-05 12:17 Timotej Lazar
  2022-11-05 12:18 ` [bug#59049] [PATCH 1/2] gnu: surgescript: Update to 0.5.6.1 Timotej Lazar
  2022-11-06 15:15 ` [bug#59049] [PATCH 0/2] Update opensurge Christopher Baines
  0 siblings, 2 replies; 4+ messages in thread
From: Timotej Lazar @ 2022-11-05 12:17 UTC (permalink / raw)
  To: 59049; +Cc: Timotej Lazar

This updates opensurge and its input to the latest version.

Timotej Lazar (2):
  gnu: surgescript: Update to 0.5.6.1.
  gnu: opensurge: Update to 0.6.0.3.

 gnu/packages/game-development.scm | 11 ++----
 gnu/packages/games.scm            | 63 +++++++++++++++----------------
 2 files changed, 33 insertions(+), 41 deletions(-)


base-commit: 3a227cff367e5b5415624adcb15eed124ac7768d
-- 
2.38.0





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

* [bug#59049] [PATCH 1/2] gnu: surgescript: Update to 0.5.6.1.
  2022-11-05 12:17 [bug#59049] [PATCH 0/2] Update opensurge Timotej Lazar
@ 2022-11-05 12:18 ` Timotej Lazar
  2022-11-05 12:19   ` [bug#59049] [PATCH 2/2] gnu: opensurge: Update to 0.6.0.3 Timotej Lazar
  2022-11-06 15:15 ` [bug#59049] [PATCH 0/2] Update opensurge Christopher Baines
  1 sibling, 1 reply; 4+ messages in thread
From: Timotej Lazar @ 2022-11-05 12:18 UTC (permalink / raw)
  To: 59049; +Cc: Timotej Lazar

* gnu/packages/game-development.scm (surgescript): Update to 0.5.6.1.
[arguments]: Drop #:configure-flags as the build script was fixed upstream.
---
 gnu/packages/game-development.scm | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 861de63fad..15bf93d51d 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -780,7 +780,7 @@ (define-public sfxr
 (define-public surgescript
   (package
     (name "surgescript")
-    (version "0.5.5")
+    (version "0.5.6.1")
     (source
      (origin
        (method git-fetch)
@@ -789,15 +789,10 @@ (define-public surgescript
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0xwd4g7n0b0rxkpbyshkzyl472h1y606ghyvf8gv034n3jz2g4jk"))))
+        (base32 "1p1pxb4iixzq7z14bpy32dx3dhfaaf6mcz4y3g3g09bkdmm1ys6j"))))
      (build-system cmake-build-system)
      (arguments
-      '(#:configure-flags
-        (let ((share (string-append (assoc-ref %outputs "out") "/share")))
-          (list "-DWANT_STATIC=NO"
-                (string-append "-DICON_PATH=" share "/pixmaps")
-                (string-append "-DMETAINFO_PATH=" share "/metainfo")))
-        #:tests? #f))
+      (list #:tests? #f)) ; there are no tests
      (home-page "https://docs.opensurge2d.org")
      (synopsis "Scripting language for games")
      (description "@code{SurgeScript} is a dynamically typed object-oriented
-- 
2.38.0





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

* [bug#59049] [PATCH 2/2] gnu: opensurge: Update to 0.6.0.3.
  2022-11-05 12:18 ` [bug#59049] [PATCH 1/2] gnu: surgescript: Update to 0.5.6.1 Timotej Lazar
@ 2022-11-05 12:19   ` Timotej Lazar
  0 siblings, 0 replies; 4+ messages in thread
From: Timotej Lazar @ 2022-11-05 12:19 UTC (permalink / raw)
  To: 59049; +Cc: Timotej Lazar

* gnu/packages/games.scm (opensurge): Update to 0.6.0.3.
[arguments]: Use G-exps.
---
 gnu/packages/games.scm | 63 ++++++++++++++++++++----------------------
 1 file changed, 30 insertions(+), 33 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 0a41840847..d32ef98fc4 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -1662,7 +1662,7 @@ (define-public meandmyshadow
 (define-public opensurge
   (package
     (name "opensurge")
-    (version "0.5.2.1")
+    (version "0.6.0.3")
     (source
      (origin
        (method git-fetch)
@@ -1671,40 +1671,37 @@ (define-public opensurge
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "13g5izss7dmgigc8iif8hid3z6i066b0z29rbql2b9qjmdj1dp41"))))
+        (base32 "0yia2qcva741a64qpls8a59lvnx5vynqkk2i3arkflw6f1m1vb55"))))
     (build-system cmake-build-system)
     (arguments
-     `(#:tests? #f                      ;there are no tests
-       #:configure-flags
-       (let* ((out (assoc-ref %outputs "out"))
-              (share (string-append out "/share")))
-         (list (string-append "-DCMAKE_INSTALL_PREFIX=" out)
-               (string-append "-DGAME_BINDIR=" out "/bin") ; not /bin/games
-               (string-append "-DGAME_DATADIR=" share "/" ,name)
-               (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
-               (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
-               (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'fix-xdg-open-path
-           (lambda* (#:key inputs #:allow-other-keys)
-             ;; Look for xdg-open in the store.
-             (substitute* "src/core/web.c"
-               (("/usr(/bin/xdg-open)" _ bin)
-                (search-input-file inputs bin)))))
-         (add-after 'unpack 'unbundle-fonts
-           (lambda* (#:key inputs #:allow-other-keys)
-             ;; Replace bundled Roboto fonts with links to the store.
-             (with-directory-excursion "fonts"
-               (let ((roboto-dir (string-append
-                                  (assoc-ref inputs "font-google-roboto")
-                                  "/share/fonts/truetype/")))
-                 (for-each
-                  (lambda (font)
-                    (delete-file font)
-                    (symlink (string-append roboto-dir font) font))
-                  '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
-               #t))))))
+     (list #:tests? #f ; there are no tests
+           #:configure-flags
+           #~(list (string-append "-DCMAKE_INSTALL_PREFIX=" #$output)
+                   (string-append "-DGAME_BINDIR=" #$output "/bin") ; not games
+                   (string-append "-DGAME_DATADIR=" #$output "/share/" #$name)
+                   (string-append "-DDESKTOP_ENTRY_PATH=" #$output "/share/applications")
+                   (string-append "-DDESKTOP_ICON_PATH=" #$output "/share/pixmaps")
+                   (string-append "-DDESKTOP_METAINFO_PATH=" #$output "/share/metainfo"))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-xdg-open-path
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   ;; Look for xdg-open in the store.
+                   (substitute* "src/core/web.c"
+                     (("/usr/(bin/xdg-open)" _ bin)
+                      (search-input-file inputs bin)))))
+               (add-after 'unpack 'unbundle-fonts
+                 (lambda* (#:key inputs #:allow-other-keys)
+                   ;; Replace bundled fonts with links to the store.
+                   (with-directory-excursion "fonts"
+                     (for-each (lambda (font)
+                                 (let ((file (string-append "share/fonts/truetype/"
+                                                            font)))
+                                   (delete-file font)
+                                   (symlink (search-input-file inputs file) font)))
+                               '("Roboto-Black.ttf"
+                                 "Roboto-Bold.ttf"
+                                 "Roboto-Medium.ttf"))))))))
     (inputs
      (list allegro font-google-roboto surgescript xdg-utils))
     (home-page "https://opensurge2d.org")
-- 
2.38.0





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

* [bug#59049] [PATCH 0/2] Update opensurge
  2022-11-05 12:17 [bug#59049] [PATCH 0/2] Update opensurge Timotej Lazar
  2022-11-05 12:18 ` [bug#59049] [PATCH 1/2] gnu: surgescript: Update to 0.5.6.1 Timotej Lazar
@ 2022-11-06 15:15 ` Christopher Baines
  1 sibling, 0 replies; 4+ messages in thread
From: Christopher Baines @ 2022-11-06 15:15 UTC (permalink / raw)
  To: Timotej Lazar; +Cc: 59049-done, 59049

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


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

> This updates opensurge and its input to the latest version.
>
> Timotej Lazar (2):
>   gnu: surgescript: Update to 0.5.6.1.
>   gnu: opensurge: Update to 0.6.0.3.
>
>  gnu/packages/game-development.scm | 11 ++----
>  gnu/packages/games.scm            | 63 +++++++++++++++----------------
>  2 files changed, 33 insertions(+), 41 deletions(-)

Thanks! Pushed to master as 6e5e5f8fc29d71c1e54166c20ffdbf9f586d00d5.

Chris

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

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

end of thread, other threads:[~2022-11-06 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-05 12:17 [bug#59049] [PATCH 0/2] Update opensurge Timotej Lazar
2022-11-05 12:18 ` [bug#59049] [PATCH 1/2] gnu: surgescript: Update to 0.5.6.1 Timotej Lazar
2022-11-05 12:19   ` [bug#59049] [PATCH 2/2] gnu: opensurge: Update to 0.6.0.3 Timotej Lazar
2022-11-06 15:15 ` [bug#59049] [PATCH 0/2] Update opensurge Christopher Baines

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).