summaryrefslogtreecommitdiff
path: root/games-board
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-03-28 00:31:34 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-03-28 00:31:34 +0000
commitc44ae5c03130467400468d0e9a7f83e723c99f35 (patch)
tree2d60ad3f56cca90a1579a548a1bae0851fb4e091 /games-board
parent3d05d0025c6d74a6b677a172283a0b25c4cf4012 (diff)
gentoo auto-resync : 28:03:2025 - 00:31:34
Diffstat (limited to 'games-board')
-rw-r--r--games-board/Manifest.gzbin9877 -> 9872 bytes
-rw-r--r--games-board/gambit/Manifest3
-rw-r--r--games-board/gambit/files/gambit-1.0.6-compile-flags.patch28
-rw-r--r--games-board/gambit/gambit-1.0.6.ebuild51
4 files changed, 82 insertions, 0 deletions
diff --git a/games-board/Manifest.gz b/games-board/Manifest.gz
index 92b471182431..6f63bf6a33ef 100644
--- a/games-board/Manifest.gz
+++ b/games-board/Manifest.gz
Binary files differ
diff --git a/games-board/gambit/Manifest b/games-board/gambit/Manifest
index cdad924ac4b1..4fa7b1222880 100644
--- a/games-board/gambit/Manifest
+++ b/games-board/gambit/Manifest
@@ -1,4 +1,7 @@
AUX gambit-1.0.4-compile-flags.patch 1478 BLAKE2B b57ae05465ce29f81a69e438f50f3bfa310b38b6427a150ccda7a434cf14789d26ac25075d3902423a07c3f40f9252d3b046b121d2d7067804538be30fe9df60 SHA512 97682079ea3c3b8e751df8acf71db0f32a6dd2c615e0a4178e9babbe9f6a0b624bee80d326d2a4a3c6eb82451abc5f77dfa38909dc02f4b28a3f2ff7d3f9520f
+AUX gambit-1.0.6-compile-flags.patch 1478 BLAKE2B 7167deca3e7609762d1c2940b71a7cb76e62f2180528ef9ccfa8dec5289fd822aefb8d5650c69128e94931543dbc671788e896f7193eb225ee8171b5f75a1d49 SHA512 da612e42dfa0d85d18169f845ab59176b5fc27fd2b3d534f8d7b93efb7fed8e0fdca2adfd75ffd79d2d5be99f857ed9e465f47ea6339693ed6c2f2de05dc3de4
DIST Gambit-1.0.4-src.tar.xz 1675576 BLAKE2B 4545bee38509d44f80af874473ff562b441e570be3681b166b064574e12bfad8b8a2fb5043b9d0b9089160de2d97407160336cb58864168232cf0921244cf92d SHA512 9ba12e0e9598e2b08228aa009690e6a05677916dcea1413a42be20d620accbe7cef4f4300e3ccc5d4d99e37c7fb85d923df8f5fa9146ee8049bbde2ce66ab7a9
+DIST Gambit-1.0.6-source.tar.gz 1986973 BLAKE2B c7b0a43e068988b021efa96b05cfcd0ccaf47ff459596e8ecbbc836ada3d7be862745efcc5670315110c4d58f81e456adc0e1490dc1d1789421b9193b83166f1 SHA512 9d884b873c68c964cbe47e69622608e3d18509975fc81f5cf9e15773ded03e7a492d64a46ab5b2e74499dfee6099d81041b3dcb0cd486adb7446fdc69a90df61
EBUILD gambit-1.0.4-r1.ebuild 1214 BLAKE2B b6d89e87e9f0cd404220e8d42251f0a6799f2d0cad8796b2e15fdc98c4fb24d2eddcbbc88e36fb8da067f6f862ec6acc980b14feee23373728da8a706053694a SHA512 7dd623bbde1fe05cdbfcbac3b588e60c291ae79ff248dae42fca555fa8ca1d0e2f2d3d5c9a2857253d98ee010edcd9f5c2bb89a40834086ce703bf2d1b6e99b9
+EBUILD gambit-1.0.6.ebuild 1165 BLAKE2B e3532c9984094003da84614287f8ef9ff025bd684ff45acc6f1ac913c23dca078aa7f3b79f8bbb9cff7244ed43bec1f6945ffba606660dc54cd0ca98ffc15656 SHA512 f48e08ddc186bec4486a09fe08c5ba44bf5f833c016192a9990bc12dadadfd05d33c1748d2559decbb870243bb4bf7c79c673a744385b97f2ebb038998424c43
MISC metadata.xml 331 BLAKE2B 1038f4e27076302e03c875ed5cf329eb47ff4e6361a37a6a6570e1852843bd880fdb161f6b0376d905d8bdc7491ec875d9fc54cdbb8e56725cc7cde40676d871 SHA512 859410b6c1579f3772ea47810032d5ac90e9b9c86becfc41205537dc9b3ca0a76c8d0238129b5c0e26f2c2a499e452ceea22b373efc0c46e0f9d39ab794178a2
diff --git a/games-board/gambit/files/gambit-1.0.6-compile-flags.patch b/games-board/gambit/files/gambit-1.0.6-compile-flags.patch
new file mode 100644
index 000000000000..94bf47e778ed
--- /dev/null
+++ b/games-board/gambit/files/gambit-1.0.6-compile-flags.patch
@@ -0,0 +1,28 @@
+From d63ab98b0722022ab8b71424f9fe44ad0104ac50 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Thu, 27 Mar 2025 01:07:01 +0100
+Subject: [PATCH] Respect custom CFLAGS and CXXFLAGS
+
+---
+ CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ec9e914..5bfa912 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -114,9 +114,9 @@ if(POLICY CMP0020)
+ cmake_policy(SET CMP0020 NEW)
+ endif()
+
+-set(CMAKE_C_FLAGS "-Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wbad-function-cast -Wformat=2 -Wundef -pedantic -Wno-long-long")
++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wbad-function-cast -Wformat=2 -Wundef -pedantic -Wno-long-long")
+
+-set(CMAKE_CXX_FLAGS "-std=c++20 -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wredundant-decls -Wformat=2 -Wundef -pedantic -Wno-long-long")
++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wredundant-decls -Wformat=2 -Wundef -pedantic -Wno-long-long")
+
+ if(DEVELOPER_MODE)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -pedantic-errors")
+--
+2.48.1
+
diff --git a/games-board/gambit/gambit-1.0.6.ebuild b/games-board/gambit/gambit-1.0.6.ebuild
new file mode 100644
index 000000000000..1502caf06a50
--- /dev/null
+++ b/games-board/gambit/gambit-1.0.6.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_IN_SOURCE_BUILD=true
+MY_P="${P^}"
+inherit cmake desktop
+
+DESCRIPTION="Qt-based chess application + engine \"gupta\""
+HOMEPAGE="https://sourceforge.net/projects/gambitchess/"
+SRC_URI="https://downloads.sourceforge.net/project/${PN}chess/${MY_P}/${MY_P}-source.tar.gz"
+S="${WORKDIR}/${MY_P}-source"
+
+LICENSE="CC0-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ dev-qt/qtbase:6[gui,network,opengl,widgets]
+ media-libs/mesa[X(+)]
+ x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-compile-flags.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DCONFIG_ENABLE_UPDATE_CHECKER=OFF
+ -DCONFIG_GUPTA_ENGINE_DIRECTORY=/usr/bin
+ -DCONFIG_RESOURCE_PATH_PREFIX=/usr/share/${PN}/
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ emake -C engine/gupta VERBOSE=1 STRIP=/bin/true CFLAGS_RELEASE= release
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins -r data/*
+
+ doicon artwork/icons/${PN}/${PN}.svg
+ make_desktop_entry ${PN}chess ${PN^} ${PN} Game
+ dodoc doc/contributors.txt
+
+ dobin engine/gupta/gupta
+ dobin ${PN}chess
+}