commit:     94f0d4472fad48bfbdd36043820b339ef2dfc3ce
Author:     Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr>
AuthorDate: Thu Apr  7 08:14:00 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
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() {

Reply via email to