1 |
ayoy 09/10/29 18:07:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qt-core-4.5.3-r2.ebuild |
5 |
Log: |
6 |
Adding a patch to fix regression in event loop. Thanks to scarabeus@g.o for pointing this out |
7 |
(Portage version: 2.2_rc46/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.67 x11-libs/qt-core/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/ChangeLog?rev=1.67&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/ChangeLog?rev=1.67&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/ChangeLog?r1=1.66&r2=1.67 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v |
19 |
retrieving revision 1.66 |
20 |
retrieving revision 1.67 |
21 |
diff -u -r1.66 -r1.67 |
22 |
--- ChangeLog 29 Oct 2009 11:19:22 -0000 1.66 |
23 |
+++ ChangeLog 29 Oct 2009 18:07:22 -0000 1.67 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for x11-libs/qt-core |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v 1.66 2009/10/29 11:19:22 fauli Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/ChangeLog,v 1.67 2009/10/29 18:07:22 ayoy Exp $ |
29 |
+ |
30 |
+*qt-core-4.5.3-r2 (29 Oct 2009) |
31 |
+ |
32 |
+ 29 Oct 2009; Dominik Kapusta <ayoy@g.o> +qt-core-4.5.3-r2.ebuild, |
33 |
+ +files/qt-4.5.3-glib-event-loop.patch: |
34 |
+ Adding a patch to fix regression in event loop. Thanks to scarabeus@g.o |
35 |
+ for pointing this out |
36 |
|
37 |
29 Oct 2009; Christian Faulhammer <fauli@g.o> |
38 |
qt-core-4.5.3-r1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 x11-libs/qt-core/qt-core-4.5.3-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/qt-core-4.5.3-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/qt-core/qt-core-4.5.3-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: qt-core-4.5.3-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-core/qt-core-4.5.3-r2.ebuild,v 1.1 2009/10/29 18:07:22 ayoy Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
inherit qt4-build |
55 |
|
56 |
DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework" |
57 |
SLOT="4" |
58 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
59 |
IUSE="doc +glib iconv qt3support ssl" |
60 |
|
61 |
RDEPEND="sys-libs/zlib |
62 |
glib? ( dev-libs/glib ) |
63 |
ssl? ( dev-libs/openssl ) |
64 |
!<x11-libs/qt-4.4.0:4" |
65 |
DEPEND="${RDEPEND} |
66 |
dev-util/pkgconfig" |
67 |
PDEPEND="qt3support? ( ~x11-libs/qt-gui-${PV}[qt3support] )" |
68 |
|
69 |
QT4_TARGET_DIRECTORIES=" |
70 |
src/tools/bootstrap |
71 |
src/tools/moc |
72 |
src/tools/rcc |
73 |
src/tools/uic |
74 |
src/corelib |
75 |
src/xml |
76 |
src/network |
77 |
src/plugins/codecs |
78 |
tools/linguist/lrelease |
79 |
tools/linguist/lupdate |
80 |
tools/linguist/lconvert" |
81 |
|
82 |
# Most ebuilds include almost everything for testing |
83 |
# Will clear out unneeded directories after everything else works OK |
84 |
QT4_EXTRACT_DIRECTORIES=" |
85 |
include/Qt |
86 |
include/QtCore |
87 |
include/QtNetwork |
88 |
include/QtScript |
89 |
include/QtXml |
90 |
src/plugins/plugins.pro |
91 |
src/plugins/qpluginbase.pri |
92 |
src/src.pro |
93 |
src/3rdparty/des |
94 |
src/3rdparty/harfbuzz |
95 |
src/3rdparty/md4 |
96 |
src/3rdparty/md5 |
97 |
src/3rdparty/sha1 |
98 |
src/script |
99 |
tools/linguist/shared |
100 |
translations" |
101 |
|
102 |
PATCHES=( |
103 |
"${FILESDIR}/qt-4.5-nolibx11.diff" |
104 |
"${FILESDIR}/qt-${PV}-glib-event-loop.patch" |
105 |
) |
106 |
|
107 |
pkg_setup() { |
108 |
qt4-build_pkg_setup |
109 |
|
110 |
if has_version x11-libs/qt-core; then |
111 |
# Check to see if they've changed the glib flag since the last time installing this package. |
112 |
if use glib && ! built_with_use x11-libs/qt-core glib && has_version x11-libs/qt-gui; then |
113 |
ewarn "You have changed the \"glib\" use flag since the last time you have emerged this package." |
114 |
ewarn "You should also re-emerge x11-libs/qt-gui in order for it to pick up this change." |
115 |
elif ! use glib && built_with_use x11-libs/qt-core glib && has_version x11-libs/qt-gui; then |
116 |
ewarn "You have changed the \"glib\" use flag since the last time you have emerged this package." |
117 |
ewarn "You should also re-emerge x11-libs/qt-gui in order for it to pick up this change." |
118 |
fi |
119 |
|
120 |
# Check to see if they've changed the qt3support flag since the last time installing this package. |
121 |
# If so, give a list of packages they need to uninstall first. |
122 |
if use qt3support && ! built_with_use x11-libs/qt-core qt3support; then |
123 |
local need_to_remove |
124 |
ewarn "You have changed the \"qt3support\" use flag since the last time you have emerged this package." |
125 |
for x in sql opengl gui qt3support; do |
126 |
local pkg="x11-libs/qt-${x}" |
127 |
if has_version $pkg; then |
128 |
need_to_remove="${need_to_remove} ${pkg}" |
129 |
fi |
130 |
done |
131 |
if [[ -n ${need_to_remove} ]]; then |
132 |
die "You must first uninstall these packages before continuing: \n\t\t${need_to_remove}" |
133 |
fi |
134 |
elif ! use qt3support && built_with_use x11-libs/qt-core qt3support ; then |
135 |
local need_to_remove |
136 |
ewarn "You have changed the \"qt3support\" use flag since the last time you have emerged this package." |
137 |
for x in sql opengl gui qt3support; do |
138 |
local pkg="x11-libs/qt-${x}" |
139 |
if has_version $pkg; then |
140 |
need_to_remove="${need_to_remove} ${pkg}" |
141 |
fi |
142 |
done |
143 |
if [[ -n ${need_to_remove} ]]; then |
144 |
die "You must first uninstall these packages before continuing: \n\t\t${need_to_remove}" |
145 |
fi |
146 |
fi |
147 |
fi |
148 |
} |
149 |
|
150 |
src_unpack() { |
151 |
if use doc; then |
152 |
QT4_EXTRACT_DIRECTORIES="${QT4_EXTRACT_DIRECTORIES} |
153 |
doc/" |
154 |
QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} |
155 |
tools/qdoc3" |
156 |
fi |
157 |
QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} |
158 |
${QT4_EXTRACT_DIRECTORIES}" |
159 |
|
160 |
qt4-build_src_unpack |
161 |
|
162 |
# Don't pre-strip, bug 235026 |
163 |
for i in kr jp cn tw ; do |
164 |
echo "CONFIG+=nostrip" >> "${S}"/src/plugins/codecs/${i}/${i}.pro |
165 |
done |
166 |
} |
167 |
|
168 |
src_prepare() { |
169 |
qt4-build_src_prepare |
170 |
|
171 |
# bug 172219 |
172 |
sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CXXFLAGS} :" \ |
173 |
"${S}/qmake/Makefile.unix" || die "sed qmake/Makefile.unix CXXFLAGS failed" |
174 |
sed -i -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" \ |
175 |
"${S}/qmake/Makefile.unix" || die "sed qmake/Makefile.unix LDFLAGS failed" |
176 |
} |
177 |
|
178 |
src_configure() { |
179 |
unset QMAKESPEC |
180 |
|
181 |
myconf="${myconf} |
182 |
$(qt_use glib) |
183 |
$(qt_use iconv) |
184 |
$(qt_use ssl openssl) |
185 |
$(qt_use qt3support)" |
186 |
|
187 |
myconf="${myconf} -no-xkb -no-fontconfig -no-xrender -no-xrandr |
188 |
-no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm -no-opengl |
189 |
-no-nas-sound -no-dbus -no-cups -no-gif -no-libpng |
190 |
-no-libmng -no-libjpeg -system-zlib -no-webkit -no-phonon -no-xmlpatterns |
191 |
-no-freetype -no-libtiff -no-accessibility -no-fontconfig -no-opengl |
192 |
-no-svg -no-gtkstyle" |
193 |
|
194 |
if ! use doc; then |
195 |
myconf="${myconf} -nomake docs" |
196 |
fi |
197 |
|
198 |
cp -f "${FILESDIR}"/moc.pro "${S}"/src/tools/moc/ |
199 |
cp -f "${FILESDIR}"/rcc.pro "${S}"/src/tools/rcc/ |
200 |
cp -f "${FILESDIR}"/uic.pro "${S}"/src/tools/uic/ |
201 |
|
202 |
qt4-build_src_configure |
203 |
} |
204 |
|
205 |
src_compile() { |
206 |
# bug 259736 |
207 |
unset QMAKESPEC |
208 |
qt4-build_src_compile |
209 |
} |
210 |
|
211 |
src_install() { |
212 |
dobin "${S}"/bin/{qmake,moc,rcc,uic,lconvert,lrelease,lupdate} || die "dobin failed" |
213 |
|
214 |
install_directories src/{corelib,xml,network,plugins/codecs} |
215 |
|
216 |
emake INSTALL_ROOT="${D}" install_mkspecs || die "emake install_mkspecs failed" |
217 |
|
218 |
if use doc; then |
219 |
emake INSTALL_ROOT="${D}" install_htmldocs || die "emake install_htmldocs failed" |
220 |
fi |
221 |
|
222 |
# use freshly built libraries |
223 |
LD_LIBRARY_PATH="${S}/lib" "${S}"/bin/lrelease translations/*.ts \ |
224 |
|| die "generating translations failed" |
225 |
insinto ${QTTRANSDIR} |
226 |
doins translations/*.qm || die "doins translations failed" |
227 |
|
228 |
setqtenv |
229 |
fix_library_files |
230 |
|
231 |
# List all the multilib libdirs |
232 |
local libdirs= |
233 |
for libdir in $(get_all_libdirs); do |
234 |
libdirs="${libdirs}:/usr/${libdir}/qt4" |
235 |
done |
236 |
|
237 |
cat <<-EOF > "${T}/44qt4" |
238 |
LDPATH=${libdirs:1} |
239 |
EOF |
240 |
doenvd "${T}/44qt4" |
241 |
|
242 |
dodir /${QTDATADIR}/mkspecs/gentoo |
243 |
mv "${D}"/${QTDATADIR}/mkspecs/qconfig.pri "${D}${QTDATADIR}"/mkspecs/gentoo \ |
244 |
|| die "Failed to move qconfig.pri" |
245 |
|
246 |
sed -i -e '2a#include <Gentoo/gentoo-qconfig.h>\n' \ |
247 |
"${D}${QTHEADERDIR}"/QtCore/qconfig.h \ |
248 |
"${D}${QTHEADERDIR}"/Qt/qconfig.h \ |
249 |
|| die "sed for qconfig.h failed" |
250 |
|
251 |
if use glib; then |
252 |
QCONFIG_DEFINE="$(use glib && echo QT_GLIB) |
253 |
$(use ssl && echo QT_OPENSSL)" |
254 |
install_qconfigs |
255 |
fi |
256 |
|
257 |
# remove some unnecessary headers |
258 |
rm -f "${D}${QTHEADERDIR}"/{Qt,QtCore}/{\ |
259 |
qatomic_macosx.h,\ |
260 |
qatomic_windows.h,\ |
261 |
qatomic_windowsce.h,\ |
262 |
qt_windows.h} |
263 |
|
264 |
keepdir "${QTSYSCONFDIR}" |
265 |
} |