summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2005-07-13 16:13:26 +0000
committerCaleb Tennis <caleb@gentoo.org>2005-07-13 16:13:26 +0000
commitb3eceef973f33b70d16742c3cdb7848488745ff6 (patch)
tree3b4418f7e65afb4662183f00dd84f8d16afb7634 /x11-libs/qt/qt-4.0.0.ebuild
parentUpdate include_path. (diff)
downloadgentoo-2-b3eceef973f33b70d16742c3cdb7848488745ff6.tar.gz
gentoo-2-b3eceef973f33b70d16742c3cdb7848488745ff6.tar.bz2
gentoo-2-b3eceef973f33b70d16742c3cdb7848488745ff6.zip
Add visibility support to qt4 ebuild if gcc major version = 4
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'x11-libs/qt/qt-4.0.0.ebuild')
-rw-r--r--x11-libs/qt/qt-4.0.0.ebuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/x11-libs/qt/qt-4.0.0.ebuild b/x11-libs/qt/qt-4.0.0.ebuild
index 64ced9b2cc39..54b5dbe7d516 100644
--- a/x11-libs/qt/qt-4.0.0.ebuild
+++ b/x11-libs/qt/qt-4.0.0.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt/qt-4.0.0.ebuild,v 1.5 2005/07/08 12:19:22 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt/qt-4.0.0.ebuild,v 1.6 2005/07/13 16:13:26 caleb Exp $
-inherit eutils flag-o-matic
+inherit eutils flag-o-matic toolchain-funcs
SRCTYPE="opensource-desktop"
DESCRIPTION="QT version ${PV}"
@@ -87,7 +87,12 @@ src_unpack() {
epatch ${FILESDIR}/qt4-rpath.patch
epatch ${FILESDIR}/qt4-nomkdir.patch
- sed -i -e "s:CFG_REDUCE_EXPORTS=auto:CFG_REDUCE_EXPORTS=no:" configure
+ if [[ $(gcc-major-version = "4") ]]; then
+ einfo "Visibility support: auto"
+ else
+ einfo "Visibility support: disabled"
+ sed -i -e "s:CFG_REDUCE_EXPORTS=auto:CFG_REDUCE_EXPORTS=no:" configure
+ fi
}
src_compile() {