mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-fps/yamagi-quake2: fix USE=-client
Do not build/install useless files with USE=-client Closes: https://github.com/gentoo/gentoo/pull/9309
This commit is contained in:
committed by
Andreas Sturmlechner
parent
289c838905
commit
4c82edf83b
@@ -76,10 +76,12 @@ src_prepare() {
|
||||
|
||||
src_compile() {
|
||||
local targets=( game )
|
||||
use client && targets+=( client )
|
||||
if use client; then
|
||||
targets+=( client )
|
||||
use opengl && targets+=( ref_gl1 ref_gl3 )
|
||||
use softrender && targets+=( ref_soft )
|
||||
fi
|
||||
use dedicated && targets+=( server )
|
||||
use opengl && targets+=( ref_gl1 ref_gl3 )
|
||||
use softrender && targets+=( ref_soft )
|
||||
|
||||
mymake config
|
||||
mymake "${targets[@]}"
|
||||
@@ -121,15 +123,17 @@ src_install() {
|
||||
insinto /usr/lib/yamagi-quake2/${addon}
|
||||
doins "${WORKDIR}"/quake2-${addon}-*/release/game.so
|
||||
|
||||
local addon_name
|
||||
case ${addon} in
|
||||
ctf) addon_name="CTF" ;;
|
||||
rogue) addon_name="Ground Zero" ;;
|
||||
xatrix) addon_name="The Reckoning" ;;
|
||||
esac
|
||||
if use client; then
|
||||
local addon_name
|
||||
case ${addon} in
|
||||
ctf) addon_name="CTF" ;;
|
||||
rogue) addon_name="Ground Zero" ;;
|
||||
xatrix) addon_name="The Reckoning" ;;
|
||||
esac
|
||||
|
||||
make_wrapper "yquake2-${addon}" "yquake2 +set game ${addon}"
|
||||
make_desktop_entry "yquake2-${addon}" "Yamagi Quake II: ${addon_name}"
|
||||
make_wrapper "yquake2-${addon}" "yquake2 +set game ${addon}"
|
||||
make_desktop_entry "yquake2-${addon}" "Yamagi Quake II: ${addon_name}"
|
||||
fi
|
||||
done
|
||||
|
||||
einstalldocs
|
||||
Reference in New Issue
Block a user