gentoo/games-arcade/bomns/bomns-0.99.2-r2.ebuild
NHOrus 43b829c585
games-arcade/bomns: update EAPI 7 -> 8, port to C23, fix Clang build
Closes: https://bugs.gentoo.org/730794
Closes: https://bugs.gentoo.org/936565
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40847
Signed-off-by: Sam James <sam@gentoo.org>
2025-03-02 18:57:08 +00:00

43 lines
788 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools flag-o-matic
DESCRIPTION="Fast-paced multiplayer deathmatch arcade game"
HOMEPAGE="https://github.com/keithfancher/Bomns-for-Linux"
SRC_URI="https://downloads.sourceforge.net/greenridge/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk editor"
DEPEND="
media-libs/libsdl[video]
media-libs/sdl-mixer
gtk? ( x11-libs/gtk+:2 )
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-fpe.patch
"${FILESDIR}"/${P}-c23.patch
"${FILESDIR}"/${P}-clang.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
filter-flags -fforce-addr
econf \
--disable-launcher1 \
$(use_enable gtk launcher2) \
$(use_enable editor)
}