diff options
author | Davide Pesavento <pesa@gentoo.org> | 2011-11-19 20:31:12 +0000 |
---|---|---|
committer | Davide Pesavento <pesa@gentoo.org> | 2011-11-19 20:31:12 +0000 |
commit | 1b92adfa708ce541733cd09942bc4f74be429bce (patch) | |
tree | 28d31398be2ff2db5c1ea361bc672c9de7e1bc3e /eclass/qt4-build.eclass | |
parent | [dev-util/catalyst] Bump catalyst to the 2.0.7.1 revision. This revision fixe... (diff) | |
download | historical-1b92adfa708ce541733cd09942bc4f74be429bce.tar.gz historical-1b92adfa708ce541733cd09942bc4f74be429bce.tar.bz2 historical-1b92adfa708ce541733cd09942bc4f74be429bce.zip |
Remove support for Qt 4.5, add blockers for qt-declarative, small cleanup.
Diffstat (limited to 'eclass/qt4-build.eclass')
-rw-r--r-- | eclass/qt4-build.eclass | 65 |
1 files changed, 28 insertions, 37 deletions
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass index 65ac13eafb19..15bfbbb1df76 100644 --- a/eclass/qt4-build.eclass +++ b/eclass/qt4-build.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.99 2011/11/19 20:00:35 pesa Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.100 2011/11/19 20:31:12 pesa Exp $ # @ECLASS: qt4-build.eclass # @MAINTAINER: @@ -12,24 +12,21 @@ inherit base eutils multilib toolchain-funcs flag-o-matic versionator MY_PV=${PV/_/-} -if version_is_at_least 4.5.99999999; then - MY_P=qt-everywhere-opensource-src-${MY_PV} - [[ ${CATEGORY}/${PN} != x11-libs/qt-xmlpatterns ]] && - [[ ${CATEGORY}/${PN} != x11-themes/qgtkstyle ]] && - IUSE="+exceptions" -else - MY_P=qt-x11-opensource-src-${MY_PV} -fi - -if version_is_at_least 4.7.99999999; then - IUSE+=" c++0x qpa" -fi +MY_P=qt-everywhere-opensource-src-${MY_PV} HOMEPAGE="http://qt.nokia.com/" SRC_URI="http://get.qt.nokia.com/qt/source/${MY_P}.tar.gz" - LICENSE="|| ( LGPL-2.1 GPL-3 )" -IUSE+=" debug pch aqua" + +IUSE="aqua debug pch" + +[[ ${CATEGORY}/${PN} != x11-libs/qt-xmlpatterns ]] && +[[ ${CATEGORY}/${PN} != x11-themes/qgtkstyle ]] && + IUSE+=" +exceptions" + +if version_is_at_least 4.7.99999999; then + IUSE+=" c++0x qpa" +fi RDEPEND=" !<x11-libs/qt-assistant-${PV} @@ -38,6 +35,8 @@ RDEPEND=" !>x11-libs/qt-core-${PV}-r9999 !<x11-libs/qt-dbus-${PV} !>x11-libs/qt-dbus-${PV}-r9999 + !<x11-libs/qt-declarative-${PV} + !>x11-libs/qt-declarative-${PV}-r9999 !<x11-libs/qt-demo-${PV} !>x11-libs/qt-demo-${PV}-r9999 !<x11-libs/qt-gui-${PV} @@ -74,8 +73,8 @@ qt4-build_pkg_setup() { # Protect users by not allowing downgrades between releases # Downgrading revisions within the same release should be allowed - if has_version '>'${CATEGORY}/${P}-r9999 ; then - if [[ -z $I_KNOW_WHAT_I_AM_DOING ]] ; then + if has_version '>'${CATEGORY}/${P}-r9999; then + if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then eerror "Sanity check to keep you from breaking your system:" eerror " Downgrading Qt is completely unsupported and will break your system!" die "aborting to save your system" @@ -203,8 +202,8 @@ qt4-build_src_prepare() { fi if [[ ${PN} != qt-core ]]; then - skip_qmake_build_patch - skip_project_generation_patch + skip_qmake_build + skip_project_generation symlink_binaries_to_buildtree fi @@ -219,7 +218,7 @@ qt4-build_src_prepare() { append-flags -fno-gcse fi - if has c++0x ${IUSE//+} && use c++0x; then + if use_if_iuse c++0x; then ewarn "You are about to build Qt4 using the C++11 standard. Even though" ewarn "this is an official standard, some of the reverse dependencies" ewarn "may fail to compile or link againt the Qt4 libraries. Before" @@ -501,17 +500,9 @@ standard_configure_options() { *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;; esac - # 4.5: build everything but qt-xmlpatterns w/o exceptions - # 4.6: exceptions USE flag + # exceptions USE flag local exceptions="-exceptions" - case "${PV}" in - 4.5.*) - [[ ${PN} == "qt-xmlpatterns" ]] || exceptions="-no-exceptions" - ;; - *) - has exceptions "${IUSE//+}" && exceptions="$(qt_use exceptions)" - ;; - esac + in_iuse exceptions && exceptions="$(qt_use exceptions)" # note about -reduce-relocations: # That flag seems to introduce major breakage to applications, @@ -688,18 +679,18 @@ qt4-build_pkg_postinst() { generate_qconfigs } -# @FUNCTION: skip_qmake_build_patch +# @FUNCTION: skip_qmake_build # @DESCRIPTION: # Don't need to build qmake, as it's already installed from qt-core -skip_qmake_build_patch() { +skip_qmake_build() { # Don't need to build qmake, as it's already installed from qt-core sed -i -e "s:if true:if false:g" "${S}"/configure || die "sed failed" } -# @FUNCTION: skip_project_generation_patch +# @FUNCTION: skip_project_generation # @DESCRIPTION: # Exit the script early by throwing in an exit before all of the .pro files are scanned -skip_project_generation_patch() { +skip_project_generation() { # Exit the script early by throwing in an exit before all of the .pro files are scanned sed -e "s:echo \"Finding:exit 0\n\necho \"Finding:g" \ -i "${S}"/configure || die "sed failed" @@ -711,7 +702,7 @@ skip_project_generation_patch() { # time symlink_binaries_to_buildtree() { for bin in qmake moc uic rcc; do - ln -s ${QTBINDIR}/${bin} "${S}"/bin/ || die "symlinking ${bin} to ${S}/bin failed" + ln -s "${QTBINDIR}"/${bin} "${S}"/bin/ || die "symlinking ${bin} to ${S}/bin failed" done } @@ -793,7 +784,7 @@ qt_mkspecs_dir() { *-linux-*|*-linux) spec=linux ;; *) - die "Unknown CHOST, no platform chosen." + die "Unknown CHOST, no platform chosen" esac CXX=$(tc-getCXX) @@ -802,7 +793,7 @@ qt_mkspecs_dir() { elif [[ ${CXX} == *icpc* ]]; then spec+=-icc else - die "Unknown compiler '${CXX}'." + die "Unknown compiler '${CXX}'" fi if [[ -n ${LIBDIR/lib} ]]; then spec+=-${LIBDIR/lib} |