1 |
commit: 94f0d4472fad48bfbdd36043820b339ef2dfc3ce |
2 |
Author: Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr> |
3 |
AuthorDate: Thu Apr 7 08:14:00 2022 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Thu Apr 7 08:14:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=94f0d447 |
7 |
|
8 |
games-fps/assaultcube: add debug USE flag |
9 |
|
10 |
Signed-off-by: Duje Mihanović <duje.mihanovic <AT> skole.hr> |
11 |
|
12 |
games-fps/assaultcube/assaultcube-1.3.0.2.ebuild | 7 ++++++- |
13 |
1 file changed, 6 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild |
16 |
index 9ac5610c5..d66c888b2 100644 |
17 |
--- a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild |
18 |
+++ b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild |
19 |
@@ -25,6 +25,7 @@ PATCHES=( |
20 |
"${FILESDIR}/assaultcube-1.3.0.2-respect-ldflags.patch |
21 |
${FILESDIR}/assaultcube-1.3.0.2-fix-checkinstall.patch" # a script which checks for required libs and certain parts of the game |
22 |
) |
23 |
+IUSE="debug" |
24 |
|
25 |
src_prepare() { |
26 |
eapply ${PATCHES} |
27 |
@@ -34,7 +35,11 @@ src_prepare() { |
28 |
|
29 |
src_compile() { |
30 |
cd "${S}/source/src" |
31 |
- emake |
32 |
+ if use debug; then |
33 |
+ DEBUGBUILD=1 emake |
34 |
+ else |
35 |
+ emake |
36 |
+ fi |
37 |
} |
38 |
|
39 |
src_install() { |