From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 48EC915808B for ; Thu, 15 Feb 2024 12:53:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57678E29C8; Thu, 15 Feb 2024 12:53:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2841E29C5 for ; Thu, 15 Feb 2024 12:53:34 +0000 (UTC) From: Matthias Schwarzott To: mgorny@gentoo.org, gentoo-dev@lists.gentoo.org Cc: games@gentoo.org, Matthias Schwarzott Subject: [gentoo-dev] [PATCH] games-strategy/wargus: Fix running it with games-engines/stratagus[debug] Date: Thu, 15 Feb 2024 13:53:25 +0100 Message-ID: <20240215125325.19959-1-zzam@gentoo.org> X-Mailer: git-send-email 2.43.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 8d135627-3169-46c3-a75e-45193a92ee33 X-Archives-Hash: 51165a2ffb3bead8b4ee9c3fe0f61f7c When stratagus is compiled with USE=debug, its executable is called /usr/bin/stratatgus-dbg. Signed-off-by: Matthias Schwarzott --- 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