1 |
Signed-off-by: David Seifert <soap@g.o> |
2 |
--- |
3 |
eclass/wxwidgets.eclass | 32 +++++++++----------------------- |
4 |
1 file changed, 9 insertions(+), 23 deletions(-) |
5 |
|
6 |
diff --git a/eclass/wxwidgets.eclass b/eclass/wxwidgets.eclass |
7 |
index 80c0fc5dea3..09c45ba48a5 100644 |
8 |
--- a/eclass/wxwidgets.eclass |
9 |
+++ b/eclass/wxwidgets.eclass |
10 |
@@ -94,31 +94,17 @@ esac |
11 |
# See: http://docs.wxwidgets.org/trunk/overview_debugging.html |
12 |
|
13 |
setup-wxwidgets() { |
14 |
- local w wxtoolkit wxdebug wxconf |
15 |
+ local w wxtoolkit wxconf |
16 |
|
17 |
- case "${WX_GTK_VER}" in |
18 |
- 3.0-gtk3) |
19 |
- wxtoolkit=gtk3 |
20 |
- if [[ -z ${WX_DISABLE_NDEBUG} ]]; then |
21 |
- ( in_iuse debug && use debug ) || append-cppflags -DNDEBUG |
22 |
- fi |
23 |
- ;; |
24 |
- 2.9|3.0) |
25 |
- wxtoolkit=gtk2 |
26 |
- if [[ -z ${WX_DISABLE_NDEBUG} ]]; then |
27 |
- ( in_iuse debug && use debug ) || append-cppflags -DNDEBUG |
28 |
- fi |
29 |
- ;; |
30 |
- 2.8) |
31 |
- wxtoolkit=gtk2 |
32 |
- wxdebug="release-" |
33 |
- has_version x11-libs/wxGTK:${WX_GTK_VER}[debug] && wxdebug="debug-" |
34 |
- ;; |
35 |
- *) |
36 |
- die "Invalid WX_GTK_VER: must be set to a valid wxGTK SLOT" |
37 |
- ;; |
38 |
+ case ${WX_GTK_VER} in |
39 |
+ 3.0-gtk3) wxtoolkit=gtk3 ;; |
40 |
+ 3.0) wxtoolkit=gtk2 ;; |
41 |
esac |
42 |
|
43 |
+ if [[ -z ${WX_DISABLE_NDEBUG} ]]; then |
44 |
+ { in_iuse debug && use debug; } || append-cppflags -DNDEBUG |
45 |
+ fi |
46 |
+ |
47 |
# toolkit overrides |
48 |
if has_version "x11-libs/wxGTK:${WX_GTK_VER}[aqua]"; then |
49 |
wxtoolkit="mac" |
50 |
@@ -126,7 +112,7 @@ setup-wxwidgets() { |
51 |
wxtoolkit="base" |
52 |
fi |
53 |
|
54 |
- wxconf="${wxtoolkit}-unicode-${wxdebug}${WX_GTK_VER}" |
55 |
+ wxconf="${wxtoolkit}-unicode-${WX_GTK_VER}" |
56 |
for w in "${CHOST:-${CBUILD}}-${wxconf}" "${wxconf}"; do |
57 |
[[ -f ${ESYSROOT:-${EPREFIX}}/usr/$(get_libdir)/wx/config/${w} ]] && wxconf=${w} && break |
58 |
done || die "Failed to find configuration ${wxconf}" |
59 |
-- |
60 |
2.31.1 |