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