Lines 15-20
Link Here
|
15 |
|
15 |
|
16 |
inherit versionator |
16 |
inherit versionator |
17 |
|
17 |
|
|
|
18 |
IUSE="${IUSE} debug" |
19 |
|
18 |
QTPKG="x11-libs/qt-" |
20 |
QTPKG="x11-libs/qt-" |
19 |
QT4MAJORVERSIONS="4.1 4.0" |
21 |
QT4MAJORVERSIONS="4.1 4.0" |
20 |
QT4VERSIONS="4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.0.1 4.0.0" |
22 |
QT4VERSIONS="4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.0.1 4.0.0" |
Lines 50-52
Link Here
|
50 |
|
52 |
|
51 |
echo "${VERSIONS}" |
53 |
echo "${VERSIONS}" |
52 |
} |
54 |
} |
|
|
55 |
|
56 |
eqmake() { |
57 |
local projprofile="" |
58 |
if [ -z $1 ]; then |
59 |
projprofile="${PN}.pro" |
60 |
else |
61 |
projprofile="${1}" |
62 |
fi; |
63 |
|
64 |
einfo "Processing qmake ${projprofile}" |
65 |
|
66 |
# file exists? |
67 |
if [[ ! -f ${projprofile} ]]; then |
68 |
echo |
69 |
eerror "Project pro file \"${projprofile}\" does not exists" |
70 |
eerror "qmake cannot handle the non-existing pro files" |
71 |
echo |
72 |
eerror "This shouldn't happen - send a bug report to bugs.gentoo.org" |
73 |
echo |
74 |
die "non existing pro file in ${PN} sources" |
75 |
fi; |
76 |
|
77 |
# some standard config options |
78 |
local configoptplus="CONFIG += no_fixpath" |
79 |
local configoptminus="CONFIG -=" |
80 |
if use debug; then |
81 |
configoptplus="${configoptplus} debug" |
82 |
configoptminus="${configoptminus} release" |
83 |
else |
84 |
configoptplus="${configoptplus} release" |
85 |
configoptminus="${configoptminus} debug" |
86 |
fi; |
87 |
|
88 |
# any special qmake options should be passed as a second eqmake parameter |
89 |
/usr/bin/qmake ${projprofile} \ |
90 |
QMAKE=/usr/bin/qmake \ |
91 |
QMAKE_CFLAGS_RELEASE="${CFLAGS}" \ |
92 |
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \ |
93 |
"${configoptminus}" \ |
94 |
"${configoptplus}" \ |
95 |
QMAKE_RPATH= \ |
96 |
${2} |
97 |
|
98 |
# successfull qmake? |
99 |
if [[ $? -ne 0 ]]; then |
100 |
echo |
101 |
eerror "Running qmake on \"${projprofile}\" has failed" |
102 |
echo |
103 |
eerror "This shouldn't happen - send a bug report to bugs.gentoo.org" |
104 |
echo |
105 |
die "qmake has failed on ${projprofile}" |
106 |
fi; |
107 |
|
108 |
eend 0 |
109 |
} |