games-engines/frotz: pass same args in src_install

Also, filter LTO while here, as I get lto-type-mismatch errors.

Closes: https://bugs.gentoo.org/951132
Thanks-to: Mark Davies
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-03-13 10:56:00 +00:00
parent 9f10baf7bb
commit 947c5ffdc6

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit toolchain-funcs
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Interpreter for Z-code based text games"
HOMEPAGE="https://661.org/proj/if/frotz/"
@@ -44,6 +44,8 @@ PATCHES=(
)
src_compile() {
filter-lto
emake \
dumb \
$(use ncurses && echo ncurses) \
@@ -64,7 +66,15 @@ src_install() {
install_dumb \
$(use ncurses && echo install) \
$(use sdl && echo install_sdl) \
AR="$(tc-getAR)" \
CC="$(tc-getCC)" \
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
RANLIB="$(tc-getRANLIB)" \
CURSES=$(usex unicode ncursesw ncurses) \
USE_UTF8=$(usex unicode yes "") \
SOUND_TYPE=$(usex sound ao none) \
PREFIX="${EPREFIX}/usr" \
SYSCONFDIR="${EPREFIX}/etc" \
DESTDIR="${D}"
dodoc \