summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board')
-rw-r--r--games-board/awale/metadata.xml11
-rw-r--r--games-board/four-in-a-row/metadata.xml11
-rw-r--r--games-board/gnome-chess/Manifest1
-rw-r--r--games-board/gnome-chess/gnome-chess-42.0.ebuild58
-rw-r--r--games-board/gnome-chess/gnome-chess-43.0.ebuild2
-rw-r--r--games-board/gnome-chess/metadata.xml11
-rw-r--r--games-board/gnome-mahjongg/metadata.xml11
-rw-r--r--games-board/gnome-mines/gnome-mines-40.1.ebuild2
-rw-r--r--games-board/gnome-mines/metadata.xml11
-rw-r--r--games-board/gnubg/gnubg-1.06.002-r4.ebuild (renamed from games-board/gnubg/gnubg-1.06.002-r3.ebuild)4
-rw-r--r--games-board/gnubg/metadata.xml11
-rw-r--r--games-board/gnushogi/metadata.xml11
-rw-r--r--games-board/iagno/metadata.xml11
-rw-r--r--games-board/phalanx/metadata.xml8
-rw-r--r--games-board/pysolfc/Manifest2
-rw-r--r--games-board/pysolfc/pysolfc-2.18.0.ebuild (renamed from games-board/pysolfc/pysolfc-2.16.0.ebuild)0
-rw-r--r--games-board/tali/Manifest1
-rw-r--r--games-board/tali/metadata.xml11
-rw-r--r--games-board/tali/tali-40.7.ebuild39
-rw-r--r--games-board/xboard/metadata.xml3
-rw-r--r--games-board/xboard/xboard-4.9.1.ebuild2
-rw-r--r--games-board/xgammon/xgammon-0.98-r3.ebuild4
-rw-r--r--games-board/xskat/files/xskat-4.0-clang16.patch8
-rw-r--r--games-board/xskat/xskat-4.0-r2.ebuild21
24 files changed, 101 insertions, 153 deletions
diff --git a/games-board/awale/metadata.xml b/games-board/awale/metadata.xml
index 7c730d47817..b64c8f429d0 100644
--- a/games-board/awale/metadata.xml
+++ b/games-board/awale/metadata.xml
@@ -1,8 +1,11 @@
<?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>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="savannah-nongnu">awale</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/games-board/four-in-a-row/metadata.xml b/games-board/four-in-a-row/metadata.xml
index 7b343b06be8..ae8a866871b 100644
--- a/games-board/four-in-a-row/metadata.xml
+++ b/games-board/four-in-a-row/metadata.xml
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>gnome@gentoo.org</email>
- <name>Gentoo GNOME Desktop</name>
-</maintainer>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gnome-gitlab">GNOME/four-in-a-row</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/games-board/gnome-chess/Manifest b/games-board/gnome-chess/Manifest
index 87ec6d97985..c2caec8e757 100644
--- a/games-board/gnome-chess/Manifest
+++ b/games-board/gnome-chess/Manifest
@@ -1,3 +1,2 @@
-DIST gnome-chess-42.0.tar.xz 661180 BLAKE2B e9fe75df1b298aad17b8b199949cb02eeea5116fa15adfedfac6ed067123ff73aad8ebb33e512f1eef97237232275528da6454de27c335a897e5e3b942a335bf SHA512 08af368b6fd032976c124a8fa8402494e73b004591eae331523a377acf72d98b9827ed189db1c1287f758f41614e878062bd1ab0b8323bf76d19b9cdedacf9a6
DIST gnome-chess-42.1.tar.xz 663036 BLAKE2B 3e42f799d029c4122055420035dd1dadcf5d385ea363ebfe355dc25df31bd5160f2b791d715a2ab371af93e4f5f0a60ac8e818df2686b0f0fc30ae7c0f0795fc SHA512 ab84744910fbf65d50cadb7f63b9e5a5fd4af103adbacd349680c65ae70374ce9766e715656891ae8987ba3c6a694dd632b9154233a417b86a1eeacad875a61d
DIST gnome-chess-43.0.tar.xz 658156 BLAKE2B eb8ddd9966a38ff385a93456621f250adaac1aee580475a136dc33d3182d0a772d50c2bc4bc47981e3b0dcf86ed91a2c8792ab682a5f6af4904a8f075fd520d5 SHA512 710ff09d9f5e23bb3822a203c1f5b11b85e8aa602f7c703f08e7843a79476498ec836e41122f6d601183b7220618bf2f2a2f0dcff62bcb625ae28b20a03d02c8
diff --git a/games-board/gnome-chess/gnome-chess-42.0.ebuild b/games-board/gnome-chess/gnome-chess-42.0.ebuild
deleted file mode 100644
index ec9dc4fc0a9..00000000000
--- a/games-board/gnome-chess/gnome-chess-42.0.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
-VALA_MIN_API_VERSION="0.52"
-
-inherit gnome.org gnome2-utils meson python-any-r1 readme.gentoo-r1 vala xdg
-
-DESCRIPTION="Play the classic two-player boardgame of chess"
-HOMEPAGE="https://wiki.gnome.org/Apps/Chess"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64 arm64 ~riscv x86"
-
-RDEPEND="
- >=dev-libs/glib-2.44:2
- gui-libs/gtk:4
- >=gui-libs/libadwaita-1.0.0:1
- >=gnome-base/librsvg-2.46.0:2
-"
-DEPEND="${RDEPEND}
- gnome-base/librsvg:2[vala]
-"
-BDEPEND="
- ${PYTHON_DEPS}
- $(vala_depend)
- dev-util/itstool
- dev-libs/appstream-glib
- >=sys-devel/gettext-0.19.8
- virtual/pkgconfig
-"
-
-DOC_CONTENTS="To be able to play against a computer you will need
-to install a chess engine package, for example games-board/gnuchess"
-
-src_prepare() {
- default
- vala_setup
- xdg_environment_reset
-}
-
-src_install() {
- meson_src_install
- readme.gentoo_create_doc
-}
-
-pkg_postinst() {
- xdg_pkg_postinst
- gnome2_schemas_update
- readme.gentoo_print_elog
-}
-
-pkg_postrm() {
- xdg_pkg_postrm
- gnome2_schemas_update
-}
diff --git a/games-board/gnome-chess/gnome-chess-43.0.ebuild b/games-board/gnome-chess/gnome-chess-43.0.ebuild
index d649ade62c1..e527c36343b 100644
--- a/games-board/gnome-chess/gnome-chess-43.0.ebuild
+++ b/games-board/gnome-chess/gnome-chess-43.0.ebuild
@@ -10,7 +10,7 @@ HOMEPAGE="https://wiki.gnome.org/Apps/Chess https://gitlab.gnome.org/GNOME/gnome
LICENSE="GPL-3+"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+KEYWORDS="amd64 arm64 ~riscv x86"
RDEPEND="
>=dev-libs/glib-2.44:2
diff --git a/games-board/gnome-chess/metadata.xml b/games-board/gnome-chess/metadata.xml
index 7b343b06be8..2fabf8e266f 100644
--- a/games-board/gnome-chess/metadata.xml
+++ b/games-board/gnome-chess/metadata.xml
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>gnome@gentoo.org</email>
- <name>Gentoo GNOME Desktop</name>
-</maintainer>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gnome-gitlab">GNOME/gnome-chess</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/games-board/gnome-mahjongg/metadata.xml b/games-board/gnome-mahjongg/metadata.xml
index 7b343b06be8..179ce4bbb36 100644
--- a/games-board/gnome-mahjongg/metadata.xml
+++ b/games-board/gnome-mahjongg/metadata.xml
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>gnome@gentoo.org</email>
- <name>Gentoo GNOME Desktop</name>
-</maintainer>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gnome-gitlab">GNOME/gnome-mahjongg</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/games-board/gnome-mines/gnome-mines-40.1.ebuild b/games-board/gnome-mines/gnome-mines-40.1.ebuild
index 00038066279..fb8e0c7eeac 100644
--- a/games-board/gnome-mines/gnome-mines-40.1.ebuild
+++ b/games-board/gnome-mines/gnome-mines-40.1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{8..11} )
inherit gnome.org gnome2-utils meson python-any-r1 vala xdg
DESCRIPTION="Clear hidden mines from a minefield"
diff --git a/games-board/gnome-mines/metadata.xml b/games-board/gnome-mines/metadata.xml
index 7b343b06be8..108dc186c55 100644
--- a/games-board/gnome-mines/metadata.xml
+++ b/games-board/gnome-mines/metadata.xml
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>gnome@gentoo.org</email>
- <name>Gentoo GNOME Desktop</name>
-</maintainer>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gnome-gitlab">GNOME/gnome-mines</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/games-board/gnubg/gnubg-1.06.002-r3.ebuild b/games-board/gnubg/gnubg-1.06.002-r4.ebuild
index 089ad905569..11012a638c2 100644
--- a/games-board/gnubg/gnubg-1.06.002-r3.ebuild
+++ b/games-board/gnubg/gnubg-1.06.002-r4.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{8..11} )
inherit autotools desktop python-single-r1 xdg
DESCRIPTION="GNU BackGammon"
@@ -27,7 +27,7 @@ RDEPEND="
net-misc/curl
sys-libs/readline:=
virtual/libintl
- x11-libs/cairo[svg]
+ x11-libs/cairo[svg(+)]
x11-libs/pango
gui? (
media-libs/libcanberra[gtk3]
diff --git a/games-board/gnubg/metadata.xml b/games-board/gnubg/metadata.xml
index 1c3ba213c49..57428f3202d 100644
--- a/games-board/gnubg/metadata.xml
+++ b/games-board/gnubg/metadata.xml
@@ -1,8 +1,11 @@
<?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>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="savannah">gnubg</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/games-board/gnushogi/metadata.xml b/games-board/gnushogi/metadata.xml
index 1c3ba213c49..2c979d8fcda 100644
--- a/games-board/gnushogi/metadata.xml
+++ b/games-board/gnushogi/metadata.xml
@@ -1,8 +1,11 @@
<?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>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="savannah">gnushogi</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/games-board/iagno/metadata.xml b/games-board/iagno/metadata.xml
index 7b343b06be8..fdd7a7908f3 100644
--- a/games-board/iagno/metadata.xml
+++ b/games-board/iagno/metadata.xml
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>gnome@gentoo.org</email>
- <name>Gentoo GNOME Desktop</name>
-</maintainer>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gnome-gitlab">GNOME/iagno</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/games-board/phalanx/metadata.xml b/games-board/phalanx/metadata.xml
index 9cb46e91f00..892864a976f 100644
--- a/games-board/phalanx/metadata.xml
+++ b/games-board/phalanx/metadata.xml
@@ -6,10 +6,10 @@
<name>Gentoo Games Project</name>
</maintainer>
<longdescription lang="en">
-This is the Phalanx chess engine. Phalanx's playing style is quite human-like;
-when it plays at full strength, it may be compared to a intermediate-to-strong
-player; beginners will be right at home with it, too.
-</longdescription>
+ This is the Phalanx chess engine. Phalanx's playing style is quite human-like;
+ when it plays at full strength, it may be compared to a intermediate-to-strong
+ player; beginners will be right at home with it, too.
+ </longdescription>
<upstream>
<remote-id type="sourceforge">phalanx</remote-id>
</upstream>
diff --git a/games-board/pysolfc/Manifest b/games-board/pysolfc/Manifest
index 49bd059d17a..87e3ae7782a 100644
--- a/games-board/pysolfc/Manifest
+++ b/games-board/pysolfc/Manifest
@@ -1,3 +1,3 @@
-DIST PySolFC-2.16.0.tar.xz 6391048 BLAKE2B 94f25033cf5b15af002d924cd2bfff5f90a1165ac9c23ba72a204d424e1678d904c37b13f16695f60c26d9e93a0b00f33e3f59d4b5bf4846d2570ed8c19d7725 SHA512 8f327b621d7c964abcf3e64a866e4a0153f4d6c2347f06eda1535df4effec1d7b7391e55c9ff42a1da6764473a246c0d646a589a4aa6b225076f97fd22381acd
+DIST PySolFC-2.18.0.tar.xz 9134632 BLAKE2B 68d777afa058ce73d6888b40e5fef060257f7449e3c1dbf2ec02c4ab35c5917000be3d2ec815e02b2353b793d6a7e010721f498098786f7f172181cda01039a0 SHA512 6e8b46cf3271f8695da6b6fd3090a32839beeed237d35a77f47ad95dfe1690ea471f35e722af65dba9d908f74ace109d1c06d7dd37889962ca0d610c62215397
DIST PySolFC-Cardsets--Minimal-2.1.0.tar.xz 28484652 BLAKE2B a7537557ce978d296d1a11253a5bfa80a19fc67b495948e35d43d64bcc1283812e753ccf9ee1828461b723e6a21070b3003435f046a590507a7fa6f95bae09c2 SHA512 cc83a26470c2fb13e70741bd8caccb8bd3b0491672eae0caf7437cf38d57e324d225186dde3be49c091d6960dbaefaa23814bcdd7326b07f0f1e32dda15b251c
DIST PySolFC-Cardsets-2.1.tar.bz2 61214563 BLAKE2B 06bf69f22fdcdfbd652bbe75f05722a452609da435a688a04227d235f7a4bd618cb3832e9143d224571eb20c1948014a456d697923623354c81ec12eff365bd9 SHA512 64909dec3d7f0a683e3c0d536f2c3435d0b021b390e411bcd6c9774562483413864105837e57c3210168330f17eda779055a1ec3b52d91aa05f405b990bd6fca
diff --git a/games-board/pysolfc/pysolfc-2.16.0.ebuild b/games-board/pysolfc/pysolfc-2.18.0.ebuild
index d7a6144a6a8..d7a6144a6a8 100644
--- a/games-board/pysolfc/pysolfc-2.16.0.ebuild
+++ b/games-board/pysolfc/pysolfc-2.18.0.ebuild
diff --git a/games-board/tali/Manifest b/games-board/tali/Manifest
index 93fb3c723cf..20bbbfea894 100644
--- a/games-board/tali/Manifest
+++ b/games-board/tali/Manifest
@@ -1,2 +1 @@
-DIST tali-40.7.tar.xz 1684740 BLAKE2B ee913a4b0420b7751f26ecdb9805d74811330effb0e3d5e8fa6a4005a5ac410274120ac9c78ec240f062a094c603184c8a237d97b744641d3550db9b2a5a5ea9 SHA512 fc9a13b2d8b37fa5726d99f7ca8bde35b23cd210391d6f4309a0b952d28adc09c3566eb5c88d0dd30b39abbb4abe05ba2f441bad6a8598abfcb1189a3d87cce4
DIST tali-40.8.tar.xz 1686244 BLAKE2B ad55838f199cce1c5a9b9ff0fa97d8c933900d4917c7339ec3d78f39203802f0ef9b8008a3400a5bddffce62d5ab9daba2af3855ba8bd4c35c69c2fce8984e75 SHA512 fe7a0a0a58c32f09264c270402af94f71e790926bd3f3523d57049628c43bfaf8b0e1ed5c676ef02b817f354d6c3fe183799ee9ff9d7a5e2198e4a4066f3e93a
diff --git a/games-board/tali/metadata.xml b/games-board/tali/metadata.xml
index 7b343b06be8..238a02301ec 100644
--- a/games-board/tali/metadata.xml
+++ b/games-board/tali/metadata.xml
@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<maintainer type="project">
- <email>gnome@gentoo.org</email>
- <name>Gentoo GNOME Desktop</name>
-</maintainer>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gnome-gitlab">GNOME/tali</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/games-board/tali/tali-40.7.ebuild b/games-board/tali/tali-40.7.ebuild
deleted file mode 100644
index f4da8469f4d..00000000000
--- a/games-board/tali/tali-40.7.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
-inherit gnome.org gnome2-utils meson python-any-r1 xdg
-
-DESCRIPTION="Beat the odds in a poker-style dice game"
-HOMEPAGE="https://wiki.gnome.org/Apps/Tali https://gitlab.gnome.org/GNOME/tali"
-
-LICENSE="GPL-2+ FDL-1.1+"
-SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~riscv x86"
-
-DEPEND="
- dev-libs/glib:2
- >=x11-libs/gtk+-3.16:3
- dev-libs/libgnome-games-support:1=
-"
-RDEPEND="${DEPEND}
- >=gnome-base/librsvg-2.32:2
-"
-BDEPEND="
- ${PYTHON_DEPS}
- dev-libs/appstream-glib
- dev-util/itstool
- >=sys-devel/gettext-0.19.8
- virtual/pkgconfig
-"
-
-pkg_postinst() {
- xdg_pkg_postinst
- gnome2_schemas_update
-}
-
-pkg_postrm() {
- xdg_pkg_postrm
- gnome2_schemas_update
-}
diff --git a/games-board/xboard/metadata.xml b/games-board/xboard/metadata.xml
index 643fc2c1cd9..2ece8a89024 100644
--- a/games-board/xboard/metadata.xml
+++ b/games-board/xboard/metadata.xml
@@ -9,4 +9,7 @@
<flag name="zippy">Enable experimental zippy client</flag>
<flag name="default-font">Install the default font that xboard uses</flag>
</use>
+ <upstream>
+ <remote-id type="savannah">xboard</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/games-board/xboard/xboard-4.9.1.ebuild b/games-board/xboard/xboard-4.9.1.ebuild
index b68ccfc2f03..3d75e1499bd 100644
--- a/games-board/xboard/xboard-4.9.1.ebuild
+++ b/games-board/xboard/xboard-4.9.1.ebuild
@@ -9,7 +9,7 @@ DESCRIPTION="GUI for gnuchess and for internet chess servers"
HOMEPAGE="https://www.gnu.org/software/xboard/"
SRC_URI="mirror://gnu/xboard/${P}.tar.gz"
-LICENSE="GPL-3"
+LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE="+default-font gtk nls Xaw3d zippy"
diff --git a/games-board/xgammon/xgammon-0.98-r3.ebuild b/games-board/xgammon/xgammon-0.98-r3.ebuild
index 7d116d14a8e..b5c4afd2bee 100644
--- a/games-board/xgammon/xgammon-0.98-r3.ebuild
+++ b/games-board/xgammon/xgammon-0.98-r3.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
DESCRIPTION="very nice backgammon game for X"
HOMEPAGE="http://fawn.unibw-hamburg.de/steuer/xgammon/xgammon.html"
@@ -34,6 +34,8 @@ PATCHES=(
)
src_configure() {
+ append-cflags -std=gnu89 # old codebase, incompatible with c2x
+
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die
}
diff --git a/games-board/xskat/files/xskat-4.0-clang16.patch b/games-board/xskat/files/xskat-4.0-clang16.patch
new file mode 100644
index 00000000000..c9bfe67e785
--- /dev/null
+++ b/games-board/xskat/files/xskat-4.0-clang16.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/875473
+--- a/null.c
++++ b/null.c
+@@ -181,2 +181,4 @@
+ int minmaxfb(f,fb)
++int f;
++int fb;
+ {
diff --git a/games-board/xskat/xskat-4.0-r2.ebuild b/games-board/xskat/xskat-4.0-r2.ebuild
index da925919f0c..34b32c4049b 100644
--- a/games-board/xskat/xskat-4.0-r2.ebuild
+++ b/games-board/xskat/xskat-4.0-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit desktop toolchain-funcs
+inherit desktop flag-o-matic toolchain-funcs
DESCRIPTION="Famous german card game"
HOMEPAGE="http://www.xskat.de/xskat.html"
@@ -15,21 +15,28 @@ LICENSE="freedist"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
-DEPEND="x11-libs/libX11"
+COMMON_DEPEND="x11-libs/libX11"
RDEPEND="
- ${DEPEND}
+ ${COMMON_DEPEND}
media-fonts/font-misc-misc"
-BDEPEND="
- virtual/pkgconfig
+DEPEND="
+ ${COMMON_DEPEND}
x11-base/xorg-proto"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-clang16.patch
+)
src_configure() { :; }
src_compile() {
tc-export CC
+ append-cflags -std=gnu89 # old codebase, will break with c2x
local emakeargs=(
- CFLAGS="${CFLAGS} ${CPPFLAGS}"
+ CFLAGS="${CFLAGS} ${CPPFLAGS} $($(tc-getPKG_CONFIG) --cflags x11 || die)"
+ CPPFLAGS= # force everywhere above, but avoid implicit duplication
LDFLAGS="${LDFLAGS} $($(tc-getPKG_CONFIG) --libs x11 || die)"
)