| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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.107 2011/12/21 23:38:45 pesa Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.108 2011/12/25 18:49:52 pesa Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: qt4-build.eclass |
5 | # @ECLASS: qt4-build.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Qt herd <qt@gentoo.org> |
7 | # Qt herd <qt@gentoo.org> |
| 8 | # @BLURB: Eclass for Qt4 split ebuilds. |
8 | # @BLURB: Eclass for Qt4 split ebuilds. |
| … | |
… | |
| 176 | # source files in order to respect CFLAGS/CXXFLAGS/LDFLAGS specified on /etc/make.conf. |
176 | # source files in order to respect CFLAGS/CXXFLAGS/LDFLAGS specified on /etc/make.conf. |
| 177 | qt4-build_src_prepare() { |
177 | qt4-build_src_prepare() { |
| 178 | setqtenv |
178 | setqtenv |
| 179 | cd "${S}" |
179 | cd "${S}" |
| 180 | |
180 | |
| 181 | # fix qt 4.7 regression that skips -fvisibility=hidden |
|
|
| 182 | if version_is_at_least "4.7.0_beta1"; then |
|
|
| 183 | sed -e "s/^gcc|g++)/*gcc|*g++)/" \ |
|
|
| 184 | -i config.tests/unix/fvisibility.test || |
|
|
| 185 | die "visibility fixing sed failed" |
|
|
| 186 | fi |
|
|
| 187 | |
|
|
| 188 | if version_is_at_least "4.7"; then |
181 | if version_is_at_least "4.7"; then |
| 189 | # fix libX11 dependency on non X packages |
182 | # fix libX11 dependency on non X packages |
| 190 | local nolibx11_pkgs="qt-core qt-dbus qt-script qt-sql qt-test qt-xmlpatterns" |
183 | local nolibx11_pkgs="qt-core qt-dbus qt-script qt-sql qt-test qt-xmlpatterns" |
| 191 | has ${PN} ${nolibx11_pkgs} && qt_nolibx11 |
184 | has ${PN} ${nolibx11_pkgs} && qt_nolibx11 |
| 192 | |
185 | |