| 1 | # Copyright 2007-2008 Gentoo Foundation |
1 | # Copyright 2007-2008 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.16 2008/09/18 22:07:50 yngwin Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.17 2009/01/12 23:47:16 yngwin Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: qt4-build.eclass |
5 | # @ECLASS: qt4-build.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Caleb Tennis <caleb@gentoo.org> |
7 | # Caleb Tennis <caleb@gentoo.org> |
| 8 | # @BLURB: Eclass for Qt4 split ebuilds. |
8 | # @BLURB: Eclass for Qt4 split ebuilds. |
| … | |
… | |
| 301 | generate_qconfigs |
301 | generate_qconfigs |
| 302 | } |
302 | } |
| 303 | |
303 | |
| 304 | qt4-build_pkg_postinst() { |
304 | qt4-build_pkg_postinst() { |
| 305 | generate_qconfigs |
305 | generate_qconfigs |
|
|
306 | echo |
|
|
307 | ewarn "After a rebuild or upgrade of Qt, it can happen that Qt plugins (such as Qt" |
|
|
308 | ewarn "and KDE styles and widgets) can no longer be loaded. In this situation you" |
|
|
309 | ewarn "should recompile the packages providing these plugins. Also, make sure you" |
|
|
310 | ewarn "compile the Qt packages, and the packages that depend on it, with the same" |
|
|
311 | ewarn "GCC version and the same USE flag settings (especially the debug flag)." |
|
|
312 | ewarn |
|
|
313 | ewarn "Packages that typically need to be recompiled are kdelibs from KDE4, any" |
|
|
314 | ewarn "additional KDE4/Qt4 styles, qscintilla and PyQt4. Before filing a bug report," |
|
|
315 | ewarn "make sure all your Qt4 packages are up-to-date and built with the same" |
|
|
316 | ewarn "configuration." |
|
|
317 | ewarn |
|
|
318 | ewarn "For more information, see http://doc.trolltech.com/4.4/plugins-howto.html" |
|
|
319 | echo |
| 306 | } |
320 | } |
| 307 | |
321 | |
| 308 | skip_qmake_build_patch() { |
322 | skip_qmake_build_patch() { |
| 309 | # Don't need to build qmake, as it's already installed from qt-core |
323 | # Don't need to build qmake, as it's already installed from qt-core |
| 310 | sed -i -e "s:if true:if false:g" "${S}"/configure || die "Sed failed" |
324 | sed -i -e "s:if true:if false:g" "${S}"/configure || die "Sed failed" |