From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1383188-garchives=archives.gentoo.org@lists.gentoo.org>
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 7C00815808B
	for <garchives@archives.gentoo.org>; Thu,  7 Apr 2022 08:15:58 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6CEE6E0A70;
	Thu,  7 Apr 2022 08:15:55 +0000 (UTC)
Received: from smtp.gentoo.org (mail.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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 03FE5E0A6A
	for <gentoo-commits@lists.gentoo.org>; Thu,  7 Apr 2022 08:15:54 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(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 smtp.gentoo.org (Postfix) with ESMTPS id DA3AE3413BD
	for <gentoo-commits@lists.gentoo.org>; Thu,  7 Apr 2022 08:15:51 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 445ED392
	for <gentoo-commits@lists.gentoo.org>; Thu,  7 Apr 2022 08:15:50 +0000 (UTC)
From: "Duje Mihanović" <duje.mihanovic@skole.hr>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Duje Mihanović" <duje.mihanovic@skole.hr>
Message-ID: <1649319291.94f0d4472fad48bfbdd36043820b339ef2dfc3ce.duje.mihanovic@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-fps/assaultcube/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
X-VCS-Directories: games-fps/assaultcube/
X-VCS-Committer: duje.mihanovic
X-VCS-Committer-Name: Duje Mihanović
X-VCS-Revision: 94f0d4472fad48bfbdd36043820b339ef2dfc3ce
X-VCS-Branch: dev
Date: Thu,  7 Apr 2022 08:15:50 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 5d119abb-e211-4892-a6b8-86881ac2155d
X-Archives-Hash: 1f14f948cc6cd127ecf623d7fc2dc247

commit:     94f0d4472fad48bfbdd36043820b339ef2dfc3ce
Author:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
AuthorDate: Thu Apr  7 08:14:00 2022 +0000
Commit:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
CommitDate: Thu Apr  7 08:14:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=94f0d447

games-fps/assaultcube: add debug USE flag

Signed-off-by: Duje Mihanović <duje.mihanovic <AT> skole.hr>

 games-fps/assaultcube/assaultcube-1.3.0.2.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
index 9ac5610c5..d66c888b2 100644
--- a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
+++ b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
@@ -25,6 +25,7 @@ PATCHES=(
 	"${FILESDIR}/assaultcube-1.3.0.2-respect-ldflags.patch
 	${FILESDIR}/assaultcube-1.3.0.2-fix-checkinstall.patch" # a script which checks for required libs and certain parts of the game
 )
+IUSE="debug"
 
 src_prepare() {
 	eapply ${PATCHES}
@@ -34,7 +35,11 @@ src_prepare() {
 
 src_compile() {
 	cd "${S}/source/src"
-	emake
+	if use debug; then
+		DEBUGBUILD=1 emake
+	else
+		emake
+	fi
 }
 
 src_install() {