summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board')
-rw-r--r--games-board/awale/awale-1.6-r1.ebuild39
-rw-r--r--games-board/awale/files/awale-1.6-clang16-build-fix.patch11
-rw-r--r--games-board/blokish/Manifest1
-rw-r--r--games-board/blokish/blokish-0.9.4-r3.ebuild52
-rw-r--r--games-board/blokish/files/blokish-0.9.4-gcc43.patch12
-rw-r--r--games-board/blokish/files/blokish-0.9.4-underlink.patch9
-rw-r--r--games-board/blokish/files/blokish-0.9.4-wxgtk.patch21
-rw-r--r--games-board/blokish/metadata.xml11
-rw-r--r--games-board/chessx/Manifest2
-rw-r--r--games-board/chessx/chessx-1.5.4-r4.ebuild57
-rw-r--r--games-board/chessx/chessx-1.6.2.ebuild50
-rw-r--r--games-board/chessx/files/chessx-1.5.4-install.patch27
-rw-r--r--games-board/chessx/files/chessx-1.5.4-missing-translations.patch24
-rw-r--r--games-board/chessx/files/chessx-1.5.4-system-quazip.patch73
-rw-r--r--games-board/chessx/files/chessx-1.6.2-install.patch22
-rw-r--r--games-board/chessx/files/chessx-1.6.2-system-quazip-zlib.patch66
-rw-r--r--games-board/gnome-chess/Manifest2
-rw-r--r--games-board/gnome-chess/gnome-chess-46.0.ebuild2
-rw-r--r--games-board/gnome-chess/gnome-chess-47.0.ebuild (renamed from games-board/gnome-chess/gnome-chess-43.2.ebuild)10
-rw-r--r--games-board/gnome-mahjongg/Manifest2
-rw-r--r--games-board/gnome-mahjongg/gnome-mahjongg-47.0.ebuild (renamed from games-board/gnome-mahjongg/gnome-mahjongg-3.40.0.ebuild)11
-rw-r--r--games-board/gnushogi/files/gnushogi-1.4.1-makefile.patch72
-rw-r--r--games-board/gnushogi/files/gnushogi-1.4.1-xshogi-parser.patch25
-rw-r--r--games-board/gnushogi/gnushogi-1.4.1-r2.ebuild (renamed from games-board/gnushogi/gnushogi-1.4.1-r1.ebuild)21
-rw-r--r--games-board/jja/jja-0.9.1-r2.ebuild8
-rw-r--r--games-board/jja/jja-9999.ebuild4
-rw-r--r--games-board/pysolfc/Manifest2
-rw-r--r--games-board/pysolfc/pysolfc-3.1.0.ebuild (renamed from games-board/pysolfc/pysolfc-3.0.0.ebuild)4
-rw-r--r--games-board/stockfish/files/stockfish-17-gcc15.patch40
-rw-r--r--games-board/stockfish/stockfish-16-r1.ebuild13
-rw-r--r--games-board/stockfish/stockfish-16.1.ebuild13
-rw-r--r--games-board/stockfish/stockfish-16.ebuild13
-rw-r--r--games-board/stockfish/stockfish-17-r1.ebuild99
-rw-r--r--games-board/stockfish/stockfish-17.ebuild13
-rw-r--r--games-board/xscrabble/Manifest1
-rw-r--r--games-board/xscrabble/files/xscrabble-2.10-ranlib.patch13
-rw-r--r--games-board/xscrabble/xscrabble-2.10-r5.ebuild (renamed from games-board/xscrabble/xscrabble-2.10-r4.ebuild)24
37 files changed, 534 insertions, 335 deletions
diff --git a/games-board/awale/awale-1.6-r1.ebuild b/games-board/awale/awale-1.6-r1.ebuild
new file mode 100644
index 000000000000..7f2ed8e143dd
--- /dev/null
+++ b/games-board/awale/awale-1.6-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop
+
+DESCRIPTION="Free Awale - The game of all Africa"
+HOMEPAGE="https://www.nongnu.org/awale/"
+SRC_URI="mirror://nongnu/awale/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gui"
+
+RDEPEND="gui? ( dev-lang/tk )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.6-clang16-build-fix.patch
+)
+
+src_install() {
+ if use gui; then
+ emake -j1 DESTDIR="${D}" install #799107
+
+ fperms +x /usr/share/${PN}/xawale.tcl
+
+ doicon src/awale.png
+ make_desktop_entry xawale "Free Awale"
+
+ rm "${ED}"/usr/share/applications/awale.desktop || die
+ else
+ dobin src/awale
+ doman man/awale.6
+ fi
+
+ einstalldocs
+}
diff --git a/games-board/awale/files/awale-1.6-clang16-build-fix.patch b/games-board/awale/files/awale-1.6-clang16-build-fix.patch
new file mode 100644
index 000000000000..56b3ed9e0bb7
--- /dev/null
+++ b/games-board/awale/files/awale-1.6-clang16-build-fix.patch
@@ -0,0 +1,11 @@
+Bug: https://bugs.gentoo.org/895882
+--- a/src/getopt.c
++++ b/src/getopt.c
+@@ -39,6 +39,7 @@
+ #endif
+
+ #include <stdio.h>
++#include <string.h>
+
+ /* Comment out all this code if we are using the GNU C Library, and are not
+ actually compiling the library itself. This code is part of the GNU C
diff --git a/games-board/blokish/Manifest b/games-board/blokish/Manifest
deleted file mode 100644
index 2a100ba466ae..000000000000
--- a/games-board/blokish/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST blokish_v0.9.4.tgz 165215 BLAKE2B 137a82d8833da4459d394a2832fc32de3157c107d2cfcbd3ff93b8274ee1b218a823c44f70a6b256aa6bfa4367c01561829c29638c331cbdf179bfa069278b7a SHA512 f84e5c31999cfca4bc6504907a889561c0e6c986b6c7bbd0d7325cec248d7e5d7834d841326635a605669b7bffd9fdb8c8fe73a216a738dace0385ae8a98cbec
diff --git a/games-board/blokish/blokish-0.9.4-r3.ebuild b/games-board/blokish/blokish-0.9.4-r3.ebuild
deleted file mode 100644
index 018d25f7f85a..000000000000
--- a/games-board/blokish/blokish-0.9.4-r3.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-WX_GTK_VER="3.0"
-inherit autotools desktop wxwidgets
-
-MY_P="${PN}_v${PV}"
-
-DESCRIPTION="Open source clone of the four-player board game Blokus"
-HOMEPAGE="https://sourceforge.net/projects/blokish/"
-SRC_URI="https://downloads.sourceforge.net/blokish/${MY_P}.tgz"
-S="${WORKDIR}"/${PN}
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
- x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
- virtual/glu
- virtual/opengl"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${P}-gcc43.patch
- "${FILESDIR}"/${P}-underlink.patch
- "${FILESDIR}"/${P}-wxgtk.patch
-)
-
-src_prepare() {
- default
-
- # Otherwise $WX_CONFIG is unset:
- setup-wxwidgets
-
- sed -i \
- -e "s:wx-config:${WX_CONFIG}:" \
- configure.in makefile.am || die
- mv configure.in configure.ac || die
-
- eautoreconf
-}
-
-src_install() {
- default
- dodoc -r docs/.
-
- doicon src/${PN}.xpm
- make_desktop_entry ${PN} Blokish ${PN}
-}
diff --git a/games-board/blokish/files/blokish-0.9.4-gcc43.patch b/games-board/blokish/files/blokish-0.9.4-gcc43.patch
deleted file mode 100644
index f53e5495aa57..000000000000
--- a/games-board/blokish/files/blokish-0.9.4-gcc43.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/src/base.h
-+++ b/src/base.h
-@@ -25,6 +25,9 @@
- #include <vector>
- #include <fstream>
- #include <iostream>
-+#include <algorithm>
-+#include <cstdlib>
-+#include <climits>
-
- enum BlokishID
- {
diff --git a/games-board/blokish/files/blokish-0.9.4-underlink.patch b/games-board/blokish/files/blokish-0.9.4-underlink.patch
deleted file mode 100644
index a4433379e37a..000000000000
--- a/games-board/blokish/files/blokish-0.9.4-underlink.patch
+++ /dev/null
@@ -1,9 +0,0 @@
---- a/makefile.am 2011-06-21 08:43:21.804880067 +0200
-+++ b/makefile.am 2011-06-21 08:43:49.875661081 +0200
-@@ -1,5 +1,5 @@
- INCLUDES = `wx-config --cxxflags`
--LIBS = `wx-config --libs --gl-libs`
-+LIBS = `wx-config --libs --gl-libs` -lGL -lm
-
- bin_PROGRAMS = blokish
-
diff --git a/games-board/blokish/files/blokish-0.9.4-wxgtk.patch b/games-board/blokish/files/blokish-0.9.4-wxgtk.patch
deleted file mode 100644
index 1821e0b5f86d..000000000000
--- a/games-board/blokish/files/blokish-0.9.4-wxgtk.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -ru blokish/src/blokish.cpp blokish/src/blokish.cpp
---- blokish/src/blokish.cpp 2007-04-01 17:01:26.000000000 -0400
-+++ blokish/src/blokish.cpp 2015-11-15 21:48:32.426081482 -0500
-@@ -903,7 +903,7 @@
- void OnSaveGame(wxCommandEvent &event)
- {
- WaitForAIToFinish();
-- wxString filename = wxFileSelector(wxString::FromAscii("Select a filename to save as"), wxString::FromAscii(""), wxString::FromAscii("default.sav"), wxString::FromAscii(".sav"), wxString::FromAscii("*.sav"), wxSAVE);
-+ wxString filename = wxFileSelector(wxString::FromAscii("Select a filename to save as"), wxString::FromAscii(""), wxString::FromAscii("default.sav"), wxString::FromAscii(".sav"), wxString::FromAscii("*.sav"), wxFD_SAVE);
- if(!filename.empty())
- {
- std::ofstream outFile(filename.fn_str(), std::ios::binary);
-@@ -915,7 +915,7 @@
- void OnLoadGame(wxCommandEvent &event)
- {
- WaitForAIToFinish();
-- wxString filename = wxFileSelector(wxString::FromAscii("Select a game to load"), wxString::FromAscii(""), wxString::FromAscii(""), wxString::FromAscii(".sav"), wxString::FromAscii("*.sav"), wxOPEN | wxFILE_MUST_EXIST);
-+ wxString filename = wxFileSelector(wxString::FromAscii("Select a game to load"), wxString::FromAscii(""), wxString::FromAscii(""), wxString::FromAscii(".sav"), wxString::FromAscii("*.sav"), wxFD_OPEN | wxFD_FILE_MUST_EXIST);
- if(!filename.empty())
- {
- std::ifstream inFile(filename.fn_str(), std::ios::binary);
diff --git a/games-board/blokish/metadata.xml b/games-board/blokish/metadata.xml
deleted file mode 100644
index 1b1c5228180f..000000000000
--- a/games-board/blokish/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>games@gentoo.org</email>
- <name>Gentoo Games Project</name>
- </maintainer>
- <upstream>
- <remote-id type="sourceforge">blokish</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/games-board/chessx/Manifest b/games-board/chessx/Manifest
index 887c6e39fcaa..bbae7a2229c7 100644
--- a/games-board/chessx/Manifest
+++ b/games-board/chessx/Manifest
@@ -1 +1 @@
-DIST chessx-1.5.4.tgz 3663299 BLAKE2B 3a0f222d2c122e70f66600f15a2b9a9606e56407db364a616515ebc1b7f333e260c131e61e22f59fb3cbd340555bb8c238bfd560fbc23f4c173288cd4b7e7369 SHA512 9f112b185ed8af3690cb50eafead7dfbd7896d3baebc9b10c3d32103a51cc49834703c232c159dffe24fd09601f2b41db02598c435ca56fc1031195fb9762a42
+DIST chessx-1.6.2.tgz 11024855 BLAKE2B cdb836491f0567e885425f12230f4da69b5c03f6a4f02370064ae3bf8455c5ef035f8e177732602d3eaf865f0e16e8661243f42daa3aa3dd2166860fc25d771d SHA512 d9d92c9a36998497696ad84dd60f3dc5243fbcd29ee78a3c05d7812bc90be103349042f794060c3ef803199cc5b315d055b2a5e10c0b355a89b55dbc4a6c5241
diff --git a/games-board/chessx/chessx-1.5.4-r4.ebuild b/games-board/chessx/chessx-1.5.4-r4.ebuild
deleted file mode 100644
index 09e2228aa3c3..000000000000
--- a/games-board/chessx/chessx-1.5.4-r4.ebuild
+++ /dev/null
@@ -1,57 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit qmake-utils xdg
-
-DESCRIPTION="Qt5-based Chess Database Utility"
-HOMEPAGE="https://chessx.sourceforge.net/"
-SRC_URI="https://sourceforge.net/projects/chessx/files/chessx/${PV}/${P}.tgz"
-
-LICENSE="GPL-2+ LGPL-2+ LGPL-2.1+ ZLIB"
-SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
-
-RDEPEND="
- >=dev-libs/quazip-0.9.1:0=[qt5(+)]
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtmultimedia:5
- dev-qt/qtnetwork:5
- dev-qt/qtprintsupport:5
- dev-qt/qtspeech:5
- dev-qt/qtsvg:5
- dev-qt/qtwidgets:5
- dev-qt/qtxml:5
- sys-libs/zlib
-"
-DEPEND="${RDEPEND}
- dev-qt/qtconcurrent:5
-"
-BDEPEND="
- dev-qt/linguist-tools:5
- virtual/pkgconfig
-"
-
-PATCHES=(
- "${FILESDIR}"/${P}-system-quazip.patch
- "${FILESDIR}"/${P}-missing-translations.patch
- "${FILESDIR}"/${P}-install.patch
-)
-
-src_prepare() {
- xdg_src_prepare
- if has_version "<dev-libs/quazip-1.0"; then
- sed -e "/^PKGCONFIG/s/quazip1-qt5/quazip/" -i chessx.pro || die
- fi
-}
-
-src_configure() {
- eqmake5
-}
-
-src_install() {
- emake INSTALL_ROOT="${D}" install
- einstalldocs
-}
diff --git a/games-board/chessx/chessx-1.6.2.ebuild b/games-board/chessx/chessx-1.6.2.ebuild
new file mode 100644
index 000000000000..5640be58ee04
--- /dev/null
+++ b/games-board/chessx/chessx-1.6.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop qmake-utils xdg
+
+DESCRIPTION="Qt-based Chess Database Utility"
+HOMEPAGE="https://chessx.sourceforge.net/"
+SRC_URI="https://sourceforge.net/projects/chessx/files/chessx/${PV}/${P}.tgz"
+S="${WORKDIR}/${PN}-master"
+
+LICENSE="GPL-2+ LGPL-2+ LGPL-2.1+ ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+RDEPEND="
+ >=dev-libs/quazip-1.3-r2:0=[qt6(+)]
+ dev-qt/qt5compat:6
+ dev-qt/qtbase:6[gui,network,widgets,xml]
+ dev-qt/qtmultimedia:6
+ dev-qt/qtspeech:6
+ dev-qt/qtsvg:6
+ sys-libs/zlib
+"
+DEPEND="${RDEPEND}
+ dev-qt/qtbase:6[concurrent]
+"
+BDEPEND="
+ dev-qt/qttools:6[linguist]
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-system-quazip-zlib.patch
+ "${FILESDIR}"/${P}-install.patch
+)
+
+src_configure() {
+ eqmake6 PREFIX="${EPREFIX}/usr"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ doicon -s 256 data/images/${PN}.png
+ for x in 32 64; do
+ newicon -s ${x} data/images/${PN}-${x}.png ${PN}.png
+ done
+ einstalldocs
+}
diff --git a/games-board/chessx/files/chessx-1.5.4-install.patch b/games-board/chessx/files/chessx-1.5.4-install.patch
deleted file mode 100644
index c017b3ea1535..000000000000
--- a/games-board/chessx/files/chessx-1.5.4-install.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Index: chessx-1.5.4/chessx.pro
-===================================================================
---- chessx-1.5.4.orig/chessx.pro
-+++ chessx-1.5.4/chessx.pro
-@@ -546,6 +546,22 @@ macx {
- data/timeseal/mac/timeseal
- }
-
-+unix:!macx {
-+ isEmpty(PREFIX) {
-+ PREFIX = /usr
-+ }
-+ target.path = $$PREFIX/bin
-+ desktop.path = $$PREFIX/share/applications
-+ desktop.files = unix/chessx.desktop
-+ icon.path = $$PREFIX/share/pixmaps
-+ icon.files = data/images/chessx.png
-+ data.path = $$PREFIX/share/chessx
-+ data.files = data
-+ lang.path = $$PREFIX/share/chessx/data/lang
-+ lang.files = i18n/*.qm
-+ INSTALLS += target desktop icon data lang
-+}
-+
- win32 {
- OTHER_FILES += \
- src/chessx.rc \
diff --git a/games-board/chessx/files/chessx-1.5.4-missing-translations.patch b/games-board/chessx/files/chessx-1.5.4-missing-translations.patch
deleted file mode 100644
index 7c874e16508b..000000000000
--- a/games-board/chessx/files/chessx-1.5.4-missing-translations.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Index: resources.qrc
-===================================================================
---- a/resources.qrc
-+++ b/resources.qrc
-@@ -12,11 +12,7 @@
- <file alias="help/about4.html">data/help/about4.html</file>
- <file alias="help/about5.html">data/help/about5.html</file>
- <file alias="help/about6.html">data/help/about6.html</file>
-- <file alias="i18n/chessx_da.qm">i18n/chessx_da.qm</file>
- <file alias="i18n/chessx_de.qm">i18n/chessx_de.qm</file>
-- <file alias="i18n/chessx_fr.qm">i18n/chessx_fr.qm</file>
-- <file alias="i18n/chessx_it.qm">i18n/chessx_it.qm</file>
-- <file alias="i18n/chessx_cz.qm">i18n/chessx_cz.qm</file>
- <file alias="images/accept.png">data/images/accept.png</file>
- <file alias="images/annotate.png">data/images/annotate.png</file>
- <file alias="images/arrow_green.png">data/images/arrow_green.png</file>
-@@ -180,7 +176,6 @@
- <file alias="themes/shadow/leipzig.png">data/themes/shadow/leipzig.png</file>
- <file alias="themes/shadow/merida.png">data/themes/shadow/merida.png</file>
- <file alias="themes/shadow/spatial.png">data/themes/shadow/spatial.png</file>
-- <file alias="i18n/chessx_ru.qm">i18n/chessx_ru.qm</file>
- <file alias="images/threat_black.png">data/images/threat_black.png</file>
- <file alias="images/threat_white.png">data/images/threat_white.png</file>
- <file alias="images/black_wall.png">data/images/black_wall.png</file>
diff --git a/games-board/chessx/files/chessx-1.5.4-system-quazip.patch b/games-board/chessx/files/chessx-1.5.4-system-quazip.patch
deleted file mode 100644
index 6610d3c8e420..000000000000
--- a/games-board/chessx/files/chessx-1.5.4-system-quazip.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-Index: chessx.pro
-===================================================================
---- a/chessx.pro
-+++ b/chessx.pro
-@@ -39,7 +39,6 @@ static { # Everything below takes effect
- message("Static build.")
- }
-
--DEFINES += QUAZIP_STATIC
- DEFINES += QT_NO_CAST_TO_ASCII
- DEFINES *= QT_USE_QSTRINGBUILDER
-
-@@ -156,22 +155,6 @@ HEADERS += src/database/board.h \
- src/gui/engineoptionlist.h \
- src/gui/helpbrowser.h \
- src/database/downloadmanager.h \
-- src/quazip/zip.h \
-- src/quazip/unzip.h \
-- src/quazip/quazipnewinfo.h \
-- src/quazip/quazipfileinfo.h \
-- src/quazip/quazipfile.h \
-- src/quazip/quazipdir.h \
-- src/quazip/quazip.h \
-- src/quazip/quazip_global.h \
-- src/quazip/quaziodevice.h \
-- src/quazip/quagzipfile.h \
-- src/quazip/quacrc32.h \
-- src/quazip/quachecksum32.h \
-- src/quazip/quaadler32.h \
-- src/quazip/JlCompress.h \
-- src/quazip/ioapi.h \
-- src/quazip/crypt.h \
- src/gui/toolmainwindow.h \
- src/gui/playerlistwidget.h \
- src/gui/qled.h \
-@@ -321,16 +304,6 @@ SOURCES += src/database/board.cpp \
- src/gui/engineoptionlist.cpp \
- src/gui/helpbrowser.cpp \
- src/database/downloadmanager.cpp \
-- src/quazip/quazipnewinfo.cpp \
-- src/quazip/quazipfile.cpp \
-- src/quazip/quazipdir.cpp \
-- src/quazip/quazip.cpp \
-- src/quazip/quaziodevice.cpp \
-- src/quazip/quagzipfile.cpp \
-- src/quazip/quacrc32.cpp \
-- src/quazip/quaadler32.cpp \
-- src/quazip/qioapi.cpp \
-- src/quazip/JlCompress.cpp \
- src/gui/toolmainwindow.cpp \
- src/gui/playerlistwidget.cpp \
- src/gui/qled.cpp \
-@@ -401,8 +374,6 @@ SOURCES += src/database/board.cpp \
- src/gui/historylabel.cpp \
- src/database/streamdatabase.cpp \
- src/database/refcount.cpp \
-- src/quazip/unzip.cpp \
-- src/quazip/zip.cpp \
- src/database/arenabook.cpp \
- src/gui/gamelistsortmodel.cpp \
- src/gui/listwidgetex.cpp
-@@ -412,8 +383,9 @@ INCLUDEPATH += src/database
- INCLUDEPATH += src/guess
- INCLUDEPATH += src/gui
- INCLUDEPATH += src/dialogs
--INCLUDEPATH += src/quazip
--INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib
-+
-+CONFIG += link_pkgconfig
-+PKGCONFIG += quazip1-qt5
-
- win32 {
- # DEFINES += ZLIB_WINAPI
diff --git a/games-board/chessx/files/chessx-1.6.2-install.patch b/games-board/chessx/files/chessx-1.6.2-install.patch
new file mode 100644
index 000000000000..9218f61f25c6
--- /dev/null
+++ b/games-board/chessx/files/chessx-1.6.2-install.patch
@@ -0,0 +1,22 @@
+--- a/chessx.pro 2024-09-06 00:12:14.000000000 +0200
++++ b/chessx.pro 2025-01-03 22:31:22.225021206 +0100
+@@ -67,18 +67,13 @@
+ BINDIR = $$PREFIX/bin
+ DATADIR = $$PREFIX/share
+
+- INSTALLS += appdata desktop icons binfiles
++ INSTALLS += appdata desktop binfiles
+
+ appdata.files = unix/io.sourceforge.ChessX.metainfo.xml
+ appdata.path = $$DATADIR/metainfo
+ desktop.files = unix/chessx.desktop
+ desktop.path = $$DATADIR/applications
+
+- icons.path = $$DATADIR/icons/hicolor
+- icons.commands = install -Dm644 data/images/chessx.png $${icons.path}/128x128/apps/chessx.png; \
+- install -Dm644 data/images/chessx-32.png $${icons.path}/32x32/apps/chessx.png; \
+- install -Dm644 data/images/chessx-64.png $${icons.path}/64x64/apps/chessx.png;
+-
+ binfiles.files = release/chessx
+ binfiles.path = $$BINDIR
+
diff --git a/games-board/chessx/files/chessx-1.6.2-system-quazip-zlib.patch b/games-board/chessx/files/chessx-1.6.2-system-quazip-zlib.patch
new file mode 100644
index 000000000000..f17383a3dee5
--- /dev/null
+++ b/games-board/chessx/files/chessx-1.6.2-system-quazip-zlib.patch
@@ -0,0 +1,66 @@
+--- a/chessx.pro 2024-09-06 00:12:14.000000000 +0200
++++ b/chessx.pro 2025-01-03 21:51:05.872265212 +0100
+@@ -41,7 +41,6 @@
+ QT += multimedia
+ }
+
+-DEFINES += QUAZIP_STATIC
+ DEFINES += QT_NO_CAST_TO_ASCII
+ DEFINES *= QT_USE_QSTRINGBUILDER
+
+@@ -342,23 +341,7 @@
+ src/gui/textbrowserex.h \
+ src/gui/textedit.h \
+ src/gui/toolmainwindow.h \
+- src/gui/translatingslider.h \
+- src/quazip/JlCompress.h \
+- src/quazip/crypt.h \
+- src/quazip/ioapi.h \
+- src/quazip/quaadler32.h \
+- src/quazip/quachecksum32.h \
+- src/quazip/quacrc32.h \
+- src/quazip/quagzipfile.h \
+- src/quazip/quaziodevice.h \
+- src/quazip/quazip.h \
+- src/quazip/quazip_global.h \
+- src/quazip/quazipdir.h \
+- src/quazip/quazipfile.h \
+- src/quazip/quazipfileinfo.h \
+- src/quazip/quazipnewinfo.h \
+- src/quazip/unzip.h \
+- src/quazip/zip.h
++ src/gui/translatingslider.h
+
+ SOURCES += \
+ src/database/analysis.cpp \
+@@ -512,26 +495,15 @@
+ src/gui/testadapter.cpp \
+ src/gui/textedit.cpp \
+ src/gui/toolmainwindow.cpp \
+- src/gui/translatingslider.cpp \
+- src/quazip/JlCompress.cpp \
+- src/quazip/qioapi.cpp \
+- src/quazip/quaadler32.cpp \
+- src/quazip/quacrc32.cpp \
+- src/quazip/quagzipfile.cpp \
+- src/quazip/quaziodevice.cpp \
+- src/quazip/quazip.cpp \
+- src/quazip/quazipdir.cpp \
+- src/quazip/quazipfile.cpp \
+- src/quazip/quazipnewinfo.cpp \
+- src/quazip/unzip.cpp \
+- src/quazip/zip.cpp
++ src/gui/translatingslider.cpp
+
+ INCLUDEPATH += src/database
+ INCLUDEPATH += src/guess
+ INCLUDEPATH += src/gui
+ INCLUDEPATH += src/dialogs
+-INCLUDEPATH += src/quazip
+-INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/zlib
++
++CONFIG += link_pkgconfig
++PKGCONFIG += quazip1-qt6
+
+ win32 {
+ # DEFINES += ZLIB_WINAPI
diff --git a/games-board/gnome-chess/Manifest b/games-board/gnome-chess/Manifest
index af17d94f0862..3b7b302547b7 100644
--- a/games-board/gnome-chess/Manifest
+++ b/games-board/gnome-chess/Manifest
@@ -1,2 +1,2 @@
-DIST gnome-chess-43.2.tar.xz 743344 BLAKE2B 755d70ef964f6337acf852edc6fdbe69fbf3b566dfc36fa697d4c4ecdeeae5df5d1979e54e3304e89963fab01655979a55ac4f827bb1f1b506ab3cea8d147117 SHA512 e10439dd39e61436e3174e1d599d30d06955e65b696b9c37a0e9a8f1a41d19f71f33cca83ec9cc8fe2d8b516c2ec113f22bf3ddd1f1f465286cbe5bde8bcc0a2
DIST gnome-chess-46.0.tar.xz 782212 BLAKE2B dec141cac14b59b02a3c4e0f10b09e450bf962ff5b688a7cfb31b274e1b92bd0c09a6afa3a32bb21a137114edb349ff3ac7aa88918481374fe2d4baeeca7cef2 SHA512 e605b9750fdc77a0d2b6973f127fb2cf5fadb15080add728c80a8be5ce02035ff6cadb0351751a0612f09632602fe532405d62c68828fd0ec4bf83b9bd11301a
+DIST gnome-chess-47.0.tar.xz 825264 BLAKE2B 6fdbfe37daa437f2220969306ffbf46f7ce6bd53c02a5def4da0a4c7b705ba839299612289d5e5fb8f10624fe7981129b28566c7df5f5eec30e28186620c310c SHA512 3989d22b6b2c9ec9efec35deb4304176e8fe79d87623809bd6a926cf4b77a9ac866d2c059b8d07bda9179632891112124e1b657f930dbaac3e03e9ee6d5da090
diff --git a/games-board/gnome-chess/gnome-chess-46.0.ebuild b/games-board/gnome-chess/gnome-chess-46.0.ebuild
index 888da6547d44..f3af7ac07bd4 100644
--- a/games-board/gnome-chess/gnome-chess-46.0.ebuild
+++ b/games-board/gnome-chess/gnome-chess-46.0.ebuild
@@ -10,7 +10,7 @@ HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-chess"
LICENSE="GPL-3+"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86"
+KEYWORDS="amd64 arm64 ~loong ~riscv x86"
RDEPEND="
>=dev-libs/glib-2.44:2
diff --git a/games-board/gnome-chess/gnome-chess-43.2.ebuild b/games-board/gnome-chess/gnome-chess-47.0.ebuild
index c9335dbc4a95..5af7622368f2 100644
--- a/games-board/gnome-chess/gnome-chess-43.2.ebuild
+++ b/games-board/gnome-chess/gnome-chess-47.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -6,16 +6,16 @@ EAPI=8
inherit gnome.org gnome2-utils meson readme.gentoo-r1 vala xdg
DESCRIPTION="Play the classic two-player boardgame of chess"
-HOMEPAGE="https://wiki.gnome.org/Apps/Chess https://gitlab.gnome.org/GNOME/gnome-chess"
+HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-chess"
LICENSE="GPL-3+"
SLOT="0"
-KEYWORDS="amd64 arm64 ~loong ~riscv x86"
+KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86"
RDEPEND="
>=dev-libs/glib-2.44:2
- gui-libs/gtk:4
- >=gui-libs/libadwaita-1.0.0:1
+ >=gui-libs/gtk-4.10:4
+ >=gui-libs/libadwaita-1.5:1
>=gnome-base/librsvg-2.46.0:2
x11-libs/pango
"
diff --git a/games-board/gnome-mahjongg/Manifest b/games-board/gnome-mahjongg/Manifest
index 6fa97c5e574c..ecd13b33f08d 100644
--- a/games-board/gnome-mahjongg/Manifest
+++ b/games-board/gnome-mahjongg/Manifest
@@ -1,2 +1,2 @@
-DIST gnome-mahjongg-3.40.0.tar.xz 3156788 BLAKE2B 3a8dd05001d75a7fa7663556dcad135b89786333c4c89ee131e7d63dafaee2a738f0c573199a69e6bc015036270a94c8be6cd6d48630faddba297710f48931d0 SHA512 9102d48d7a1cd2808a4de86cb3cb73c30bbe769bdc58f2a69914700218972a8c96cf18b5165cc20eb9a33866a70c5b2daee43cbecf758526d89a0b8720ef5c9a
DIST gnome-mahjongg-3.40.1.tar.xz 3200016 BLAKE2B bae6e0aa496918aa47c1f89626a01bdbc24405b4435cd66ec6374f26e2a96da3d397605a5535e80a76e13beb0ada612d80882f65594090aca8dd56cee3b1b4cc SHA512 051439dccc5723a07e57bdba80cc0a3893b1b515c0bdda0289eeb9851ecbed4440042d452f5d057a90a53c71be0b810ad932b7c62e549c2bc5e24ba6c174abc1
+DIST gnome-mahjongg-47.0.tar.xz 2384408 BLAKE2B 0f3960488526a6d288421fe22201acec3df5a605ffb0b9b972a02a49d917207ccb20c9b0942c4f54a9831de4b61c874497f9261e1f0dd9abf74e256fcdbc40ff SHA512 b80d496be4dedec32afd66ede02849ab12c9d9dcf98b5062736539fd54c149665520e73b53346209eb3fe65d09a1fa4df7e11af7654bc51cc3792d308c99d8ea
diff --git a/games-board/gnome-mahjongg/gnome-mahjongg-3.40.0.ebuild b/games-board/gnome-mahjongg/gnome-mahjongg-47.0.ebuild
index c8a8d04a8532..b301a07b5aa2 100644
--- a/games-board/gnome-mahjongg/gnome-mahjongg-3.40.0.ebuild
+++ b/games-board/gnome-mahjongg/gnome-mahjongg-47.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -6,16 +6,16 @@ EAPI=8
inherit gnome.org gnome2-utils meson vala xdg
DESCRIPTION="Disassemble a pile of tiles by removing matching pairs"
-HOMEPAGE="https://wiki.gnome.org/Apps/Mahjongg"
+HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-mahjongg"
LICENSE="GPL-2+ CC-BY-SA-3.0"
SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~loong ~riscv x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
RDEPEND="
>=dev-libs/glib-2.40.0:2
- >=gui-libs/gtk-4.5.0:4
- gui-libs/libadwaita:1
+ >=gui-libs/gtk-4.14.0:4
+ >=gui-libs/libadwaita-1.5.0:1
>=gnome-base/librsvg-2.46.0:2
"
DEPEND="${RDEPEND}
@@ -25,6 +25,7 @@ BDEPEND="
$(vala_depend)
dev-libs/appstream-glib
dev-util/itstool
+ gui-libs/libadwaita:1[vala]
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
"
diff --git a/games-board/gnushogi/files/gnushogi-1.4.1-makefile.patch b/games-board/gnushogi/files/gnushogi-1.4.1-makefile.patch
new file mode 100644
index 000000000000..e6b046ba7dd3
--- /dev/null
+++ b/games-board/gnushogi/files/gnushogi-1.4.1-makefile.patch
@@ -0,0 +1,72 @@
+Fix for the build system.
+Allows propagating errors upwards, replaces sometimes dubious
+if well-meaning seds from ebuild
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -44,19 +44,19 @@
+ #
+
+ gnushogi_compile:
+- -cd $(GNUSHOGIDIR) && $(MAKE) $(PROGNAME)
++ $(MAKE) -C $(GNUSHOGIDIR) $(PROGNAME)
+
+ pat2inc:
+- -cd $(GNUSHOGIDIR) && $(MAKE) pat2inc
++ $(MAKE) -C $(GNUSHOGIDIR) pat2inc
+
+ sizetest:
+- -cd $(GNUSHOGIDIR) && $(MAKE) sizetest
++ $(MAKE) -C $(GNUSHOGIDIR) sizetest
+
+ xshogi_compile:
+- -cd $(XSHOGIDIR) && $(MAKE)
++ $(MAKE) -C $(XSHOGIDIR)
+
+-bbk:
++bbk: gnushogi_compile pat2inc sizetest
+- -cd $(GNUSHOGIDIR) && $(MAKE) $(PROGNAME).bbk
++ $(MAKE) -C $(GNUSHOGIDIR) $(PROGNAME).bbk
+
+
+ #
+@@ -73,10 +73,10 @@
+ install: gnushogi_install @XSHOGIINSTALL@
+
+ gnushogi_install:
+- -cd $(GNUSHOGIDIR) && $(MAKE) install
++ $(MAKE) -C $(GNUSHOGIDIR) install
+
+ xshogi_install: $(XSHOGIDIR)/xshogi
+- -cd $(XSHOGIDIR) && $(MAKE) install
++ $(MAKE) -C $(XSHOGIDIR) install
+
+
+
+@@ -87,13 +87,13 @@
+ clean: gnushogi_clean @XSHOGICLEAN@ doc_clean
+
+ gnushogi_clean:
+- cd $(GNUSHOGIDIR) && $(MAKE) clean
++ $(MAKE) -C $(GNUSHOGIDIR) clean
+
+ xshogi_clean:
+- cd $(XSHOGIDIR) && $(MAKE) clean
++ $(MAKE) -C $(XSHOGIDIR) clean
+
+ doc_clean:
+- cd $(BUILDROOT)/doc && $(MAKE) clean
++ $(MAKE) -C $(BUILDROOT)/doc clean
+
+
+ #
+--- a/gnushogi/Makefile.in
++++ b//gnushogi/Makefile.in
+@@ -51,7 +51,7 @@
+
+ # Where the language description, the book, and the
+ # persistent hashtable live.
+-LIBDIR = $(prefix)/lib/$(PROGNAME)
++LIBDIR = @libdir@
+
+ # Where the man page goes.
+ MANDIR = $(prefix)/man/man6
diff --git a/games-board/gnushogi/files/gnushogi-1.4.1-xshogi-parser.patch b/games-board/gnushogi/files/gnushogi-1.4.1-xshogi-parser.patch
new file mode 100644
index 000000000000..3b1f865bb5a7
--- /dev/null
+++ b/games-board/gnushogi/files/gnushogi-1.4.1-xshogi-parser.patch
@@ -0,0 +1,25 @@
+Fix compilation with modern C: add correct function declarations
+https://bugs.gentoo.org/883893
+https://bugs.gentoo.org/930372
+https://bugs.gentoo.org/932280
+--- a/xshogi/parser.y
++++ b/xshogi/parser.y
+@@ -70,7 +70,9 @@
+
+ enum { False, True };
+
+-static void yyerror();
++static void yyerror(char *);
++extern int yyparse (void);
++extern int yylex (void);
+
+ static ShogiMove move_type;
+ static int from_x, from_y, to_x, to_y;
+@@ -88,6 +90,7 @@
+ extern void SendToProgram(char *message, FILE *fp);
+ extern void MakeMove(ShogiMove *move_type, int from_x, int from_y,
+ int to_x, int to_y);
++extern void DisplayMessage(char *message, int toRemotePlayer);
+
+ %}
+
diff --git a/games-board/gnushogi/gnushogi-1.4.1-r1.ebuild b/games-board/gnushogi/gnushogi-1.4.1-r2.ebuild
index dbee91130b0c..4e53dacb0b22 100644
--- a/games-board/gnushogi/gnushogi-1.4.1-r1.ebuild
+++ b/games-board/gnushogi/gnushogi-1.4.1-r2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit desktop
@@ -22,18 +22,11 @@ BDEPEND="
>=sys-devel/bison-1.34
app-alternatives/lex"
-PATCHES=( "${FILESDIR}"/${PN}-1.4.1-fno-common.patch )
-
-src_prepare() {
- default
-
- sed -i \
- -e '/^bbk:/s/$/ gnushogi_compile pat2inc sizetest/' \
- Makefile.in || die
- sed -i \
- -e "/^LIBDIR/s:=.*:=\"$(get_libdir)\":" \
- gnushogi/Makefile.in || die
-}
+PATCHES=(
+ "${FILESDIR}"/"${P}-fno-common.patch"
+ "${FILESDIR}"/"${P}-makefile.patch"
+ "${FILESDIR}"/"${P}-xshogi-parser.patch"
+)
src_configure() {
econf \
diff --git a/games-board/jja/jja-0.9.1-r2.ebuild b/games-board/jja/jja-0.9.1-r2.ebuild
index d20ad9bfc7ca..5e3f7a7f27db 100644
--- a/games-board/jja/jja-0.9.1-r2.ebuild
+++ b/games-board/jja/jja-0.9.1-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023-2024 Gentoo Authors
+# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -244,7 +244,7 @@ CRATES="
zstd@0.13.1
"
-LLVM_COMPAT=( {16..18} )
+LLVM_COMPAT=( {16..19} )
inherit cargo llvm-r1
@@ -266,8 +266,8 @@ fi
# rocksdb needs clang
DEPEND+="$(llvm_gen_dep '
- sys-devel/clang:${LLVM_SLOT}
- sys-devel/llvm:${LLVM_SLOT}
+ llvm-core/clang:${LLVM_SLOT}
+ llvm-core/llvm:${LLVM_SLOT}
')
sys-libs/liburing"
RDEPEND=${DEPEND}
diff --git a/games-board/jja/jja-9999.ebuild b/games-board/jja/jja-9999.ebuild
index 89912c6da7de..2fa46e88b6c2 100644
--- a/games-board/jja/jja-9999.ebuild
+++ b/games-board/jja/jja-9999.ebuild
@@ -28,8 +28,8 @@ fi
# rocksdb needs clang
DEPEND+="$(llvm_gen_dep '
- sys-devel/clang:${LLVM_SLOT}
- sys-devel/llvm:${LLVM_SLOT}
+ llvm-core/clang:${LLVM_SLOT}
+ llvm-core/llvm:${LLVM_SLOT}
')
sys-libs/liburing"
RDEPEND=${DEPEND}
diff --git a/games-board/pysolfc/Manifest b/games-board/pysolfc/Manifest
index 648597955657..d159727153c4 100644
--- a/games-board/pysolfc/Manifest
+++ b/games-board/pysolfc/Manifest
@@ -1,3 +1,3 @@
-DIST PySolFC-3.0.0.tar.xz 33364860 BLAKE2B 964e0c7642d713f97c0655597ca893a6396d6c4968fcc9dc0c7487948bb5f94e349f70a7cb5b006760653719d6a51775f5e2944b48f84d45b5b3dda22be1b1e9 SHA512 f7c9bc6dff71047516979a6d9fb559c616d5d76c0b0a476564114f8b302788145599cc89cabbfbdc110a5a4eab6148bddb57a4847f40077ccbbe972f36b811b0
+DIST PySolFC-3.1.0.tar.xz 32697568 BLAKE2B 9c303b24b9d3bbb2f10d66146a0e848158bb1dfa155aeeacbad4169fbec18d8bfd908b086836bafae93ec52a96c2a973550577dfc46ac8510614965637a78721 SHA512 fa8ccc06a8813e9935a7d3034fca1cf8723b5457b8ee575cce202911c5cef265f2d0b297b279ceae398a142b9da56d95f5bdbf193df18cb5acb6b8f285420259
DIST PySolFC-Cardsets--Minimal-3.0.0.tar.xz 25188212 BLAKE2B a047a151b5c4256cfb0300c6bc75713db9aab63e4e76ba99233a59f39a9a7017406320a0e3b874b72084b3bccd14ca303f7af9666652efee85cf39803ad8c43c SHA512 9d4bacd072b450b29b9f1bec4557121a3647c2f837aeb6e249f452cb886467c5e7ca36dd36a78ea69a5c9df6f30d5245e12681d9d02fc9da2ece09c25d77e787
DIST PySolFC-Cardsets-3.0.tar.bz2 87075654 BLAKE2B 527463ba2abe22c553753f7cb8f6608867a3da01532461cd29b5cf007a49c242cbdbe82f50751283d17a46ecb15b263e324fbc1288b5c5eb3cc9bdc1cfc9b257 SHA512 4544bc8b890d0cd41d66bd513faf86c21455f4d0f154e567fd689917f2f3ca56fadf3ca9372bc80c5b1d5387aa4abfab7952e73024a3e41101112e716f80b762
diff --git a/games-board/pysolfc/pysolfc-3.0.0.ebuild b/games-board/pysolfc/pysolfc-3.1.0.ebuild
index adff3487f9f4..991f5d45ca17 100644
--- a/games-board/pysolfc/pysolfc-3.0.0.ebuild
+++ b/games-board/pysolfc/pysolfc-3.1.0.ebuild
@@ -7,7 +7,6 @@ DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
PYTHON_REQ_USE="tk"
-
inherit distutils-r1 xdg
MY_PN="PySolFC"
@@ -64,7 +63,8 @@ python_install_all() {
# html files are used at runtime, keep at default location
dosym -r /usr/share/{${MY_PN},doc/${PF}}/html
- # russian translation is not currently displaying right
+ # russian translation is not currently displaying right?
+ # (please if works fine for you and this should be reverted)
# https://forums.gentoo.org/viewtopic-t-1142910.html
rm -- "${ED}"/usr/share/locale/ru/LC_MESSAGES/pysol.mo || die
}
diff --git a/games-board/stockfish/files/stockfish-17-gcc15.patch b/games-board/stockfish/files/stockfish-17-gcc15.patch
new file mode 100644
index 000000000000..c92918335ada
--- /dev/null
+++ b/games-board/stockfish/files/stockfish-17-gcc15.patch
@@ -0,0 +1,40 @@
+https://bugs.gentoo.org/940504
+https://github.com/official-stockfish/Stockfish/issues/5714
+https://github.com/official-stockfish/Stockfish/commit/1776448917e49b922a762d2d08c00a3f3be10205
+
+From 1776448917e49b922a762d2d08c00a3f3be10205 Mon Sep 17 00:00:00 2001
+From: Disservin <disservin.social@gmail.com>
+Date: Fri, 13 Dec 2024 17:00:05 +0100
+Subject: [PATCH] Move Embedded Net Data out of Anon Namespace
+
+fixes https://github.com/official-stockfish/Stockfish/issues/5714
+
+closes https://github.com/official-stockfish/Stockfish/pull/5715
+
+No functional change
+---
+ src/nnue/network.cpp | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/nnue/network.cpp b/src/nnue/network.cpp
+index 0a4452f6604..01cf2516d4a 100644
+--- a/nnue/network.cpp
++++ b/nnue/network.cpp
+@@ -38,7 +38,6 @@
+ #include "nnue_common.h"
+ #include "nnue_misc.h"
+
+-namespace {
+ // Macro to embed the default efficiently updatable neural network (NNUE) file
+ // data in the engine binary (using incbin.h, by Dale Weiler).
+ // This macro invocation will declare the following three variables
+@@ -58,6 +57,8 @@ const unsigned char* const gEmbeddedNNUESmallEnd = &gEmbeddedNNUESmallData[1
+ const unsigned int gEmbeddedNNUESmallSize = 1;
+ #endif
+
++namespace {
++
+ struct EmbeddedNNUE {
+ EmbeddedNNUE(const unsigned char* embeddedData,
+ const unsigned char* embeddedEnd,
+
diff --git a/games-board/stockfish/stockfish-16-r1.ebuild b/games-board/stockfish/stockfish-16-r1.ebuild
index 87fef36d749c..ff7e0ac8d26a 100644
--- a/games-board/stockfish/stockfish-16-r1.ebuild
+++ b/games-board/stockfish/stockfish-16-r1.ebuild
@@ -22,6 +22,12 @@ DEPEND="|| ( app-arch/unzip app-arch/zip )"
S="${WORKDIR}/Stockfish-sf_${PV}/src"
+pkg_setup() {
+ if ! tc-is-clang && ! tc-is-gcc; then
+ die "Unsupported compiler: $(tc-getCC)"
+ fi
+}
+
src_prepare() {
default
@@ -66,11 +72,16 @@ src_compile() {
use ppc && my_arch=ppc
use ppc64 && my_arch=ppc64
+ # Bug 919781: COMP is a fixed string like clang/gcc to set tools for PGO
+ local comp
+ tc-is-gcc && comp="gcc"
+ tc-is-clang && comp="clang"
+
# There's a nice hack in the Makefile that overrides the value of CXX with
# COMPILER to support Travis CI and we abuse it to make sure that we
# build with our compiler of choice.
emake profile-build ARCH="${my_arch}" \
- COMP="$(tc-getCXX)" \
+ COMP="${comp}" \
COMPILER="$(tc-getCXX)" \
debug=$(usex debug "yes" "no") \
optimize=$(usex optimize "yes" "no")
diff --git a/games-board/stockfish/stockfish-16.1.ebuild b/games-board/stockfish/stockfish-16.1.ebuild
index 8d66d9cfa7cf..4cc6280b6b5d 100644
--- a/games-board/stockfish/stockfish-16.1.ebuild
+++ b/games-board/stockfish/stockfish-16.1.ebuild
@@ -26,6 +26,12 @@ DEPEND="|| ( app-arch/unzip app-arch/zip )"
S="${WORKDIR}/Stockfish-sf_${PV}/src"
+pkg_setup() {
+ if ! tc-is-clang && ! tc-is-gcc; then
+ die "Unsupported compiler: $(tc-getCC)"
+ fi
+}
+
src_prepare() {
default
@@ -72,11 +78,16 @@ src_compile() {
use ppc && my_arch=ppc
use ppc64 && my_arch=ppc64
+ # Bug 919781: COMP is a fixed string like clang/gcc to set tools for PGO
+ local comp
+ tc-is-gcc && comp="gcc"
+ tc-is-clang && comp="clang"
+
# There's a nice hack in the Makefile that overrides the value of CXX with
# COMPILER to support Travis CI and we abuse it to make sure that we
# build with our compiler of choice.
emake profile-build ARCH="${my_arch}" \
- COMP="$(tc-getCXX)" \
+ COMP="${comp}" \
COMPILER="$(tc-getCXX)" \
debug=$(usex debug "yes" "no") \
optimize=$(usex optimize "yes" "no")
diff --git a/games-board/stockfish/stockfish-16.ebuild b/games-board/stockfish/stockfish-16.ebuild
index 4cabca417965..9103928f0daa 100644
--- a/games-board/stockfish/stockfish-16.ebuild
+++ b/games-board/stockfish/stockfish-16.ebuild
@@ -22,6 +22,12 @@ DEPEND="|| ( app-arch/unzip app-arch/zip )"
S="${WORKDIR}/Stockfish-sf_${PV}/src"
+pkg_setup() {
+ if ! tc-is-clang && ! tc-is-gcc; then
+ die "Unsupported compiler: $(tc-getCC)"
+ fi
+}
+
src_prepare() {
default
@@ -61,11 +67,16 @@ src_compile() {
use ppc && my_arch=ppc
use ppc64 && my_arch=ppc64
+ # Bug 919781: COMP is a fixed string like clang/gcc to set tools for PGO
+ local comp
+ tc-is-gcc && comp="gcc"
+ tc-is-clang && comp="clang"
+
# There's a nice hack in the Makefile that overrides the value of CXX with
# COMPILER to support Travis CI and we abuse it to make sure that we
# build with our compiler of choice.
emake profile-build ARCH="${my_arch}" \
- COMP="$(tc-getCXX)" \
+ COMP="${comp}" \
COMPILER="$(tc-getCXX)" \
debug=$(usex debug "yes" "no") \
optimize=$(usex optimize "yes" "no")
diff --git a/games-board/stockfish/stockfish-17-r1.ebuild b/games-board/stockfish/stockfish-17-r1.ebuild
new file mode 100644
index 000000000000..8f2125616f25
--- /dev/null
+++ b/games-board/stockfish/stockfish-17-r1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+NNUE_FILES="nn-1111cefa1111.nnue nn-37f18f62d772.nnue"
+DESCRIPTION="Free UCI chess engine, claimed to be the strongest in the world"
+HOMEPAGE="https://stockfishchess.org/"
+SRC_URI="https://github.com/official-stockfish/Stockfish/archive/sf_${PV}.tar.gz -> ${P}.tar.gz"
+for i in ${NNUE_FILES}; do
+ SRC_URI+=" https://tests.stockfishchess.org/api/nn/${i} -> ${P}-${i}"
+done
+S="${WORKDIR}/Stockfish-sf_${PV}/src"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86"
+IUSE="cpu_flags_arm_v7 cpu_flags_x86_avx2 cpu_flags_x86_popcnt cpu_flags_x86_sse cpu_flags_x86_avx512f"
+IUSE+=" cpu_flags_x86_avx512dq debug general-32 general-64 +optimize"
+
+BDEPEND="|| ( app-arch/unzip app-arch/zip )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc15.patch
+)
+
+pkg_setup() {
+ if ! tc-is-clang && ! tc-is-gcc; then
+ die "Unsupported compiler: $(tc-getCC)"
+ fi
+}
+
+src_prepare() {
+ default
+
+ # remove config sanity check that doesn't like our COMPILER settings
+ sed -i -e 's/ config-sanity//g' Makefile || die
+
+ for i in $NNUE_FILES; do
+ cp "${DISTDIR}"/${P}-${i} ${i} || die "copying the nnue file failed"
+ done
+
+ # prevent pre-stripping
+ sed -e 's:-strip $(BINDIR)/$(EXE)::' -i Makefile \
+ || die 'failed to disable stripping in the Makefile'
+
+ # Makefile is a bit optimistic
+ sed -e 's:-flto=full:-flto:g' -i Makefile || die
+}
+
+src_compile() {
+ local my_arch
+
+ # generic unoptimized first
+ use general-32 && my_arch=general-32
+ use general-64 && my_arch=general-64
+
+ # x86
+ use x86 && my_arch=x86-32-old
+ use cpu_flags_x86_sse && my_arch=x86-32
+
+ # amd64
+ use amd64 && my_arch=x86-64
+ use cpu_flags_x86_popcnt && my_arch=x86-64-modern
+
+ # both bmi2 and avx2 are part of hni (haswell new instructions)
+ use cpu_flags_x86_avx2 && my_arch=x86-64-bmi2
+
+ # avx512
+ # we currently can't express 'avx512vnni' 'avx512dq' 'avx512f' 'avx512bw' 'avx512vl'
+ # so only enable basic support
+ use cpu_flags_x86_avx512f && use cpu_flags_x86_avx512dq && my_arch=x86-64-avx512
+
+ # other architectures
+ use cpu_flags_arm_v7 && my_arch=armv7
+ use ppc && my_arch=ppc
+ use ppc64 && my_arch=ppc64
+
+ # Bug 919781: COMP is a fixed string like clang/gcc to set tools for PGO
+ local comp
+ tc-is-gcc && comp="gcc"
+ tc-is-clang && comp="clang"
+
+ # There's a nice hack in the Makefile that overrides the value of CXX with
+ # COMPILER to support Travis CI and we abuse it to make sure that we
+ # build with our compiler of choice.
+ emake profile-build ARCH="${my_arch}" \
+ COMP="${comp}" \
+ COMPILER="$(tc-getCXX)" \
+ debug=$(usex debug "yes" "no") \
+ optimize=$(usex optimize "yes" "no")
+}
+
+src_install() {
+ dobin "${PN}"
+ dodoc ../AUTHORS ../README.md
+}
diff --git a/games-board/stockfish/stockfish-17.ebuild b/games-board/stockfish/stockfish-17.ebuild
index bbc0c90cbf73..b535bb5e9f54 100644
--- a/games-board/stockfish/stockfish-17.ebuild
+++ b/games-board/stockfish/stockfish-17.ebuild
@@ -26,6 +26,12 @@ DEPEND="|| ( app-arch/unzip app-arch/zip )"
S="${WORKDIR}/Stockfish-sf_${PV}/src"
+pkg_setup() {
+ if ! tc-is-clang && ! tc-is-gcc; then
+ die "Unsupported compiler: $(tc-getCC)"
+ fi
+}
+
src_prepare() {
default
@@ -72,11 +78,16 @@ src_compile() {
use ppc && my_arch=ppc
use ppc64 && my_arch=ppc64
+ # Bug 919781: COMP is a fixed string like clang/gcc to set tools for PGO
+ local comp
+ tc-is-gcc && comp="gcc"
+ tc-is-clang && comp="clang"
+
# There's a nice hack in the Makefile that overrides the value of CXX with
# COMPILER to support Travis CI and we abuse it to make sure that we
# build with our compiler of choice.
emake profile-build ARCH="${my_arch}" \
- COMP="$(tc-getCXX)" \
+ COMP="${comp}" \
COMPILER="$(tc-getCXX)" \
debug=$(usex debug "yes" "no") \
optimize=$(usex optimize "yes" "no")
diff --git a/games-board/xscrabble/Manifest b/games-board/xscrabble/Manifest
index 2bdb5459065c..21ab5eec2890 100644
--- a/games-board/xscrabble/Manifest
+++ b/games-board/xscrabble/Manifest
@@ -1,3 +1,4 @@
+DIST xscrabble-2.10-gcc15.patch 32518 BLAKE2B 6f548b1195ceb58bee0317d59ed3a72abec858d42ca59828c2dc64d10cc9504c2b00a8df093c4789ed35f40b5f7c413ed7bf781483d9de76a3a38b7c9b145f4c SHA512 d20a04e6ba036b9f69af315ef3c0ae160967a2fc66c71b6921967097de7dbffe77f8da1014ad37d81a3a58bdb8805f428db659c572e751fd8802373df0a60870
DIST xscrabble-2.10.tgz 83575 BLAKE2B 0a7ac0713e8b48eaf770d11d8ddf5fc383f870437dbc12b6e90df3fb4c28559e28523f46461e306dde59a68cebf58e854959e58ec688201223eec9825e3c5e7a SHA512 38137b3dfd3156c3748719136a30fbc7f04910538bdbdec3e9d50e3efe326ab7119a45171e0fa2cd95cd81f0642070e2e011c165284766eb7a14bd7d2aa660db
DIST xscrabble_en.tgz 393527 BLAKE2B 3f5b9d8030ba2711e64b2cc015f8662bdcfc2d3155d34b17be243a57e8c7dc3e4ad5fc6414c745654a8ea5771a9914d38bf5ce95b42e9b7daa70907bd9105b06 SHA512 05e4bca6ec2a9b7698f5c266bf5cede574cbef87883d7cac6dc35084fa2976dcd23f3a2215b674b9f36d7c170e6af021c3ec0884f06c9803cd67ec300651ac41
DIST xscrabble_fr.tgz 810737 BLAKE2B 26f5601f5d09232a5145c66d1d359c7a6b389a83f10c1ebcddc7579160d417e0b0b9e5bccf7322128451f3941cdeb2177b26f4ddf9a8224ffd551d95f4a83d72 SHA512 f5425fa8bffec57e6eff16a3d33ae4569fc00343e0ed5e4f4e1e189ed02a5be7416c1549b1978042e030efbfb3a484abcac9479e7fe43de929b11d8ccf8ea3e1
diff --git a/games-board/xscrabble/files/xscrabble-2.10-ranlib.patch b/games-board/xscrabble/files/xscrabble-2.10-ranlib.patch
new file mode 100644
index 000000000000..95bdc85262db
--- /dev/null
+++ b/games-board/xscrabble/files/xscrabble-2.10-ranlib.patch
@@ -0,0 +1,13 @@
+Fail build if compilation failed, use ranlib
+
+--- a/build
++++ b/build
+@@ -36,7 +36,7 @@ if test "$1" = "bin" ; then
+ #define RULES_FILE \"$LIBDIR/en/scrabble_rules\"
+ " > src/config.h
+ xmkmf -a
+- make CC="${CC}" CCOPTIONS="${CFLAGS}" LOCAL_LDFLAGS="${LDFLAGS}"
++ make CC="${CC}" AR="${AR} cq" RANLIB="${RANLIB}" CCOPTIONS="${CFLAGS}" LOCAL_LDFLAGS="${LDFLAGS}" || exit 1
+ echo "
+ Now, type './build install' to install programs in $BINDIR
+ "
diff --git a/games-board/xscrabble/xscrabble-2.10-r4.ebuild b/games-board/xscrabble/xscrabble-2.10-r5.ebuild
index d8a308d70fe6..d5451b99b18c 100644
--- a/games-board/xscrabble/xscrabble-2.10-r4.ebuild
+++ b/games-board/xscrabble/xscrabble-2.10-r5.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit flag-o-matic toolchain-funcs
@@ -9,17 +9,25 @@ DESCRIPTION="An X11 clone of the well-known Scrabble"
HOMEPAGE="http://freshmeat.net/projects/xscrabble/?topic_id=80"
SRC_URI="ftp://ftp.ac-grenoble.fr/ge/educational_games/${P}.tgz
l10n_fr? ( ftp://ftp.ac-grenoble.fr/ge/educational_games/xscrabble_fr.tgz )
- ftp://ftp.ac-grenoble.fr/ge/educational_games/xscrabble_en.tgz"
+ ftp://ftp.ac-grenoble.fr/ge/educational_games/xscrabble_en.tgz
+ https://files.asokolov.org/gentoo/${P}-gcc15.patch
+"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="l10n_fr"
-DEPEND="x11-libs/libXaw"
+DEPEND="
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXpm
+ x11-libs/libXt
+"
RDEPEND="
${DEPEND}
acct-group/gamestat
+ media-fonts/font-misc-misc
!<x11-terms/kterm-6.2.0-r7
"
BDEPEND="
@@ -32,6 +40,8 @@ PATCHES=(
"${FILESDIR}"/${P}-path-fixes.patch
"${FILESDIR}"/${P}-build.patch
"${FILESDIR}"/${P}-implicit-declaration.patch
+ "${DISTDIR}"/${P}-gcc15.patch
+ "${FILESDIR}"/${P}-ranlib.patch
)
src_unpack() {
@@ -48,8 +58,8 @@ src_prepare() {
# Don't strip binaries
sed -i '/install/s/-s //' build || die
- # Respect AR, RANLIB
- sed -i 's/CC="${CC}"/& AR="${AR} cq" RANLIB="${RANLIB}"/' build || die
+
+ sed -i "s|REAL_APPDEFAULTS=|REAL_APPDEFAULTS=${EPREFIX}|" build || die
}
src_configure() {
@@ -79,7 +89,7 @@ src_install() {
for f in "${ED}/usr/$(get_libdir)"/X11/app-defaults/* ; do
[[ -L ${f} ]] && continue
sed -i \
- -e "s:/usr/games/lib/scrabble/:/usr/share/${PN}/:" \
+ -e "s:/usr/games/lib/scrabble/:${EPREFIX}/usr/share/${PN}/:" \
-e "s:fr/eng:fr/en:" \
${f} || die "sed ${f} failed"
done