games-puzzle/freesweep: fix configure w/ clang 16

Closes: https://bugs.gentoo.org/899002
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-03-05 03:10:20 +00:00
parent b355649c4c
commit 4df8b0dbdf

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
inherit autotools toolchain-funcs
DESCRIPTION="Console Minesweeper"
HOMEPAGE="https://github.com/rwestlund/freesweep"
@@ -17,6 +17,14 @@ RDEPEND="sys-libs/ncurses:="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
sed -i -e "s:configure.in:configure.ac:" Makefile.in || die
# Clang 16, bug #899002
eautoreconf
}
src_compile() {
emake LIBS="$($(tc-getPKG_CONFIG) --libs ncurses || die)"
}