public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/yamagi-quake2/
Date: Sun, 22 Jul 2018 23:22:16 +0000 (UTC)	[thread overview]
Message-ID: <1532301712.4c82edf83be8090504a799ec2a3dab478b0e5e63.asturm@gentoo> (raw)

commit:     4c82edf83be8090504a799ec2a3dab478b0e5e63
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Sun Jul 22 00:09:10 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jul 22 23:21:52 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c82edf8

games-fps/yamagi-quake2: fix USE=-client

Do not build/install useless files with USE=-client
Closes: https://github.com/gentoo/gentoo/pull/9309

 ...e2-7.21.ebuild => yamagi-quake2-7.21-r1.ebuild} | 28 ++++++++++++----------
 1 file 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
similarity index 87%
rename from games-fps/yamagi-quake2/yamagi-quake2-7.21.ebuild
rename to games-fps/yamagi-quake2/yamagi-quake2-7.21-r1.ebuild
index 70d72875290..843343c0aca 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


             reply	other threads:[~2018-07-22 23:22 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-22 23:22 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-11 23:07 [gentoo-commits] repo/gentoo:master commit in: games-fps/yamagi-quake2/ Ionen Wolkens
2024-10-11 23:07 Ionen Wolkens
2023-12-18 18:43 Ionen Wolkens
2023-12-18 18:43 Ionen Wolkens
2023-03-09 20:13 Ionen Wolkens
2022-12-19  7:23 Ionen Wolkens
2022-10-03 18:34 Ionen Wolkens
2022-10-03 18:34 Ionen Wolkens
2022-06-16  9:02 Jakov Smolić
2022-04-29 11:23 Ionen Wolkens
2022-04-18 13:19 Ionen Wolkens
2021-07-04 11:53 Ionen Wolkens
2021-04-06 18:18 Sam James
2020-10-28  7:51 Joonas Niilola
2020-10-28  7:51 Joonas Niilola
2020-07-20 14:04 Sam James
2020-04-17 15:10 Joonas Niilola
2019-12-28  0:11 James Le Cuirot
2019-06-03 15:54 Stefan Strogin
2019-06-03 15:54 Stefan Strogin
2018-09-17 15:46 Michał Górny
2018-09-17 15:46 Michał Górny
2018-07-21 21:56 Patrice Clement
2018-07-21 21:56 Patrice Clement
2018-07-21 21:56 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1532301712.4c82edf83be8090504a799ec2a3dab478b0e5e63.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox