Gentoo Archives: gentoo-commits

From: "Theo Chatzimichos (tampakrap)" <tampakrap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/qt-assistant: ChangeLog qt-assistant-4.7.2.ebuild
Date: Tue, 01 Mar 2011 19:06:05
Message-Id: 20110301190556.024AD20054@flycatcher.gentoo.org
1 tampakrap 11/03/01 19:05:55
2
3 Modified: ChangeLog
4 Added: qt-assistant-4.7.2.ebuild
5 Log:
6 Version bump Qt 4.7.2
7
8 (Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.103 x11-libs/qt-assistant/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-assistant/ChangeLog?rev=1.103&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-assistant/ChangeLog?rev=1.103&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-assistant/ChangeLog?r1=1.102&r2=1.103
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-assistant/ChangeLog,v
20 retrieving revision 1.102
21 retrieving revision 1.103
22 diff -u -r1.102 -r1.103
23 --- ChangeLog 23 Dec 2010 07:54:34 -0000 1.102
24 +++ ChangeLog 1 Mar 2011 19:05:55 -0000 1.103
25 @@ -1,6 +1,12 @@
26 # ChangeLog for x11-libs/qt-assistant
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-assistant/ChangeLog,v 1.102 2010/12/23 07:54:34 ssuominen Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-assistant/ChangeLog,v 1.103 2011/03/01 19:05:55 tampakrap Exp $
31 +
32 +*qt-assistant-4.7.2 (01 Mar 2011)
33 +
34 + 01 Mar 2011; Theo Chatzimichos <tampakrap@g.o>
35 + +qt-assistant-4.7.2.ebuild:
36 + Version bump Qt 4.7.2
37
38 23 Dec 2010; Samuli Suominen <ssuominen@g.o>
39 qt-assistant-4.6.3.ebuild:
40
41
42
43 1.1 x11-libs/qt-assistant/qt-assistant-4.7.2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-assistant/qt-assistant-4.7.2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-assistant/qt-assistant-4.7.2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: qt-assistant-4.7.2.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-assistant/qt-assistant-4.7.2.ebuild,v 1.1 2011/03/01 19:05:55 tampakrap Exp $
53
54 EAPI="3"
55 inherit qt4-build
56
57 DESCRIPTION="The assistant help module for the Qt toolkit"
58 SLOT="4"
59 KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
60 IUSE="compat doc +glib qt3support trace"
61 SRC_URI+=" compat? ( ftp://ftp.qt.nokia.com/qt/source/${PN}-qassistantclient-library-compat-src-4.6.3.tar.gz )"
62
63 DEPEND="~x11-libs/qt-gui-${PV}[aqua=,debug=,glib=,qt3support=,trace?]
64 ~x11-libs/qt-sql-${PV}[aqua=,debug=,qt3support=,sqlite]
65 ~x11-libs/qt-webkit-${PV}[aqua=,debug=]
66 ~x11-libs/qt-declarative-${PV}[debug=,qt3support=]"
67 RDEPEND="${DEPEND}"
68
69 pkg_setup() {
70 # Pixeltool isn't really assistant related, but it relies on
71 # the assistant libraries. doc/qch/
72 QT4_TARGET_DIRECTORIES="
73 tools/assistant
74 tools/pixeltool
75 tools/qdoc3"
76 QT4_EXTRACT_DIRECTORIES="
77 tools/
78 demos/
79 examples/
80 src/
81 include/
82 doc/"
83
84 use trace && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
85 tools/qttracereplay"
86 QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
87 ${QT4_EXTRACT_DIRECTORIES}"
88 qt4-build_pkg_setup
89 }
90
91 src_unpack() {
92 qt4-build_src_unpack
93 # compat version
94 # http://labs.qt.nokia.com/2010/06/22/qt-assistant-compat-version-available-as-extra-source-package/
95 if use compat; then
96 unpack "${PN}"-qassistantclient-library-compat-src-4.6.3.tar.gz
97 mv "${WORKDIR}"/"${PN}"-qassistantclient-library-compat-version-4.6.3 \
98 "${S}"/tools/assistant/compat ||
99 die "moving compat to the right place failed"
100 tar xzf "${FILESDIR}"/"${PN}"-4.7-include.tar.gz -C "${S}"/include/ ||
101 die "unpacking the include files failed"
102 fi
103 }
104
105 src_prepare() {
106 qt4-build_src_prepare
107 if use compat; then
108 epatch "${FILESDIR}"/"${PN}"-4.7-fix-compat.patch
109 fi
110 }
111
112 src_configure() {
113 myconf="${myconf} -no-xkb -no-fontconfig -no-xrender -no-xrandr
114 -no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm -no-opengl
115 -no-nas-sound -no-dbus -iconv -no-cups -no-nis -no-gif -no-libpng
116 -no-libmng -no-libjpeg -no-openssl -system-zlib -no-phonon
117 -no-xmlpatterns -no-freetype -no-libtiff -no-accessibility
118 -no-fontconfig -no-multimedia -no-svg $(qt_use qt3support)"
119 ! use glib && myconf="${myconf} -no-glib"
120 qt4-build_src_configure
121 }
122
123 src_compile() {
124 # help libQtHelp find freshly built libQtCLucene (bug #289811)
125 export LD_LIBRARY_PATH="${S}/lib:${QTLIBDIR}"
126 export DYLD_LIBRARY_PATH="${S}/lib:${S}/lib/QtHelp.framework"
127
128 qt4-build_src_compile
129
130 # ugly hack to build docs
131 cd "${S}"
132 qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" projects.pro || die
133 emake qch_docs || die "emake qch_docs failed"
134 if use doc; then
135 emake docs || die "emake docs failed"
136 fi
137 qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" projects.pro || die
138 }
139
140 src_install() {
141 qt4-build_src_install
142 cd "${S}"
143 emake INSTALL_ROOT="${D}" install_qchdocs \
144 || die "failed to install qch docs"
145 if use doc; then
146 emake INSTALL_ROOT="${D}" install_htmldocs \
147 || die "failed to install htmldocs"
148 fi
149 dobin "${S}"/bin/qdoc3 || die "Failed to install qdoc3"
150 # install correct assistant icon, bug 241208
151 dodir /usr/share/pixmaps/ || die "dodir failed"
152 insinto /usr/share/pixmaps/
153 doins tools/assistant/tools/assistant/images/assistant.png ||
154 die "doins failed"
155 # Note: absolute image path required here!
156 make_desktop_entry "${EPREFIX}"/usr/bin/assistant Assistant \
157 "${EPREFIX}"/usr/share/pixmaps/assistant.png 'Qt;Development;GUIDesigner' ||
158 die "make_desktop_entry failed"
159
160 if use compat; then
161 insinto /usr/share/qt4/mkspecs/features || die "insinto failed"
162 doins tools/assistant/compat/features/assistant.prf || die "doins failed"
163 fi
164 }