From: James Smith via Guix-patches via <guix-patches@gnu.org>
To: 58574@debbugs.gnu.org
Cc: James Smith <jsubuntuxp@disroot.org>
Subject: [bug#58574] [PATCH] gnu: slade: Update to 3.2.1, use new package style.
Date: Sun, 16 Oct 2022 15:49:21 -0700 [thread overview]
Message-ID: <20221016224921.8205-1-jsubuntuxp@disroot.org> (raw)
* gnu/packages/game-development.scm (slade): Update to 3.2.1.
[arguments]: Use G-expressions.
[phases]: Removed reset-slade.pk3-timestamp phase.
[inputs]: Remove input labels. Add lua and mpg123. Replaced wxwidgets-3.1 with
wxwidgets.
---
gnu/packages/game-development.scm | 67 ++++++++++++++-----------------
1 file changed, 30 insertions(+), 37 deletions(-)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index d40a97eef2..83355d9886 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -22,7 +22,7 @@
;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro>
;;; Copyright © 2021 Dmitry Polyakov <polyakov@liltechdude.xyz>
-;;; Copyright © 2020-2021 James Smith <jsubuntuxp@disroot.org>
+;;; Copyright © 2020-2022 James Smith <jsubuntuxp@disroot.org>
;;; Copyright © 2021 Ekaitz Zarraga <ekaitz@elenq.tech>
;;; Copyright © 2021 Andy Tai <atai@atai.org>
;;; Copyright © 2022 Felix Gruber <felgru@posteo.net>
@@ -516,52 +516,45 @@ (define-public python-xsge
(define-public slade
(package
(name "slade")
- (version "3.1.13")
+ (version "3.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/sirjuddington/SLADE")
(commit version)))
- (sha256 (base32 "009yc5m6y074wfalvwbrnv2zsmaf9yhbi8hzgs973di0zqnqv011"))
+ (sha256 (base32 "11ab38nv190lpvkdba5r2gckdrk4h15pri0zzslz7zy8qzg5fm18"))
(file-name (git-file-name name version))))
(build-system cmake-build-system)
(arguments
- '(#:configure-flags
- (list "-DWX_GTK3=ON" "-DNO_WEBVIEW=ON"
- (string-append "-DWITH_WXPATH="
- (assoc-ref %build-inputs "wxwidgets") "/bin")
- (string-append "-DwxWidgets_LIBRARIES="
- (assoc-ref %build-inputs "wxwidgets") "/lib"))
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'reset-slade.pk3-timestamps
- ;; This is neccessary to make slade reproducible due to
- ;; <https://bugs.gnu.org/44741>. TODO: Remove on next core update
- ;; cycle.
- (lambda _
- (invoke "find" "../source/dist/res" "-exec" "touch"
- "--no-dereference" "-t" "197001010000.00" "{}"
- "+")))
- (add-after 'install 'wrap-with-x11-gdk-backend
- ;; Set GDK_BACKEND to x11 to prevent crash on Wayland.
- ;; See https://github.com/sirjuddington/SLADE/issues/1097 for details.
- (lambda* (#:key outputs #:allow-other-keys)
- (wrap-program
- (string-append (assoc-ref outputs "out")
- "/bin/slade")
- '("GDK_BACKEND" = ("x11"))))))
- #:tests? #f)) ;; No test suite.
+ (list #:configure-flags
+ #~(list "-DWX_GTK3=ON" "-DNO_WEBVIEW=ON"
+ (string-append "-DWITH_WXPATH="
+ #$(this-package-input "wxwidgets") "/bin")
+ (string-append "-DwxWidgets_LIBRARIES="
+ #$(this-package-input "wxwidgets") "/lib"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'wrap-with-x11-gdk-backend
+ ;; Set GDK_BACKEND to x11 to prevent crash on Wayland.
+ ;; See https://github.com/sirjuddington/SLADE/issues/1097 for
+ ;; details.
+ (lambda _
+ (wrap-program (string-append #$output "/bin/slade")
+ '("GDK_BACKEND" = ("x11"))))))
+ #:tests? #f)) ;; No test suite.
(inputs
- `(("bash" ,bash-minimal)
- ("curl" ,curl)
- ("fluidsynth" ,fluidsynth)
- ("freeimage" ,freeimage)
- ("ftgl" ,ftgl)
- ("glew" ,glew)
- ("gtk+" ,gtk+)
- ("sfml" ,sfml)
- ("wxwidgets" ,wxwidgets-3.1)))
+ (list bash-minimal
+ curl
+ fluidsynth
+ freeimage
+ ftgl
+ glew
+ gtk+
+ lua
+ mpg123
+ sfml
+ wxwidgets))
(native-inputs
(list pkg-config which zip))
(home-page "https://slade.mancubus.net")
--
2.38.0
next reply other threads:[~2022-10-17 0:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-16 22:49 James Smith via Guix-patches via [this message]
2022-11-15 10:31 ` bug#58574: [PATCH] gnu: slade: Update to 3.2.1, use new package style Efraim Flashner
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221016224921.8205-1-jsubuntuxp@disroot.org \
--to=guix-patches@gnu.org \
--cc=58574@debbugs.gnu.org \
--cc=jsubuntuxp@disroot.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 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).