/[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.67 Revision 1.69
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.67 2010/05/22 15:22:46 wired Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.69 2010/05/24 14:27:13 wired 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>,
65 65
66# @FUNCTION: qt4-build_pkg_setup 66# @FUNCTION: qt4-build_pkg_setup
67# @DESCRIPTION: 67# @DESCRIPTION:
68# Sets up S, MY_P, PATH, and LD_LIBRARY_PATH 68# Sets up S, MY_P, PATH, and LD_LIBRARY_PATH
69qt4-build_pkg_setup() { 69qt4-build_pkg_setup() {
70 if [[ "${PN}" == "qt-webkit" ]]; then
71 if [[ "${CFLAGS}" =~ "-ggdb" ]] || [[ "${CXXFLAGS}" =~ "-ggdb" ]]; then
72 echo
73 ewarn "Your \$C{,XX}FLAGS contain -ggdb. You may experience really"
74 ewarn "long compilation times and/or increased memory usage."
75 ewarn "If compilation fails, please try removing -ggdb before"
76 ewarn "reporting a bug."
77 ewarn "For more info check out bug #307861"
78 echo
79 fi
80 fi
81
70 [[ ${EAPI} == 2 ]] && use !prefix && EPREFIX= 82 [[ ${EAPI} == 2 ]] && use !prefix && EPREFIX=
71 83
72 # Protect users by not allowing downgrades between releases 84 # Protect users by not allowing downgrades between releases
73 # Downgrading revisions within the same release should be allowed 85 # Downgrading revisions within the same release should be allowed
74 if has_version '>'${CATEGORY}/${P}-r9999 ; then 86 if has_version '>'${CATEGORY}/${P}-r9999 ; then
147# Prepare the sources before the configure phase. Strip CFLAGS if necessary, and fix 159# Prepare the sources before the configure phase. Strip CFLAGS if necessary, and fix
148# source files in order to respect CFLAGS/CXXFLAGS/LDFLAGS specified on /etc/make.conf. 160# source files in order to respect CFLAGS/CXXFLAGS/LDFLAGS specified on /etc/make.conf.
149qt4-build_src_prepare() { 161qt4-build_src_prepare() {
150 setqtenv 162 setqtenv
151 cd "${S}" 163 cd "${S}"
164
165 # fix qt 4.7 regression that skips -fvisibility=hidden
166 if [[ "${PV}" == "4.7.0_beta1" ]]; then
167 sed -e "s/^gcc|g++)/*gcc|*g++)/" \
168 -i config.tests/unix/fvisibility.test ||
169 die "visibility fixing sed failed"
170 fi
152 171
153 if use aqua; then 172 if use aqua; then
154 # provide a proper macx-g++-64 173 # provide a proper macx-g++-64
155 use x64-macos && ln -s macx-g++ mkspecs/$(qt_mkspecs_dir) 174 use x64-macos && ln -s macx-g++ mkspecs/$(qt_mkspecs_dir)
156 175

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.69

  ViewVC Help
Powered by ViewVC 1.1.20