diff options
author | Caleb Tennis <caleb@gentoo.org> | 2007-12-20 16:08:00 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2007-12-20 16:08:00 +0000 |
commit | 01a2fded2a5646e1c33cc5a97a70278e38a92244 (patch) | |
tree | 7b2f014cd5941964c7c2f7d86d4223d4d80f5e26 /x11-libs | |
parent | Stable for HPPA (bug #202853). (diff) | |
download | gentoo-2-01a2fded2a5646e1c33cc5a97a70278e38a92244.tar.gz gentoo-2-01a2fded2a5646e1c33cc5a97a70278e38a92244.tar.bz2 gentoo-2-01a2fded2a5646e1c33cc5a97a70278e38a92244.zip |
Add webkit to qconfig.pri
(Portage version: 2.1.3.16)
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/qt-webkit/files/configure.patch | 12 | ||||
-rw-r--r-- | x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild | 36 |
2 files changed, 30 insertions, 18 deletions
diff --git a/x11-libs/qt-webkit/files/configure.patch b/x11-libs/qt-webkit/files/configure.patch new file mode 100644 index 000000000000..2e07f6b0cc74 --- /dev/null +++ b/x11-libs/qt-webkit/files/configure.patch @@ -0,0 +1,12 @@ +--- configure.orig 2007-12-20 08:22:04.000000000 -0500 ++++ configure 2007-12-20 08:22:08.000000000 -0500 +@@ -3615,7 +3615,7 @@ + } + + # build qmake +-if true; then ###[ '!' -f "$outpath/bin/qmake" ]; ++if false; then ###[ '!' -f "$outpath/bin/qmake" ]; + echo "Creating qmake. Please wait..." + + OLD_QCONFIG_H= + diff --git a/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild b/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild index d1151391d283..b22298ed1486 100644 --- a/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild +++ b/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild,v 1.1 2007/12/20 12:25:40 caleb Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild,v 1.2 2007/12/20 16:07:59 caleb Exp $ inherit eutils flag-o-matic toolchain-funcs multilib @@ -39,26 +39,10 @@ pkg_setup() { QTDEMOSDIR=${QTDATADIR}/demos } -qt_use() { - local flag="$1" - local feature="$1" - local enableval= - - [[ -n $2 ]] && feature=$2 - [[ -n $3 ]] && enableval="-$3" - - useq $flag && echo "${enableval}-${feature}" || echo "-no-${feature}" - return 0 -} - src_unpack() { unpack ${A} cd "${S}" - # epatch "${FILESDIR}"/qt-4.2.3-hppa-ldcw-fix.patch - - cd "${S}"/mkspecs/$(qt_mkspecs_dir) - # set c/xxflags and ldflags # Don't let the user go too overboard with flags. If you really want to, uncomment # out the line below and give 'er a whirl. @@ -70,7 +54,9 @@ src_unpack() { append-flags -fno-stack-protector fi - + # Override the creation of qmake and copy over the one from the system. This speeds up compilation time a lot. + epatch "${FILESDIR}"/configure.patch + cp ${QTBINDIR}/qmake "${S}"/bin/qmake } src_compile() { @@ -125,3 +111,17 @@ src_install() { dodir ${QTPCDIR} mv "${D}"/${QTLIBDIR}/pkgconfig/*.pc "${D}"/${QTPCDIR} } + +pkg_postinst() +{ + # Need to add webkit to QT_CONFIG line + sed -i -e "s:webkit ::g" ${QTDATADIR}/mkspecs/qconfig.pri + sed -i -e "s:QT_CONFIG += :QT_CONFIG += webkit :g" ${QTDATADIR}/mkspecs/qconfig.pri +} + +pkg_postrm() +{ + # Need to add qdbus to QT_CONFIG line + sed -i -e "s:webkit ::g" ${QTDATADIR}/mkspecs/qconfig.pri +} + |