public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-board/gambit/files/, games-board/gambit/
@ 2025-03-27  0:28 Sebastian Pipping
  0 siblings, 0 replies; only message in thread
From: Sebastian Pipping @ 2025-03-27  0:28 UTC (permalink / raw
  To: gentoo-commits

commit:     2447d9f518b9260a65c6587049516cd8b1d1a740
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 27 00:19:31 2025 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Thu Mar 27 00:20:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2447d9f5

games-board/gambit: 1.0.6 (with Qt 6)

Closes: https://bugs.gentoo.org/951876
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>

 games-board/gambit/Manifest                        |  1 +
 .../gambit/files/gambit-1.0.6-compile-flags.patch  | 28 ++++++++++++
 games-board/gambit/gambit-1.0.6.ebuild             | 51 ++++++++++++++++++++++
 3 files changed, 80 insertions(+)

diff --git a/games-board/gambit/Manifest b/games-board/gambit/Manifest
index 8ad68518361a..a1a243c42d2c 100644
--- a/games-board/gambit/Manifest
+++ b/games-board/gambit/Manifest
@@ -1 +1,2 @@
 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

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
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-27  0:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27  0:28 [gentoo-commits] repo/gentoo:master commit in: games-board/gambit/files/, games-board/gambit/ Sebastian Pipping

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox