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-qt3support: qt-qt3support-4.4.0_rc1.ebuild
Date: Thu, 20 Dec 2007 16:09:26
Message-Id: E1J5NxW-0007iB-59@stork.gentoo.org
1 caleb 07/12/20 16:09:18
2
3 Modified: qt-qt3support-4.4.0_rc1.ebuild
4 Log:
5 add qt3support to qconfig.pri
6 (Portage version: 2.1.3.16)
7
8 Revision Changes Path
9 1.3 x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild?rev=1.3&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild?rev=1.3&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild?r1=1.2&r2=1.3
14
15 Index: qt-qt3support-4.4.0_rc1.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild,v
18 retrieving revision 1.2
19 retrieving revision 1.3
20 diff -u -r1.2 -r1.3
21 --- qt-qt3support-4.4.0_rc1.ebuild 20 Dec 2007 13:40:53 -0000 1.2
22 +++ qt-qt3support-4.4.0_rc1.ebuild 20 Dec 2007 16:09:17 -0000 1.3
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-qt3support/qt-qt3support-4.4.0_rc1.ebuild,v 1.2 2007/12/20 13:40:53 caleb Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-qt3support/qt-qt3support-4.4.0_rc1.ebuild,v 1.3 2007/12/20 16:09:17 caleb Exp $
28
29 inherit eutils flag-o-matic toolchain-funcs multilib
30
31 @@ -57,6 +57,12 @@
32 # Override the creation of qmake and copy over the one from the system. This speeds up compilation time a lot.
33 epatch "${FILESDIR}"/configure.patch
34 cp ${QTBINDIR}/qmake "${S}"/bin/qmake
35 +
36 + if use accessibility && !built_with_use =x11-libs/qt-4* accessibility; then
37 + eerror "Attempting to build qt3support with accessibility use flag without support in Qt4."
38 + eerror "You must either turn off this use flag or re-emerge x11-libs/qt with accessibility support."
39 + die
40 + fi
41 }
42
43 src_compile() {
44 @@ -127,3 +133,17 @@
45 dodir ${QTPCDIR}
46 mv "${D}"/${QTLIBDIR}/pkgconfig/*.pc "${D}"/${QTPCDIR}
47 }
48 +
49 +pkg_postinst()
50 +{
51 + # Need to add qt3support to QT_CONFIG line
52 + sed -i -e "s:qt3support ::g" ${QTDATADIR}/mkspecs/qconfig.pri
53 + sed -i -e "s:QT_CONFIG += :QT_CONFIG += qt3support :g" ${QTDATADIR}/mkspecs/qconfig.pri
54 +}
55 +
56 +pkg_postrm()
57 +{
58 + # Need to add qt3support to QT_CONFIG line
59 + sed -i -e "s:qt3support ::g" ${QTDATADIR}/mkspecs/qconfig.pri
60 +}
61 +
62
63
64
65 --
66 gentoo-commits@g.o mailing list