/[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.71 Revision 1.73
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-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.71 2010/05/25 13:39:46 spatz Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.73 2010/05/27 21:27:31 spatz 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>,
140 src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \ 140 src/{qbase,qt_targets,qt_install}.pri bin config.tests mkspecs qmake \
141 ${QT4_EXTRACT_DIRECTORIES}; do 141 ${QT4_EXTRACT_DIRECTORIES}; do
142 targets+=" ${MY_P}/${target}" 142 targets+=" ${MY_P}/${target}"
143 done 143 done
144 144
145 echo tar xzpf "${DISTDIR}"/${MY_P}.tar.gz ${targets} 145 echo tar xzf "${DISTDIR}"/${MY_P}.tar.gz ${targets}
146 tar xzpf "${DISTDIR}"/${MY_P}.tar.gz ${targets} || die 146 tar xzf "${DISTDIR}"/${MY_P}.tar.gz ${targets} || die
147} 147}
148 148
149# @ECLASS-VARIABLE: PATCHES 149# @ECLASS-VARIABLE: PATCHES
150# @DESCRIPTION: 150# @DESCRIPTION:
151# In case you have patches to apply, specify them in PATCHES variable. Make sure 151# In case you have patches to apply, specify them in PATCHES variable. Make sure
162qt4-build_src_prepare() { 162qt4-build_src_prepare() {
163 setqtenv 163 setqtenv
164 cd "${S}" 164 cd "${S}"
165 165
166 # fix qt 4.7 regression that skips -fvisibility=hidden 166 # fix qt 4.7 regression that skips -fvisibility=hidden
167 if [[ "${PV}" == "4.7.0_beta1" ]]; then 167 if version_is_at_least "4.7.0_beta1"; then
168 sed -e "s/^gcc|g++)/*gcc|*g++)/" \ 168 sed -e "s/^gcc|g++)/*gcc|*g++)/" \
169 -i config.tests/unix/fvisibility.test || 169 -i config.tests/unix/fvisibility.test ||
170 die "visibility fixing sed failed" 170 die "visibility fixing sed failed"
171 fi 171 fi
172 172

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.73

  ViewVC Help
Powered by ViewVC 1.1.20