1 |
pesa 12/06/28 17:36:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qt-assistant-4.8.2-r1.ebuild |
5 |
Removed: qt-assistant-4.8.2.ebuild |
6 |
Log: |
7 |
Fix assistant crash on start if compiled with gcc-4.7 (bug 423723). |
8 |
Thanks to Bernd Buschinski <b.buschinski@××××××××××.com> for the patch. |
9 |
|
10 |
(Portage version: 2.2.0_alpha114/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.141 x11-libs/qt-assistant/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-assistant/ChangeLog?rev=1.141&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-assistant/ChangeLog?rev=1.141&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-assistant/ChangeLog?r1=1.140&r2=1.141 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-assistant/ChangeLog,v |
22 |
retrieving revision 1.140 |
23 |
retrieving revision 1.141 |
24 |
diff -u -r1.140 -r1.141 |
25 |
--- ChangeLog 25 Jun 2012 16:07:22 -0000 1.140 |
26 |
+++ ChangeLog 28 Jun 2012 17:36:00 -0000 1.141 |
27 |
@@ -1,6 +1,14 @@ |
28 |
# ChangeLog for x11-libs/qt-assistant |
29 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-assistant/ChangeLog,v 1.140 2012/06/25 16:07:22 armin76 Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-assistant/ChangeLog,v 1.141 2012/06/28 17:36:00 pesa Exp $ |
32 |
+ |
33 |
+*qt-assistant-4.8.2-r1 (28 Jun 2012) |
34 |
+ |
35 |
+ 28 Jun 2012; Davide Pesavento <pesa@g.o> |
36 |
+ +files/qt-assistant-4.8.2+gcc-4.7.patch, +qt-assistant-4.8.2-r1.ebuild, |
37 |
+ -qt-assistant-4.8.2.ebuild: |
38 |
+ Fix assistant crash on start if compiled with gcc-4.7 (bug 423723). Thanks to |
39 |
+ Bernd Buschinski <b.buschinski@××××××××××.com> for the patch. |
40 |
|
41 |
25 Jun 2012; Raúl Porcel <armin76@g.o> qt-assistant-4.8.1-r1.ebuild, |
42 |
qt-assistant-4.8.2.ebuild: |
43 |
@@ -583,4 +591,3 @@ |
44 |
24 Dec 2007; Caleb Tennis <caleb@g.o> +metadata.xml, |
45 |
+qt-assistant-4.4.0_rc1.ebuild: |
46 |
Initial ebuild |
47 |
- |
48 |
|
49 |
|
50 |
|
51 |
1.1 x11-libs/qt-assistant/qt-assistant-4.8.2-r1.ebuild |
52 |
|
53 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-assistant/qt-assistant-4.8.2-r1.ebuild?rev=1.1&view=markup |
54 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-assistant/qt-assistant-4.8.2-r1.ebuild?rev=1.1&content-type=text/plain |
55 |
|
56 |
Index: qt-assistant-4.8.2-r1.ebuild |
57 |
=================================================================== |
58 |
# Copyright 1999-2012 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-assistant/qt-assistant-4.8.2-r1.ebuild,v 1.1 2012/06/28 17:36:00 pesa Exp $ |
61 |
|
62 |
EAPI=4 |
63 |
|
64 |
inherit eutils qt4-build |
65 |
|
66 |
DESCRIPTION="The Help module and Assistant application for the Qt toolkit" |
67 |
SRC_URI+=" |
68 |
compat? ( |
69 |
ftp://ftp.qt.nokia.com/qt/source/${PN}-qassistantclient-library-compat-src-4.6.3.tar.gz |
70 |
http://dev.gentoo.org/~pesa/distfiles/${PN}-compat-headers-4.7.tar.gz |
71 |
)" |
72 |
|
73 |
SLOT="4" |
74 |
if [[ ${QT4_BUILD_TYPE} == live ]]; then |
75 |
KEYWORDS="" |
76 |
else |
77 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~ppc-macos ~x64-macos" |
78 |
fi |
79 |
IUSE="compat doc +glib qt3support trace webkit" |
80 |
|
81 |
DEPEND=" |
82 |
~x11-libs/qt-gui-${PV}[aqua=,c++0x=,debug=,glib=,qpa=,qt3support=,trace?] |
83 |
~x11-libs/qt-sql-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=,sqlite] |
84 |
webkit? ( ~x11-libs/qt-webkit-${PV}[aqua=,debug=,qpa=] ) |
85 |
" |
86 |
RDEPEND="${DEPEND}" |
87 |
|
88 |
PATCHES=( |
89 |
"${FILESDIR}/${PV}-qatomic-x32.patch" |
90 |
"${FILESDIR}/${P}+gcc-4.7.patch" |
91 |
) |
92 |
|
93 |
pkg_setup() { |
94 |
# Pixeltool isn't really assistant related, but it relies on |
95 |
# the assistant libraries. |
96 |
QT4_TARGET_DIRECTORIES=" |
97 |
tools/assistant |
98 |
tools/pixeltool |
99 |
tools/qdoc3" |
100 |
QT4_EXTRACT_DIRECTORIES=" |
101 |
tools |
102 |
demos |
103 |
examples |
104 |
src |
105 |
include |
106 |
doc" |
107 |
|
108 |
use trace && QT4_TARGET_DIRECTORIES+=" tools/qttracereplay" |
109 |
|
110 |
QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} |
111 |
${QT4_EXTRACT_DIRECTORIES}" |
112 |
|
113 |
qt4-build_pkg_setup |
114 |
} |
115 |
|
116 |
src_unpack() { |
117 |
qt4-build_src_unpack |
118 |
|
119 |
# compat version |
120 |
# http://labs.qt.nokia.com/2010/06/22/qt-assistant-compat-version-available-as-extra-source-package/ |
121 |
if use compat; then |
122 |
unpack ${PN}-qassistantclient-library-compat-src-4.6.3.tar.gz \ |
123 |
${PN}-compat-headers-4.7.tar.gz |
124 |
mv "${WORKDIR}"/${PN}-qassistantclient-library-compat-version-4.6.3 \ |
125 |
"${S}"/tools/assistant/compat || die |
126 |
mv "${WORKDIR}"/QtAssistant "${S}"/include/ || die |
127 |
fi |
128 |
} |
129 |
|
130 |
src_prepare() { |
131 |
qt4-build_src_prepare |
132 |
|
133 |
use compat && epatch "${FILESDIR}"/${PN}-4.7-fix-compat.patch |
134 |
|
135 |
# bug 401173 |
136 |
use webkit || epatch "${FILESDIR}"/disable-webkit.patch |
137 |
|
138 |
# bug 348034 |
139 |
sed -i -e '/^sub-qdoc3\.depends/d' doc/doc.pri || die |
140 |
} |
141 |
|
142 |
src_configure() { |
143 |
myconf+=" |
144 |
-no-xkb -no-fontconfig -no-xrandr |
145 |
-no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm -no-opengl |
146 |
-no-nas-sound -no-dbus -iconv -no-cups -no-nis -no-gif -no-libpng |
147 |
-no-libmng -no-libjpeg -no-openssl -system-zlib -no-phonon |
148 |
-no-xmlpatterns -no-freetype -no-libtiff -no-accessibility |
149 |
-no-fontconfig -no-multimedia -no-svg |
150 |
$(qt_use qt3support) $(qt_use webkit)" |
151 |
use glib || myconf+=" -no-glib" |
152 |
|
153 |
qt4-build_src_configure |
154 |
} |
155 |
|
156 |
src_compile() { |
157 |
# help libQtHelp find freshly built libQtCLucene (bug #289811) |
158 |
export LD_LIBRARY_PATH="${S}/lib:${QTLIBDIR}" |
159 |
export DYLD_LIBRARY_PATH="${S}/lib:${S}/lib/QtHelp.framework" |
160 |
|
161 |
qt4-build_src_compile |
162 |
|
163 |
# ugly hack to build docs |
164 |
qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" projects.pro || die |
165 |
|
166 |
if use doc; then |
167 |
emake docs |
168 |
elif [[ ${QT4_BUILD_TYPE} == release ]]; then |
169 |
# live ebuild cannot build qch_docs, it will build them through emake docs |
170 |
emake qch_docs |
171 |
fi |
172 |
} |
173 |
|
174 |
src_install() { |
175 |
qt4-build_src_install |
176 |
|
177 |
emake INSTALL_ROOT="${D}" install_qchdocs |
178 |
# do not compress .qch files |
179 |
docompress -x "${QTDOCDIR}"/qch |
180 |
|
181 |
if use doc; then |
182 |
emake INSTALL_ROOT="${D}" install_htmldocs |
183 |
fi |
184 |
|
185 |
doicon tools/assistant/tools/assistant/images/assistant.png |
186 |
make_desktop_entry assistant Assistant assistant 'Qt;Development' |
187 |
|
188 |
if use compat; then |
189 |
insinto /usr/share/qt4/mkspecs/features |
190 |
doins tools/assistant/compat/features/assistant.prf |
191 |
fi |
192 |
} |