From 94f0d4472fad48bfbdd36043820b339ef2dfc3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Duje=20Mihanovi=C4=87?= Date: Thu, 7 Apr 2022 10:14:00 +0200 Subject: [PATCH] games-fps/assaultcube: add debug USE flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Duje Mihanović --- 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 9ac5610c54..d66c888b2c 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() {