| 1 | # Copyright 2007-2009 Gentoo Foundation |
1 | # Copyright 2007-2009 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.39 2009/06/27 12:37:32 yngwin Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.43 2009/07/31 22:18:31 tommy Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: qt4-build.eclass |
5 | # @ECLASS: qt4-build.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Ben de Groot <yngwin@gentoo.org>, |
7 | # Ben de Groot <yngwin@gentoo.org>, |
| 8 | # Markos Chandras <hwoarang@gentoo.org>, |
8 | # Markos Chandras <hwoarang@gentoo.org>, |
| … | |
… | |
| 11 | # @DESCRIPTION: |
11 | # @DESCRIPTION: |
| 12 | # This eclass contains various functions that are used when building Qt4 |
12 | # This eclass contains various functions that are used when building Qt4 |
| 13 | |
13 | |
| 14 | inherit base eutils multilib toolchain-funcs flag-o-matic versionator |
14 | inherit base eutils multilib toolchain-funcs flag-o-matic versionator |
| 15 | |
15 | |
| 16 | IUSE="${IUSE} custom-cxxflags debug pch" |
16 | IUSE="${IUSE} debug pch" |
| 17 | RDEPEND=" |
17 | RDEPEND=" |
| 18 | !<x11-libs/qt-assistant-${PV} |
18 | !<x11-libs/qt-assistant-${PV} |
| 19 | !>x11-libs/qt-assistant-${PV}-r9999 |
19 | !>x11-libs/qt-assistant-${PV}-r9999 |
| 20 | !<x11-libs/qt-core-${PV} |
20 | !<x11-libs/qt-core-${PV} |
| 21 | !>x11-libs/qt-core-${PV}-r9999 |
21 | !>x11-libs/qt-core-${PV}-r9999 |
| … | |
… | |
| 82 | fi |
82 | fi |
| 83 | |
83 | |
| 84 | # Check USE requirements |
84 | # Check USE requirements |
| 85 | qt4-build_check_use |
85 | qt4-build_check_use |
| 86 | fi |
86 | fi |
|
|
87 | |
|
|
88 | PATH="${S}/bin:${PATH}" |
|
|
89 | LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
|
|
90 | |
|
|
91 | if ! version_is_at_least 4.1 $(gcc-version) ; then |
|
|
92 | ewarn "Using a GCC version lower than 4.1 is not supported!" |
|
|
93 | echo |
|
|
94 | ebeep 3 |
|
|
95 | fi |
|
|
96 | } |
|
|
97 | |
|
|
98 | # @ECLASS-VARIABLE: QT4_TARGET_DIRECTORIES |
|
|
99 | # @DESCRIPTION: |
|
|
100 | # Arguments for build_target_directories. Takes the directories, in which the |
|
|
101 | # code should be compiled. This is a space-separated list |
|
|
102 | |
|
|
103 | # @ECLASS-VARIABLE: QT4_EXTRACT_DIRECTORIES |
|
|
104 | # @DESCRIPTION: |
|
|
105 | # Space separated list including the directories that will be extracted from Qt |
|
|
106 | # tarball |
|
|
107 | |
|
|
108 | # @FUNCTION: qt4-build_src_unpack |
|
|
109 | # @DESCRIPTION: |
|
|
110 | # Unpacks the sources |
|
|
111 | qt4-build_src_unpack() { |
|
|
112 | setqtenv |
|
|
113 | local target targets licenses |
|
|
114 | if version_is_at_least 4.5 ${PV} ; then |
|
|
115 | licenses="LICENSE.GPL3 LICENSE.LGPL" |
|
|
116 | else |
|
|
117 | licenses="LICENSE.GPL2 LICENSE.GPL3" |
|
|
118 | fi |
|
|
119 | for target in configure ${licenses} projects.pro \ |
|
|
120 | src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \ |
|
|
121 | ${QT4_EXTRACT_DIRECTORIES}; do |
|
|
122 | targets="${targets} ${MY_P}/${target}" |
|
|
123 | done |
|
|
124 | |
|
|
125 | echo tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets} |
|
|
126 | tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets} |
|
|
127 | |
|
|
128 | case "${PV}" in |
|
|
129 | 4.4.?) |
|
|
130 | echo tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2 |
|
|
131 | tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2 |
|
|
132 | ;; |
|
|
133 | esac |
|
|
134 | |
|
|
135 | # Be backwards compatible for now |
|
|
136 | if [[ $EAPI != 2 ]]; then |
|
|
137 | qt4-build_src_prepare |
|
|
138 | fi |
|
|
139 | } |
|
|
140 | |
|
|
141 | # @ECLASS-VARIABLE: PATCHES |
|
|
142 | # @DESCRIPTION: |
|
|
143 | # In case you have patches to apply, specify them in PATCHES variable. Make sure |
|
|
144 | # to specify the full path. This variable is necessary for src_prepare phase. |
|
|
145 | # example: |
|
|
146 | # PATCHES="${FILESDIR}"/mypatch.patch |
|
|
147 | # ${FILESDIR}"/mypatch2.patch" |
|
|
148 | # |
|
|
149 | |
|
|
150 | # @FUNCTION: qt4-build_src_prepare |
|
|
151 | # @DESCRIPTION: |
|
|
152 | # Prepare the sources before the configure phase. Strip CFLAGS if necessary, and fix |
|
|
153 | # source files in order to respect CFLAGS/CXXFLAGS/LDFLAGS specified on /etc/make.conf. |
|
|
154 | qt4-build_src_prepare() { |
|
|
155 | setqtenv |
|
|
156 | cd "${S}" |
|
|
157 | |
|
|
158 | if [[ ${PN} != qt-core ]]; then |
|
|
159 | skip_qmake_build_patch |
|
|
160 | skip_project_generation_patch |
|
|
161 | symlink_binaries_to_buildtree |
|
|
162 | fi |
|
|
163 | |
|
|
164 | # Bug 178652 |
|
|
165 | if [[ "$(gcc-major-version)" == "3" ]] && use amd64; then |
|
|
166 | ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS" |
|
|
167 | append-flags -fno-gcse |
|
|
168 | fi |
|
|
169 | |
|
|
170 | # Unsupported old gcc versions - hardened needs this :( |
|
|
171 | if [[ $(gcc-major-version) -lt "4" ]] ; then |
|
|
172 | ewarn "Appending -fno-stack-protector to CXXFLAGS" |
|
|
173 | append-cxxflags -fno-stack-protector |
|
|
174 | # Bug 253127 |
|
|
175 | sed -e "/^QMAKE_CFLAGS\t/ s:$: -fno-stack-protector-all:" \ |
|
|
176 | -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed" |
|
|
177 | fi |
|
|
178 | |
|
|
179 | # Bug 172219 |
|
|
180 | sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ |
|
|
181 | -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ |
|
|
182 | -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ |
|
|
183 | -e "s:X11R6/::" \ |
|
|
184 | -i "${S}"/mkspecs/$(qt_mkspecs_dir)/qmake.conf || die "sed ${S}/mkspecs/$(qt_mkspecs_dir)/qmake.conf failed" |
|
|
185 | |
|
|
186 | sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ |
|
|
187 | -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ |
|
|
188 | -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ |
|
|
189 | -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed" |
|
|
190 | |
|
|
191 | base_src_prepare |
|
|
192 | } |
|
|
193 | |
|
|
194 | # @FUNCTION: qt4-build_src_configure |
|
|
195 | # @DESCRIPTION: |
|
|
196 | # Default configure phase |
|
|
197 | qt4-build_src_configure() { |
|
|
198 | setqtenv |
|
|
199 | myconf="$(standard_configure_options) ${myconf}" |
|
|
200 | |
|
|
201 | echo ./configure ${myconf} |
|
|
202 | ./configure ${myconf} || die "./configure failed" |
|
|
203 | myconf="" |
|
|
204 | } |
|
|
205 | |
|
|
206 | # @FUNCTION: qt4-build_src_compile |
|
|
207 | # @DESCRIPTION: Actual compile phase |
|
|
208 | qt4-build_src_compile() { |
|
|
209 | setqtenv |
|
|
210 | # Be backwards compatible for now |
|
|
211 | if [[ $EAPI != 2 ]]; then |
|
|
212 | qt4-build_src_configure |
|
|
213 | fi |
|
|
214 | |
|
|
215 | build_directories "${QT4_TARGET_DIRECTORIES}" |
|
|
216 | } |
|
|
217 | |
|
|
218 | # @FUNCTION: qt4-build_src_install |
|
|
219 | # @DESCRIPTION: |
|
|
220 | # Perform the actual installation including some library fixes. |
|
|
221 | qt4-build_src_install() { |
|
|
222 | setqtenv |
|
|
223 | install_directories "${QT4_TARGET_DIRECTORIES}" |
|
|
224 | install_qconfigs |
|
|
225 | fix_library_files |
|
|
226 | } |
|
|
227 | |
|
|
228 | # @FUNCTION: setqtenv |
|
|
229 | setqtenv() { |
| 87 | # Set up installation directories |
230 | # Set up installation directories |
| 88 | QTBASEDIR=/usr/$(get_libdir)/qt4 |
231 | QTBASEDIR=/usr/$(get_libdir)/qt4 |
| 89 | QTPREFIXDIR=/usr |
232 | QTPREFIXDIR=/usr |
| 90 | QTBINDIR=/usr/bin |
233 | QTBINDIR=/usr/bin |
| 91 | QTLIBDIR=/usr/$(get_libdir)/qt4 |
234 | QTLIBDIR=/usr/$(get_libdir)/qt4 |
|
|
235 | QMAKE_LIBDIR_QT=${QTLIBDIR} |
| 92 | QTPCDIR=/usr/$(get_libdir)/pkgconfig |
236 | QTPCDIR=/usr/$(get_libdir)/pkgconfig |
| 93 | QTDATADIR=/usr/share/qt4 |
237 | QTDATADIR=/usr/share/qt4 |
| 94 | QTDOCDIR=/usr/share/doc/qt-${PV} |
238 | QTDOCDIR=/usr/share/doc/qt-${PV} |
| 95 | QTHEADERDIR=/usr/include/qt4 |
239 | QTHEADERDIR=/usr/include/qt4 |
| 96 | QTPLUGINDIR=${QTLIBDIR}/plugins |
240 | QTPLUGINDIR=${QTLIBDIR}/plugins |
| 97 | QTSYSCONFDIR=/etc/qt4 |
241 | QTSYSCONFDIR=/etc/qt4 |
| 98 | QTTRANSDIR=${QTDATADIR}/translations |
242 | QTTRANSDIR=${QTDATADIR}/translations |
| 99 | QTEXAMPLESDIR=${QTDATADIR}/examples |
243 | QTEXAMPLESDIR=${QTDATADIR}/examples |
| 100 | QTDEMOSDIR=${QTDATADIR}/demos |
244 | QTDEMOSDIR=${QTDATADIR}/demos |
| 101 | |
245 | QT_INSTALL_PREFIX=/usr/$(get_libdir)/qt4 |
| 102 | PLATFORM=$(qt_mkspecs_dir) |
246 | PLATFORM=$(qt_mkspecs_dir) |
| 103 | |
247 | |
| 104 | PATH="${S}/bin:${PATH}" |
248 | unset QMAKESPEC |
| 105 | LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" |
|
|
| 106 | |
|
|
| 107 | if ! version_is_at_least 4.1 $(gcc-version) ; then |
|
|
| 108 | ewarn "Using a GCC version lower than 4.1 is not supported!" |
|
|
| 109 | echo |
|
|
| 110 | ebeep 3 |
|
|
| 111 | fi |
|
|
| 112 | |
|
|
| 113 | if use custom-cxxflags; then |
|
|
| 114 | echo |
|
|
| 115 | ewarn "You have set USE=custom-cxxflags, which means Qt will be built with the" |
|
|
| 116 | ewarn "CXXFLAGS you have set in /etc/make.conf. This is not supported, and we" |
|
|
| 117 | ewarn "recommend to unset this useflag. But you are free to experiment with it." |
|
|
| 118 | ewarn "Just do not start crying if it breaks your system, or eats your kitten" |
|
|
| 119 | ewarn "for breakfast. ;-) " |
|
|
| 120 | echo |
|
|
| 121 | fi |
|
|
| 122 | |
|
|
| 123 | } |
|
|
| 124 | |
|
|
| 125 | # @ECLASS-VARIABLE: QT4_TARGET_DIRECTORIES |
|
|
| 126 | # @DESCRIPTION: |
|
|
| 127 | # Arguments for build_target_directories. Takes the directories, in which the |
|
|
| 128 | # code should be compiled. This is a space-separated list |
|
|
| 129 | |
|
|
| 130 | # @ECLASS-VARIABLE: QT4_EXTRACT_DIRECTORIES |
|
|
| 131 | # @DESCRIPTION: |
|
|
| 132 | # Space separated list including the directories that will be extracted from Qt |
|
|
| 133 | # tarball |
|
|
| 134 | |
|
|
| 135 | # @FUNCTION: qt4-build_src_unpack |
|
|
| 136 | # @DESCRIPTION: |
|
|
| 137 | # Unpacks the sources |
|
|
| 138 | qt4-build_src_unpack() { |
|
|
| 139 | local target targets licenses |
|
|
| 140 | if version_is_at_least 4.5 ${PV} ; then |
|
|
| 141 | licenses="LICENSE.GPL3 LICENSE.LGPL" |
|
|
| 142 | else |
|
|
| 143 | licenses="LICENSE.GPL2 LICENSE.GPL3" |
|
|
| 144 | fi |
|
|
| 145 | for target in configure ${licenses} projects.pro \ |
|
|
| 146 | src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \ |
|
|
| 147 | ${QT4_EXTRACT_DIRECTORIES}; do |
|
|
| 148 | targets="${targets} ${MY_P}/${target}" |
|
|
| 149 | done |
|
|
| 150 | |
|
|
| 151 | echo tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets} |
|
|
| 152 | tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets} |
|
|
| 153 | |
|
|
| 154 | case "${PV}" in |
|
|
| 155 | 4.4.?) |
|
|
| 156 | echo tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2 |
|
|
| 157 | tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2 |
|
|
| 158 | ;; |
|
|
| 159 | esac |
|
|
| 160 | |
|
|
| 161 | # Be backwards compatible for now |
|
|
| 162 | if [[ $EAPI != 2 ]]; then |
|
|
| 163 | qt4-build_src_prepare |
|
|
| 164 | fi |
|
|
| 165 | } |
|
|
| 166 | |
|
|
| 167 | # @ECLASS-VARIABLE: PATCHES |
|
|
| 168 | # @DESCRIPTION: |
|
|
| 169 | # In case you have patches to apply, specify them in PATCHES variable. Make sure |
|
|
| 170 | # to specify the full path. This variable is necessary for src_prepare phase. |
|
|
| 171 | # example: |
|
|
| 172 | # PATCHES="${FILESDIR}"/mypatch.patch |
|
|
| 173 | # ${FILESDIR}"/mypatch2.patch" |
|
|
| 174 | # |
|
|
| 175 | |
|
|
| 176 | # @FUNCTION: qt4-build_src_prepare |
|
|
| 177 | # @DESCRIPTION: |
|
|
| 178 | # Prepare the sources before the configure phase. Strip CFLAGS if necessary, and fix |
|
|
| 179 | # source files in order to respect CFLAGS/CXXFLAGS/LDFLAGS specified on /etc/make.conf. |
|
|
| 180 | qt4-build_src_prepare() { |
|
|
| 181 | cd "${S}" |
|
|
| 182 | |
|
|
| 183 | if [[ ${PN} != qt-core ]]; then |
|
|
| 184 | skip_qmake_build_patch |
|
|
| 185 | skip_project_generation_patch |
|
|
| 186 | symlink_binaries_to_buildtree |
|
|
| 187 | fi |
|
|
| 188 | |
|
|
| 189 | if ! use custom-cxxflags;then |
|
|
| 190 | # Don't let the user go too overboard with flags. |
|
|
| 191 | strip-flags |
|
|
| 192 | replace-flags -O3 -O2 |
|
|
| 193 | fi |
|
|
| 194 | |
|
|
| 195 | # Bug 178652 |
|
|
| 196 | if [[ "$(gcc-major-version)" == "3" ]] && use amd64; then |
|
|
| 197 | ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS" |
|
|
| 198 | append-flags -fno-gcse |
|
|
| 199 | fi |
|
|
| 200 | |
|
|
| 201 | # Unsupported old gcc versions - hardened needs this :( |
|
|
| 202 | if [[ $(gcc-major-version) -lt "4" ]] ; then |
|
|
| 203 | ewarn "Appending -fno-stack-protector to CXXFLAGS" |
|
|
| 204 | append-cxxflags -fno-stack-protector |
|
|
| 205 | # Bug 253127 |
|
|
| 206 | sed -e "/^QMAKE_CFLAGS\t/ s:$: -fno-stack-protector-all:" \ |
|
|
| 207 | -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed" |
|
|
| 208 | fi |
|
|
| 209 | |
|
|
| 210 | # Bug 172219 |
|
|
| 211 | sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ |
|
|
| 212 | -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ |
|
|
| 213 | -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ |
|
|
| 214 | -e "s:X11R6/::" \ |
|
|
| 215 | -i "${S}"/mkspecs/$(qt_mkspecs_dir)/qmake.conf || die "sed ${S}/mkspecs/$(qt_mkspecs_dir)/qmake.conf failed" |
|
|
| 216 | |
|
|
| 217 | sed -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \ |
|
|
| 218 | -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \ |
|
|
| 219 | -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \ |
|
|
| 220 | -i "${S}"/mkspecs/common/g++.conf || die "sed ${S}/mkspecs/common/g++.conf failed" |
|
|
| 221 | |
|
|
| 222 | base_src_prepare |
|
|
| 223 | } |
|
|
| 224 | |
|
|
| 225 | # @FUNCTION: qt4-build_src_configure |
|
|
| 226 | # @DESCRIPTION: |
|
|
| 227 | # Default configure phase |
|
|
| 228 | qt4-build_src_configure() { |
|
|
| 229 | |
|
|
| 230 | myconf="$(standard_configure_options) ${myconf}" |
|
|
| 231 | |
|
|
| 232 | echo ./configure ${myconf} |
|
|
| 233 | ./configure ${myconf} || die "./configure failed" |
|
|
| 234 | } |
|
|
| 235 | |
|
|
| 236 | # @FUNCTION: qt4-build_src_compile |
|
|
| 237 | # @DESCRIPTION: Actual compile phase |
|
|
| 238 | qt4-build_src_compile() { |
|
|
| 239 | # Be backwards compatible for now |
|
|
| 240 | if [[ $EAPI != 2 ]]; then |
|
|
| 241 | qt4-build_src_configure |
|
|
| 242 | fi |
|
|
| 243 | |
|
|
| 244 | build_directories "${QT4_TARGET_DIRECTORIES}" |
|
|
| 245 | } |
|
|
| 246 | |
|
|
| 247 | # @FUNCTION: qt4-build_src_install |
|
|
| 248 | # @DESCRIPTION: |
|
|
| 249 | # Perform the actual installation including some library fixes. |
|
|
| 250 | qt4-build_src_install() { |
|
|
| 251 | install_directories "${QT4_TARGET_DIRECTORIES}" |
|
|
| 252 | install_qconfigs |
|
|
| 253 | fix_library_files |
|
|
| 254 | } |
249 | } |
| 255 | |
250 | |
| 256 | # @FUNCTION: standard_configure_options |
251 | # @FUNCTION: standard_configure_options |
| 257 | # @DESCRIPTION: |
252 | # @DESCRIPTION: |
| 258 | # Sets up some standard configure options, like libdir (if necessary), whether |
253 | # Sets up some standard configure options, like libdir (if necessary), whether |
| … | |
… | |
| 316 | # Compiles the code in $QT4_TARGET_DIRECTORIES |
311 | # Compiles the code in $QT4_TARGET_DIRECTORIES |
| 317 | build_directories() { |
312 | build_directories() { |
| 318 | local dirs="$@" |
313 | local dirs="$@" |
| 319 | for x in ${dirs}; do |
314 | for x in ${dirs}; do |
| 320 | cd "${S}"/${x} |
315 | cd "${S}"/${x} |
|
|
316 | sed -i -e "s:\$\$\[QT_INSTALL_LIBS\]:/usr/$(get_libdir)/qt4:g" $(find "${S}" -name '*.pr[io]') "${S}"/mkspecs/common/linux.conf || die |
| 321 | "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qmake failed" |
317 | "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qmake failed" |
| 322 | emake || die "emake failed" |
318 | emake || die "emake failed" |
| 323 | done |
319 | done |
| 324 | } |
320 | } |
| 325 | |
321 | |
| … | |
… | |
| 451 | ewarn "Packages that typically need to be recompiled are kdelibs from KDE4, any" |
447 | ewarn "Packages that typically need to be recompiled are kdelibs from KDE4, any" |
| 452 | ewarn "additional KDE4/Qt4 styles, qscintilla and PyQt4. Before filing a bug report," |
448 | ewarn "additional KDE4/Qt4 styles, qscintilla and PyQt4. Before filing a bug report," |
| 453 | ewarn "make sure all your Qt4 packages are up-to-date and built with the same" |
449 | ewarn "make sure all your Qt4 packages are up-to-date and built with the same" |
| 454 | ewarn "configuration." |
450 | ewarn "configuration." |
| 455 | ewarn |
451 | ewarn |
| 456 | ewarn "For more information, see http://doc.trolltech.com/4.4/plugins-howto.html" |
452 | ewarn "For more information, see http://doc.trolltech.com/${PV%.*}/plugins-howto.html" |
| 457 | echo |
453 | echo |
| 458 | } |
454 | } |
| 459 | |
455 | |
| 460 | # @FUNCTION: skip_qmake_build_patch |
456 | # @FUNCTION: skip_qmake_build_patch |
| 461 | # @DESCRIPTION: |
457 | # @DESCRIPTION: |
| … | |
… | |
| 632 | elif [[ ${CXX/icpc/} != ${CXX} ]]; then |
628 | elif [[ ${CXX/icpc/} != ${CXX} ]]; then |
| 633 | spec="${spec}-icc" |
629 | spec="${spec}-icc" |
| 634 | else |
630 | else |
| 635 | die "Unknown compiler ${CXX}." |
631 | die "Unknown compiler ${CXX}." |
| 636 | fi |
632 | fi |
|
|
633 | if [[ -n "${LIBDIR/lib}" ]]; then |
|
|
634 | spec="${spec}-${LIBDIR/lib}" |
|
|
635 | fi |
| 637 | |
636 | |
| 638 | echo "${spec}" |
637 | echo "${spec}" |
| 639 | } |
638 | } |
| 640 | |
639 | |
| 641 | case ${EAPI:-0} in |
640 | case ${EAPI:-0} in |