Gentoo Archives: gentoo-commits

From: "Caleb Tennis (caleb)" <caleb@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/qt-webkit: qt-webkit-4.4.0_rc1.ebuild
Date: Thu, 20 Dec 2007 16:08:05
Message-Id: E1J5NwG-0007h7-DH@stork.gentoo.org
1 caleb 07/12/20 16:08:00
2
3 Modified: qt-webkit-4.4.0_rc1.ebuild
4 Log:
5 Add webkit to qconfig.pri
6 (Portage version: 2.1.3.16)
7
8 Revision Changes Path
9 1.2 x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild?r1=1.1&r2=1.2
14
15 Index: qt-webkit-4.4.0_rc1.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-webkit/qt-webkit-4.4.0_rc1.ebuild,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- qt-webkit-4.4.0_rc1.ebuild 20 Dec 2007 12:25:40 -0000 1.1
22 +++ qt-webkit-4.4.0_rc1.ebuild 20 Dec 2007 16:07:59 -0000 1.2
23 @@ -1,6 +1,6 @@
24 # Copyright 1999-2007 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $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 $
27 +# $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 $
28
29 inherit eutils flag-o-matic toolchain-funcs multilib
30
31 @@ -39,26 +39,10 @@
32 QTDEMOSDIR=${QTDATADIR}/demos
33 }
34
35 -qt_use() {
36 - local flag="$1"
37 - local feature="$1"
38 - local enableval=
39 -
40 - [[ -n $2 ]] && feature=$2
41 - [[ -n $3 ]] && enableval="-$3"
42 -
43 - useq $flag && echo "${enableval}-${feature}" || echo "-no-${feature}"
44 - return 0
45 -}
46 -
47 src_unpack() {
48
49 unpack ${A}
50 cd "${S}"
51 - # epatch "${FILESDIR}"/qt-4.2.3-hppa-ldcw-fix.patch
52 -
53 - cd "${S}"/mkspecs/$(qt_mkspecs_dir)
54 - # set c/xxflags and ldflags
55
56 # Don't let the user go too overboard with flags. If you really want to, uncomment
57 # out the line below and give 'er a whirl.
58 @@ -70,7 +54,9 @@
59 append-flags -fno-stack-protector
60 fi
61
62 -
63 + # Override the creation of qmake and copy over the one from the system. This speeds up compilation time a lot.
64 + epatch "${FILESDIR}"/configure.patch
65 + cp ${QTBINDIR}/qmake "${S}"/bin/qmake
66 }
67
68 src_compile() {
69 @@ -125,3 +111,17 @@
70 dodir ${QTPCDIR}
71 mv "${D}"/${QTLIBDIR}/pkgconfig/*.pc "${D}"/${QTPCDIR}
72 }
73 +
74 +pkg_postinst()
75 +{
76 + # Need to add webkit to QT_CONFIG line
77 + sed -i -e "s:webkit ::g" ${QTDATADIR}/mkspecs/qconfig.pri
78 + sed -i -e "s:QT_CONFIG += :QT_CONFIG += webkit :g" ${QTDATADIR}/mkspecs/qconfig.pri
79 +}
80 +
81 +pkg_postrm()
82 +{
83 + # Need to add qdbus to QT_CONFIG line
84 + sed -i -e "s:webkit ::g" ${QTDATADIR}/mkspecs/qconfig.pri
85 +}
86 +
87
88
89
90 --
91 gentoo-commits@g.o mailing list