summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/xskat')
-rw-r--r--games-board/xskat/files/xskat-4.0-clang16.patch8
-rw-r--r--games-board/xskat/xskat-4.0-r2.ebuild7
2 files changed, 14 insertions, 1 deletions
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 000000000000..c9bfe67e7850
--- /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 e32197c981c3..34b32c4049b9 100644
--- a/games-board/xskat/xskat-4.0-r2.ebuild
+++ b/games-board/xskat/xskat-4.0-r2.ebuild
@@ -3,7 +3,7 @@
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"
@@ -24,10 +24,15 @@ 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} $($(tc-getPKG_CONFIG) --cflags x11 || die)"