From: Timotej Lazar <timotej.lazar@araneo.si>
To: 59049@debbugs.gnu.org
Cc: Timotej Lazar <timotej.lazar@araneo.si>
Subject: [bug#59049] [PATCH 2/2] gnu: opensurge: Update to 0.6.0.3.
Date: Sat, 5 Nov 2022 13:19:01 +0100 [thread overview]
Message-ID: <20221105121859.10076-2-timotej.lazar@araneo.si> (raw)
In-Reply-To: <20221105121859.10076-1-timotej.lazar@araneo.si>
* 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
next prev parent reply other threads:[~2022-11-05 12:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Timotej Lazar [this message]
2022-11-06 15:15 ` [bug#59049] [PATCH 0/2] Update opensurge Christopher Baines
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221105121859.10076-2-timotej.lazar@araneo.si \
--to=timotej.lazar@araneo.si \
--cc=59049@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.