diff options
author | Alexander Tsoy <alexander@tsoy.me> | 2018-07-22 03:09:10 +0300 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-07-23 01:21:52 +0200 |
commit | 4c82edf83be8090504a799ec2a3dab478b0e5e63 (patch) | |
tree | 3f3827e87c9040613dc6b25648e70679ae786702 /games-fps/yamagi-quake2 | |
parent | app-doc/kicad-doc: Remove docs for missing and obsolate versions. (diff) | |
download | gentoo-4c82edf83be8090504a799ec2a3dab478b0e5e63.tar.gz gentoo-4c82edf83be8090504a799ec2a3dab478b0e5e63.tar.bz2 gentoo-4c82edf83be8090504a799ec2a3dab478b0e5e63.zip |
games-fps/yamagi-quake2: fix USE=-client
Do not build/install useless files with USE=-client
Closes: https://github.com/gentoo/gentoo/pull/9309
Diffstat (limited to 'games-fps/yamagi-quake2')
-rw-r--r-- | games-fps/yamagi-quake2/yamagi-quake2-7.21-r1.ebuild (renamed from games-fps/yamagi-quake2/yamagi-quake2-7.21.ebuild) | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/games-fps/yamagi-quake2/yamagi-quake2-7.21.ebuild b/games-fps/yamagi-quake2/yamagi-quake2-7.21-r1.ebuild index 70d728752909..843343c0acaf 100644 --- a/games-fps/yamagi-quake2/yamagi-quake2-7.21.ebuild +++ b/games-fps/yamagi-quake2/yamagi-quake2-7.21-r1.ebuild @@ -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 - - make_wrapper "yquake2-${addon}" "yquake2 +set game ${addon}" - make_desktop_entry "yquake2-${addon}" "Yamagi Quake II: ${addon_name}" + 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}" + fi done einstalldocs |