[PATCH] gnu: wesnoth: Update to 1.18.0.

  • Done
  • quality assurance status badge
Details
2 participants
  • iyzsong
  • Christopher Baines
Owner
unassigned
Submitted by
iyzsong
Severity
normal
I
I
iyzsong wrote on 26 Mar 14:50 +0100
(address . guix-patches@gnu.org)(name . ???)(address . iyzsong@member.fsf.org)
64ba1c7c4bd0d6ff447374c32446f7096a1e1ffa.1711460910.git.iyzsong@member.fsf.org
From: ??? <iyzsong@member.fsf.org>

* gnu/packages/games.scm (wesnoth): Update to 1.18.0.
[arguments]: Pass "-DENABLE_SYSTEM_LUA=ON" to 'configure-flags'. Add phases.
[inputs]: Remove fribidi, sdl-union, sdl2-ttf. Add curl, lua-5.4.
[native-inputs]: Add python-minimal.
(wesnoth-server): Update to 1.18.0.
[inputs]: Remove sdl2. Add lua-5.4.
[native-inputs]: Replace with pkg-config.
[arguments]: Rewrite with 'substitute-keyword-arguments'.

Change-Id: I1ee4237dbbaeeb9d5a93637d740fbf4dba0922d2
---
gnu/packages/games.scm | 36 +++++++++++++++++++++++++++---------
1 file changed, 27 insertions(+), 9 deletions(-)

Toggle diff (76 lines)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index f150c33e83..5ae22716b1 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -4613,7 +4613,7 @@ (define-public gnujump
(define-public wesnoth
(package
(name "wesnoth")
- (version "1.16.11")
+ (version "1.18.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -4622,21 +4622,36 @@ (define-public wesnoth
(file-name (git-file-name name version))
(sha256
(base32
- "0z0y2il4xq8fdj20fwfggpf6286hb099jh1kdywap9rlrybq142d"))))
+ "0ar0zkyl4rzqgambmdqhklscx478liql1k458ax64bp4xw441kfc"))))
(build-system cmake-build-system)
(arguments
- (list #:tests? #f)) ;no test target
+ (list #:tests? #f ;no test target
+ #:configure-flags #~'("-DENABLE_SYSTEM_LUA=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'pre-configure
+ (lambda _
+ ;; XXX: Our Lua doesn't have a C++ library, force C linkage.
+ (substitute* '("src/lua/wrapper_lua.h"
+ "src/lua/wrapper_lualib.h"
+ "src/lua/wrapper_lauxlib.h")
+ (("#include \"(lua|lualib|lauxlib)\\.h\"")
+ "#include \"lua.hpp\"")))))))
(inputs
(list boost
+ curl
dbus
- fribidi
libvorbis
+ lua-5.4
openssl
pango
- (sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))))
+ sdl2
+ sdl2-image
+ sdl2-mixer))
(native-inputs
(list gettext-minimal
- pkg-config))
+ pkg-config
+ python-minimal))
(home-page "https://www.wesnoth.org/")
(synopsis "Turn-based strategy game")
(description
@@ -4655,10 +4670,13 @@ (define-public wesnoth-server
(inherit wesnoth)
(name "wesnoth-server")
(inputs
- (list boost icu4c openssl sdl2))
+ (list boost icu4c lua-5.4 openssl))
+ (native-inputs
+ (list pkg-config))
(arguments
- `(#:configure-flags '("-DENABLE_GAME=OFF")
- ,@(package-arguments wesnoth)))
+ (substitute-keyword-arguments (package-arguments wesnoth)
+ ((#:configure-flags _)
+ #~'("-DENABLE_SYSTEM_LUA=ON" "-DENABLE_GAME=OFF"))))
(synopsis "Dedicated @emph{Battle for Wesnoth} server")
(description "This package contains a dedicated server for @emph{The
Battle for Wesnoth}.")))

base-commit: 7dfb3155fc4dd37bea93a8704c37e4aff87e5013
--
2.41.0
C
C
Christopher Baines wrote on 27 Mar 14:02 +0100
(address . iyzsong@envs.net)
87bk6zg750.fsf@cbaines.net
iyzsong--- via Guix-patches via <guix-patches@gnu.org> writes:

Toggle quote (16 lines)
> From: ??? <iyzsong@member.fsf.org>
>
> * gnu/packages/games.scm (wesnoth): Update to 1.18.0.
> [arguments]: Pass "-DENABLE_SYSTEM_LUA=ON" to 'configure-flags'. Add phases.
> [inputs]: Remove fribidi, sdl-union, sdl2-ttf. Add curl, lua-5.4.
> [native-inputs]: Add python-minimal.
> (wesnoth-server): Update to 1.18.0.
> [inputs]: Remove sdl2. Add lua-5.4.
> [native-inputs]: Replace with pkg-config.
> [arguments]: Rewrite with 'substitute-keyword-arguments'.
>
> Change-Id: I1ee4237dbbaeeb9d5a93637d740fbf4dba0922d2
> ---
> gnu/packages/games.scm | 36 +++++++++++++++++++++++++++---------
> 1 file changed, 27 insertions(+), 9 deletions(-)

Looks good to me, I've pushed this to master as
e9a547d2c57e22bea0b6da6cc67d423ff9d47b07.

Chris
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmYEGNtfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9XegQw//eNnqAj2VDShuI0fGo7Mp/wRHEkwSbq2f
MCOznTFB5XeCzwXARpVgnajP4A0SqxK7VPBNgbM4/Gwro1q5tvoVTdJmAiqxM/GE
snVIOwEwZWm+wgWzMzuurSZYJnOZcLDRY4PI7TCLCi6ydnjxXPoSjbAeMw6BLEKD
S+gDn9VFNBOohev5MeaebYFJC8rBtdluypvNMT6779hxAAZzUQ7bx1mwvGR8gZvR
uZHxI6Y46SyIg3DmkV7q5NFZvgmeF+90jsblGyF7BHzY7PnJZXEoYphMabTcFh75
5ZHXb2FZYQ2lBLKuu23YCU/dIjKwFXUFv6nlgXSn3nYj8d61iGS3EEr47g18AI+l
OoAbrKGnFWsXfxfVl1eo+GQr+WaEYmwQRJSWWAZ8Kd3AwiuZ2LZPj8Nz0T0amgll
CYDhDnTF1ZGFTHzKM8w6vokBczN3g949wCA08YGgC+4qIcRo08+xnpAa/spYNhhd
T9x5fbaTNiDq/rJgBhQBrfcBdODXyFKPP6B9L84xHF4cviFKZjX1VasAHDinRTNU
FtpFSaoU23gyP513RwE2War37a6W7OqjuH81QgIi9XFGICE7rGnY4YcgZk6aop8T
4e5ahnS/F3J5/qHn0RI4OgonPoPuxdh4A0aK7H+epKJ3KitQJB3s/0k3QFXvUGS8
8+337NcQvtQ=
=BwOU
-----END PGP SIGNATURE-----

?
Your comment

This issue is archived.

To comment on this conversation send an email to 70006@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 70006
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch