/[gentoo-x86]/eclass/qt4-build.eclass
Gentoo

Diff of /eclass/qt4-build.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.15 Revision 1.17
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.15 2008/08/11 12:52:10 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.
31S=${WORKDIR}/${MY_P} 31S=${WORKDIR}/${MY_P}
32 32
33SRC_URI="ftp://ftp.trolltech.com/qt/source/${MY_P}.tar.bz2" 33SRC_URI="ftp://ftp.trolltech.com/qt/source/${MY_P}.tar.bz2"
34 34
35case "${PV}" in 35case "${PV}" in
36 4.4.1|4.4.0|4.4.0_rc*) 36 4.4.2|4.4.1|4.4.0|4.4.0_rc*)
37 SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2" 37 SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-headers.tar.bz2"
38 ;; 38 ;;
39 *) 39 *)
40 ;; 40 ;;
41esac 41esac
75 75
76 echo tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets} 76 echo tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets}
77 tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets} 77 tar xjpf "${DISTDIR}"/${MY_P}.tar.bz2 ${targets}
78 78
79 case "${PV}" in 79 case "${PV}" in
80 4.4.1|4.4.0|4.4.0_rc*) 80 4.4.2|4.4.1|4.4.0|4.4.0_rc*)
81 echo tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2 81 echo tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2
82 tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2 82 tar xjpf "${DISTDIR}"/${MY_P}-headers.tar.bz2
83 ;; 83 ;;
84 esac 84 esac
85} 85}
301 generate_qconfigs 301 generate_qconfigs
302} 302}
303 303
304qt4-build_pkg_postinst() { 304qt4-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
308skip_qmake_build_patch() { 322skip_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"

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20