public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] games-strategy/wargus: Fix running it with games-engines/stratagus[debug]
@ 2024-02-15 12:53 Matthias Schwarzott
  2024-02-15 12:59 ` Eli Schwartz
  0 siblings, 1 reply; 9+ messages in thread
From: Matthias Schwarzott @ 2024-02-15 12:53 UTC (permalink / raw)
  To: mgorny, gentoo-dev; +Cc: games, Matthias Schwarzott

When stratagus is compiled with USE=debug, its executable is called
/usr/bin/stratatgus-dbg.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
---
 games-strategy/wargus/wargus-3.3.2.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/games-strategy/wargus/wargus-3.3.2.ebuild b/games-strategy/wargus/wargus-3.3.2.ebuild
index fff6023fa177..3295b2911d48 100644
--- a/games-strategy/wargus/wargus-3.3.2.ebuild
+++ b/games-strategy/wargus/wargus-3.3.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -46,10 +46,12 @@ pkg_pretend() {
 }
 
 src_configure() {
+	local suffix=
+	has_version games-engines/stratagus[debug] && suffix=-dbg
 	local mycmakeargs=(
 		-DGAMEDIR="${EPREFIX}/usr/bin"
 		-DBINDIR="${EPREFIX}/usr/bin"
-		-DSTRATAGUS="${EPREFIX}/usr/bin/stratagus"
+		-DSTRATAGUS="${EPREFIX}/usr/bin/stratagus${suffix}"
 		-DSHAREDIR="${EPREFIX}/usr/share/stratagus/wargus"
 		-DICONDIR=/usr/share/icons/hicolor/64x64/apps
 		-DWITH_STORMLIB=$(usex bne)
-- 
2.43.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-02-15 19:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-15 12:53 [gentoo-dev] [PATCH] games-strategy/wargus: Fix running it with games-engines/stratagus[debug] Matthias Schwarzott
2024-02-15 12:59 ` Eli Schwartz
2024-02-15 13:21   ` zzam
2024-02-15 13:25     ` [gentoo-dev] [PATCH] games-engines/stratagus: Unbreak USE=debug case Matthias Schwarzott
2024-02-15 13:37     ` [gentoo-dev] [PATCH v2] " Matthias Schwarzott
2024-02-15 14:09     ` [gentoo-dev] [PATCH] games-strategy/wargus: Fix running it with games-engines/stratagus[debug] Michał Górny
2024-02-15 14:23       ` parona
2024-02-15 15:06         ` Michał Górny
2024-02-15 19:10           ` zzam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox