Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@×××××××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: x11-libs/qt-opengl/, x11-libs/qt-script/, x11-libs/qt-qt3support/, ...
Date: Sat, 31 Mar 2012 18:12:37
Message-Id: 1333217354.d3ce129aa329b8c9556d1fa0add21a221825e584.kensington@gentoo
1 commit: d3ce129aa329b8c9556d1fa0add21a221825e584
2 Author: Michael Palimaka <kensington <AT> astralcloak <DOT> net>
3 AuthorDate: Sat Mar 31 18:09:14 2012 +0000
4 Commit: Michael Palimaka <kensington <AT> astralcloak <DOT> net>
5 CommitDate: Sat Mar 31 18:09:14 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=d3ce129a
7
8 [x11-libs/qt-*] Sync with portage.
9
10 (Portage version: 2.1.10.52/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 x11-libs/qt-assistant/qt-assistant-4.8.9999.ebuild | 129 +++++++--------
14 x11-libs/qt-core/qt-core-4.8.9999.ebuild | 69 ++++----
15 .../qt-dbus/files/qt-4.6-master-nolibx11.patch | 20 ---
16 .../qt-dbus-4.7-qdbusintegrator-no-const.patch | 11 ++
17 x11-libs/qt-dbus/qt-dbus-4.8.9999.ebuild | 36 +++--
18 .../qt-declarative/qt-declarative-4.8.9999.ebuild | 70 ++++----
19 x11-libs/qt-demo/qt-demo-4.8.9999.ebuild | 53 ++++---
20 x11-libs/qt-gui/files/qt-gui-4.7.3-cups.patch | 84 +++++++++
21 x11-libs/qt-gui/qt-gui-4.8.9999.ebuild | 177 ++++++++++----------
22 .../files/qt-multimedia-4.8.0-alsa.patch | 25 +++
23 .../qt-multimedia/qt-multimedia-4.8.9999.ebuild | 85 +++++-----
24 x11-libs/qt-opengl/files/qtbug-9691-Xdefs.patch | 97 -----------
25 x11-libs/qt-opengl/qt-opengl-4.8.9999.ebuild | 64 ++++----
26 x11-libs/qt-openvg/qt-openvg-4.8.9999.ebuild | 57 ++++---
27 x11-libs/qt-phonon/files/qtbug-9691-Xdefs.patch | 97 -----------
28 x11-libs/qt-phonon/qt-phonon-4.8.9999.ebuild | 45 +++---
29 .../qt-qt3support/qt-qt3support-4.8.9999.ebuild | 42 +++---
30 .../qt-script/files/qt-4.6-master-nolibx11.patch | 20 ---
31 x11-libs/qt-script/qt-script-4.8.9999.ebuild | 55 ++++---
32 x11-libs/qt-sql/files/qt-4.6-master-nolibx11.patch | 20 ---
33 x11-libs/qt-sql/qt-sql-4.8.9999.ebuild | 51 +++---
34 x11-libs/qt-svg/qt-svg-4.8.9999.ebuild | 57 ++++---
35 .../qt-test/files/qt-4.6-master-nolibx11.patch | 20 ---
36 x11-libs/qt-test/qt-test-4.8.9999.ebuild | 50 +++---
37 .../files/qt-webkit-4.8.0-c++0x-fix.patch | 101 +++++++++++
38 x11-libs/qt-webkit/qt-webkit-4.8.9999.ebuild | 50 +++---
39 .../files/qt-4.6-master-nolibx11.patch | 20 ---
40 .../qt-xmlpatterns/qt-xmlpatterns-4.8.9999.ebuild | 45 +++---
41 28 files changed, 809 insertions(+), 841 deletions(-)
42
43 diff --git a/x11-libs/qt-assistant/qt-assistant-4.8.9999.ebuild b/x11-libs/qt-assistant/qt-assistant-4.8.9999.ebuild
44 index 71b63ee..f3bef74 100644
45 --- a/x11-libs/qt-assistant/qt-assistant-4.8.9999.ebuild
46 +++ b/x11-libs/qt-assistant/qt-assistant-4.8.9999.ebuild
47 @@ -2,88 +2,90 @@
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: $
50
51 -EAPI="4"
52 -if [[ ${PV} == 4*9999 ]]; then
53 - QT_ECLASS="-edge"
54 -fi
55 -inherit qt4-build${QT_ECLASS}
56 +EAPI=4
57 +
58 +inherit qt4-build
59
60 -DESCRIPTION="The assistant help module for the Qt toolkit"
61 +DESCRIPTION="The Help module and Assistant application for the Qt toolkit"
62 +SRC_URI+=" compat? ( ftp://ftp.qt.nokia.com/qt/source/${PN}-qassistantclient-library-compat-src-4.6.3.tar.gz )"
63 SLOT="4"
64 -if [[ ${PV} != 4*9999 ]]; then
65 - KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~ppc-macos"
66 -else
67 +
68 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
69 KEYWORDS=""
70 +else
71 + KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~ppc-macos"
72 fi
73 IUSE="compat doc +glib qt3support trace webkit"
74 -SRC_URI+=" compat? ( ftp://ftp.qt.nokia.com/qt/source/${PN}-qassistantclient-library-compat-src-4.6.3.tar.gz )"
75
76 -DEPEND="~x11-libs/qt-gui-${PV}[aqua=,c++0x=,qpa=,debug=,glib=,qt3support=,trace?]
77 - ~x11-libs/qt-sql-${PV}[aqua=,c++0x=,qpa=,debug=,qt3support=,sqlite]
78 - webkit? ( ~x11-libs/qt-webkit-${PV}[aqua=,c++0x=,qpa=,debug=] )"
79 +DEPEND="
80 + ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,debug=,glib=,qpa=,qt3support=,trace?]
81 + ~x11-libs/qt-sql-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=,sqlite]
82 + webkit? ( ~x11-libs/qt-webkit-${PV}[aqua=,c++0x=,debug=,qpa=] )
83 +"
84 RDEPEND="${DEPEND}"
85
86 pkg_setup() {
87 # Pixeltool isn't really assistant related, but it relies on
88 - # the assistant libraries. doc/qch/
89 + # the assistant libraries.
90 QT4_TARGET_DIRECTORIES="
91 tools/assistant
92 tools/pixeltool
93 tools/qdoc3"
94 - if [[ ${PV} != 4*9999 ]]; then
95 - QT4_EXTRACT_DIRECTORIES="
96 - tools/
97 - demos/
98 - examples/
99 - src/
100 - include/
101 - doc/"
102 - fi
103 + QT4_EXTRACT_DIRECTORIES="
104 + tools
105 + demos
106 + examples
107 + src
108 + include
109 + doc"
110 +
111 + use trace && QT4_TARGET_DIRECTORIES+=" tools/qttracereplay"
112
113 - use trace && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
114 - tools/qttracereplay"
115 QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
116 ${QT4_EXTRACT_DIRECTORIES}"
117
118 - qt4-build${QT_ECLASS}_pkg_setup
119 + qt4-build_pkg_setup
120 }
121
122 src_unpack() {
123 - qt4-build${QT_ECLASS}_src_unpack
124 + qt4-build_src_unpack
125 +
126 # compat version
127 # http://labs.qt.nokia.com/2010/06/22/qt-assistant-compat-version-available-as-extra-source-package/
128 if use compat; then
129 - unpack "${PN}"-qassistantclient-library-compat-src-4.6.3.tar.gz
130 - mv "${WORKDIR}"/"${PN}"-qassistantclient-library-compat-version-4.6.3 \
131 + unpack ${PN}-qassistantclient-library-compat-src-4.6.3.tar.gz
132 + mv "${WORKDIR}"/${PN}-qassistantclient-library-compat-version-4.6.3 \
133 "${S}"/tools/assistant/compat ||
134 die "moving compat to the right place failed"
135 - tar xzf "${FILESDIR}"/"${PN}"-4.7-include.tar.gz -C "${S}"/include/ ||
136 + tar xzf "${FILESDIR}"/${PN}-4.7-include.tar.gz -C "${S}"/include/ ||
137 die "unpacking the include files failed"
138 fi
139 }
140
141 src_prepare() {
142 - qt4-build${QT_ECLASS}_src_prepare
143 - use compat && epatch "${FILESDIR}"/"${PN}"-4.7-fix-compat.patch
144 + qt4-build_src_prepare
145 +
146 + use compat && epatch "${FILESDIR}"/${PN}-4.7-fix-compat.patch
147
148 # bug 401173
149 - ! use webkit && epatch "${FILESDIR}"/disable-webkit.patch
150 + use webkit || epatch "${FILESDIR}"/disable-webkit.patch
151
152 # bug 348034
153 sed -i -e '/^sub-qdoc3\.depends/d' doc/doc.pri || die
154 }
155
156 src_configure() {
157 - myconf="${myconf} -no-xkb -no-fontconfig -no-xrandr
158 + myconf+="
159 + -no-xkb -no-fontconfig -no-xrandr
160 -no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm -no-opengl
161 -no-nas-sound -no-dbus -iconv -no-cups -no-nis -no-gif -no-libpng
162 -no-libmng -no-libjpeg -no-openssl -system-zlib -no-phonon
163 -no-xmlpatterns -no-freetype -no-libtiff -no-accessibility
164 - -no-fontconfig -no-multimedia
165 - -no-svg $(qt_use qt3support) $(qt_use webkit)"
166 - ! use glib && myconf="${myconf} -no-glib"
167 + -no-fontconfig -no-multimedia -no-svg
168 + $(qt_use qt3support) $(qt_use webkit)"
169 + use glib || myconf+=" -no-glib"
170
171 - qt4-build${QT_ECLASS}_src_configure
172 + qt4-build_src_configure
173 }
174
175 src_compile() {
176 @@ -91,51 +93,34 @@ src_compile() {
177 export LD_LIBRARY_PATH="${S}/lib:${QTLIBDIR}"
178 export DYLD_LIBRARY_PATH="${S}/lib:${S}/lib/QtHelp.framework"
179
180 - qt4-build${QT_ECLASS}_src_compile
181 + qt4-build_src_compile
182
183 # ugly hack to build docs
184 - cd "${S}"
185 qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" projects.pro || die
186 - # live ebuild cannot build qch_docs. It will build them through emake docs
187 - if [[ ${PV} != 4*9999 ]]; then
188 - emake qch_docs || die "emake qch_docs failed "
189 - fi
190 +
191 if use doc; then
192 - emake docs || die "emake docs failed"
193 + emake docs
194 + else
195 + emake qch_docs
196 fi
197 - qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" projects.pro || die
198 }
199
200 src_install() {
201 - qt4-build${QT_ECLASS}_src_install
202 - cd "${S}"
203 - #see src_compile note
204 - if [[ ${PV} != 4*9999 ]]; then
205 - emake INSTALL_ROOT="${D}" install_qchdocs \
206 - || die "failed to install qch docs"
207 - fi
208 + qt4-build_src_install
209 +
210 + emake INSTALL_ROOT="${D}" install_qchdocs
211 + # do not compress .qch files
212 + docompress -x "${QTDOCDIR}"/qch
213 +
214 if use doc; then
215 - emake INSTALL_ROOT="${D}" install_htmldocs \
216 - || die "failed to install htmldocs"
217 - # Now it is time for the live ebuild to install the qch docs
218 - if [[ ${PV} == 4*9999 ]]; then
219 - emake INSTALL_ROOT="${D}" install_qchdocs \
220 - || die "failed to install qch docs"
221 - fi
222 + emake INSTALL_ROOT="${D}" install_htmldocs
223 fi
224 - dobin "${S}"/bin/qdoc3 || die "Failed to install qdoc3"
225 - # install correct assistant icon, bug 241208
226 - dodir /usr/share/pixmaps/ || die "dodir failed"
227 - insinto /usr/share/pixmaps/
228 - doins tools/assistant/tools/assistant/images/assistant.png ||
229 - die "doins failed"
230 - # Note: absolute image path required here!
231 - make_desktop_entry assistant Assistant \
232 - "${EPREFIX}"/usr/share/pixmaps/assistant.png 'Qt;Development;GUIDesigner' \
233 - || die "make_desktop_entry failed"
234 +
235 + doicon tools/assistant/tools/assistant/images/assistant.png
236 + make_desktop_entry assistant Assistant assistant 'Qt;Development'
237
238 if use compat; then
239 - insinto /usr/share/qt4/mkspecs/features || die "insinto failed"
240 - doins tools/assistant/compat/features/assistant.prf || die "doins failed"
241 + insinto /usr/share/qt4/mkspecs/features
242 + doins tools/assistant/compat/features/assistant.prf
243 fi
244 }
245
246 diff --git a/x11-libs/qt-core/qt-core-4.8.9999.ebuild b/x11-libs/qt-core/qt-core-4.8.9999.ebuild
247 index 71e7b4d..3a56e19 100644
248 --- a/x11-libs/qt-core/qt-core-4.8.9999.ebuild
249 +++ b/x11-libs/qt-core/qt-core-4.8.9999.ebuild
250 @@ -2,28 +2,30 @@
251 # Distributed under the terms of the GNU General Public License v2
252 # $Header: $
253
254 -EAPI="4"
255 -if [[ ${PV} == 4*9999 ]]; then
256 - QT_ECLASS="-edge"
257 -fi
258 -inherit qt4-build${QT_ECLASS}
259 +EAPI=4
260 +
261 +inherit qt4-build
262
263 DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework"
264 SLOT="4"
265 -if [[ ${PV} != 4*9999 ]]; then
266 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
267 -else
268 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
269 KEYWORDS=""
270 +else
271 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
272 fi
273 IUSE="+glib iconv optimized-qmake qt3support ssl"
274
275 -DEPEND="sys-libs/zlib
276 +DEPEND="
277 + sys-libs/zlib
278 glib? ( dev-libs/glib )
279 ssl? ( dev-libs/openssl )
280 + !<x11-libs/cairo-1.10.2-r2
281 !<x11-libs/qt-4.4.0:4
282 - !<x11-libs/cairo-1.10.2-r2"
283 +"
284 RDEPEND="${DEPEND}"
285 -PDEPEND="qt3support? ( ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,qpa=,debug=,glib=,qt3support] )"
286 +PDEPEND="
287 + qt3support? ( ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,debug=,glib=,qpa=,qt3support] )
288 +"
289
290 pkg_setup() {
291 QT4_TARGET_DIRECTORIES="
292 @@ -66,16 +68,16 @@ pkg_setup() {
293 tools/linguist/shared
294 translations"
295 fi
296 - qt4-build${QT_ECLASS}_pkg_setup
297 + qt4-build_pkg_setup
298 }
299
300 src_prepare() {
301 # Don't pre-strip, bug 235026
302 - for i in kr jp cn tw ; do
303 + for i in kr jp cn tw; do
304 echo "CONFIG+=nostrip" >> "${S}"/src/plugins/codecs/${i}/${i}.pro
305 done
306
307 - qt4-build${QT_ECLASS}_src_prepare
308 + qt4-build_src_prepare
309
310 # bug 172219
311 sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CXXFLAGS} :" \
312 @@ -98,29 +100,30 @@ src_configure() {
313 $(qt_use ssl openssl)
314 $(qt_use qt3support)"
315
316 - qt4-build${QT_ECLASS}_src_configure
317 + qt4-build_src_configure
318 }
319
320 src_install() {
321 - dobin "${S}"/bin/{qmake,moc,rcc,uic,lconvert,lrelease,lupdate} || die "dobin failed"
322 + dobin bin/{qmake,moc,rcc,uic,lconvert,lrelease,lupdate}
323
324 install_directories src/{corelib,xml,network,plugins/codecs}
325
326 - emake INSTALL_ROOT="${D}" install_mkspecs || die "emake install_mkspecs failed"
327 + emake INSTALL_ROOT="${D}" install_mkspecs
328
329 - #install private headers
330 + # install private headers
331 insinto "${QTHEADERDIR#${EPREFIX}}"/QtCore/private
332 - find "${S}"/src/corelib -type f -name "*_p.h" -exec doins {} \;
333 + find "${S}"/src/corelib -type f -name "*_p.h" -exec doins {} +
334
335 # use freshly built libraries
336 local DYLD_FPATH=
337 [[ -d "${S}"/lib/QtCore.framework ]] \
338 - && DYLD_FPATH=$(for x in "${S}/lib/"*.framework; do echo -n ":$x"; done)
339 + && DYLD_FPATH=$(for x in "${S}"/lib/*.framework; do echo -n ":$x"; done)
340 DYLD_LIBRARY_PATH="${S}/lib${DYLD_FPATH}" \
341 - LD_LIBRARY_PATH="${S}/lib" "${S}"/bin/lrelease translations/*.ts \
342 + LD_LIBRARY_PATH="${S}/lib" \
343 + "${S}"/bin/lrelease translations/*.ts \
344 || die "generating translations failed"
345 insinto "${QTTRANSDIR#${EPREFIX}}"
346 - doins translations/*.qm || die "doins translations failed"
347 + doins translations/*.qm
348
349 setqtenv
350 fix_library_files
351 @@ -131,23 +134,22 @@ src_install() {
352 libdirs+=":${EPREFIX}/usr/${libdir}/qt4"
353 done
354
355 - cat <<-EOF > "${T}/44qt4"
356 + cat <<-EOF > "${T}"/44qt4
357 LDPATH="${libdirs:1}"
358 EOF
359 - doenvd "${T}/44qt4"
360 + doenvd "${T}"/44qt4
361
362 - dodir "${QTDATADIR#${EPREFIX}}"/mkspecs/gentoo || die "dodir failed"
363 + dodir "${QTDATADIR#${EPREFIX}}"/mkspecs/gentoo
364 mv "${D}/${QTDATADIR}"/mkspecs/qconfig.pri "${D}${QTDATADIR}"/mkspecs/gentoo \
365 - || die "Failed to move qconfig.pri"
366 + || die "failed to move qconfig.pri"
367
368 # Framework hacking
369 - if use aqua && [[ ${CHOST#*-darwin} -ge 9 ]] ; then
370 - #TODO do this better
371 + if use aqua && [[ ${CHOST#*-darwin} -ge 9 ]]; then
372 + # TODO: do this better
373 sed -i -e '2a#include <QtCore/Gentoo/gentoo-qconfig.h>\n' \
374 "${D}${QTLIBDIR}"/QtCore.framework/Headers/qconfig.h \
375 || die "sed for qconfig.h failed."
376 - dosym "${QTHEADERDIR#${EPREFIX}}"/Gentoo "${QTLIBDIR#${EPREFIX}}"/QtCore.framework/Headers/Gentoo ||
377 - die "dosym failed"
378 + dosym "${QTHEADERDIR#${EPREFIX}}"/Gentoo "${QTLIBDIR#${EPREFIX}}"/QtCore.framework/Headers/Gentoo
379 else
380 sed -i -e '2a#include <Gentoo/gentoo-qconfig.h>\n' \
381 "${D}${QTHEADERDIR}"/QtCore/qconfig.h \
382 @@ -155,11 +157,8 @@ src_install() {
383 || die "sed for qconfig.h failed"
384 fi
385
386 - if use glib; then
387 - QCONFIG_DEFINE="$(use glib && echo QT_GLIB)
388 - $(use ssl && echo QT_OPENSSL)"
389 - install_qconfigs
390 - fi
391 + QCONFIG_DEFINE="QT_ZLIB"
392 + install_qconfigs
393
394 # remove .la files
395 find "${D}${QTLIBDIR}" -name "*.la" -print0 | xargs -0 rm
396
397 diff --git a/x11-libs/qt-dbus/files/qt-4.6-master-nolibx11.patch b/x11-libs/qt-dbus/files/qt-4.6-master-nolibx11.patch
398 deleted file mode 100644
399 index 14e5fce..0000000
400 --- a/x11-libs/qt-dbus/files/qt-4.6-master-nolibx11.patch
401 +++ /dev/null
402 @@ -1,20 +0,0 @@
403 -Index: qt-everywhere-opensource-src-4.6.9999/configure
404 -===================================================================
405 ---- qt-everywhere-opensource-src-4.6.9999.orig/configure
406 -+++ qt-everywhere-opensource-src-4.6.9999/configure
407 -@@ -5069,15 +5069,6 @@ if [ "$PLATFORM_X11" = "yes" ]; then
408 - X11TESTS_FLAGS="$X11TESTS_FLAGS -fpermissive"
409 - fi
410 -
411 -- # Check we actually have X11 :-)
412 -- "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xlib "XLib" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
413 -- if [ $? != "0" ]; then
414 -- echo "Basic XLib functionality test failed!"
415 -- echo " You might need to modify the include and library search paths by editing"
416 -- echo " QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ${XQMAKESPEC}."
417 -- exit 1
418 -- fi
419 --
420 - # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es1cl = ES 1.x common lite, es2 = OpenGL ES 2.x)
421 - if [ "$CFG_OPENGL" = "auto" ] || [ "$CFG_OPENGL" = "yes" ]; then
422 - if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
423
424 diff --git a/x11-libs/qt-dbus/files/qt-dbus-4.7-qdbusintegrator-no-const.patch b/x11-libs/qt-dbus/files/qt-dbus-4.7-qdbusintegrator-no-const.patch
425 new file mode 100644
426 index 0000000..086eb47
427 --- /dev/null
428 +++ b/x11-libs/qt-dbus/files/qt-dbus-4.7-qdbusintegrator-no-const.patch
429 @@ -0,0 +1,11 @@
430 +--- src/dbus/qdbusintegrator.cpp.orig 2011-03-12 02:11:32.313467991 +0100
431 ++++ src/dbus/qdbusintegrator.cpp 2011-03-12 02:11:03.795809176 +0100
432 +@@ -71,7 +71,7 @@
433 + static bool isDebugging;
434 + #define qDBusDebug if (!::isDebugging); else qDebug
435 +
436 +-Q_GLOBAL_STATIC_WITH_ARGS(const QString, orgFreedesktopDBusString, (QLatin1String(DBUS_SERVICE_DBUS)))
437 ++Q_GLOBAL_STATIC_WITH_ARGS(QString, orgFreedesktopDBusString, (QLatin1String(DBUS_SERVICE_DBUS)))
438 +
439 + static inline QString dbusServiceString()
440 + { return *orgFreedesktopDBusString(); }
441
442 diff --git a/x11-libs/qt-dbus/qt-dbus-4.8.9999.ebuild b/x11-libs/qt-dbus/qt-dbus-4.8.9999.ebuild
443 index 3975740..cd9c7d8 100644
444 --- a/x11-libs/qt-dbus/qt-dbus-4.8.9999.ebuild
445 +++ b/x11-libs/qt-dbus/qt-dbus-4.8.9999.ebuild
446 @@ -2,33 +2,35 @@
447 # Distributed under the terms of the GNU General Public License v2
448 # $Header: $
449
450 -EAPI="4"
451 -if [[ ${PV} == 4*9999 ]]; then
452 - QT_ECLASS="-edge"
453 -fi
454 -inherit qt4-build${QT_ECLASS}
455 +EAPI=4
456 +
457 +inherit qt4-build
458
459 DESCRIPTION="The DBus module for the Qt toolkit"
460 SLOT="4"
461 -if [[ ${PV} != 4*9999 ]]; then
462 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
463 -else
464 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
465 KEYWORDS=""
466 +else
467 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
468 fi
469 IUSE=""
470
471 -DEPEND="~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=]
472 - >=sys-apps/dbus-1.0.2"
473 +DEPEND="
474 + >=sys-apps/dbus-1.2
475 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=]
476 +"
477 RDEPEND="${DEPEND}"
478
479 +PATCHES=(
480 + "${FILESDIR}/${PN}-4.7-qdbusintegrator-no-const.patch"
481 +)
482 +
483 pkg_setup() {
484 QT4_TARGET_DIRECTORIES="
485 src/dbus
486 tools/qdbus/qdbus
487 tools/qdbus/qdbusxml2cpp
488 tools/qdbus/qdbuscpp2xml"
489 - QCONFIG_ADD="dbus dbus-linked"
490 - QCONFIG_DEFINE="QT_DBUS"
491
492 if [[ ${PV} != 4*9999 ]]; then
493 QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
494 @@ -39,10 +41,14 @@ pkg_setup() {
495 src/xml"
496 fi
497
498 - qt4-build${QT_ECLASS}_pkg_setup
499 + QCONFIG_ADD="dbus dbus-linked"
500 + QCONFIG_DEFINE="QT_DBUS"
501 +
502 + qt4-build_pkg_setup
503 }
504
505 src_configure() {
506 - myconf="${myconf} -dbus-linked"
507 - qt4-build${QT_ECLASS}_src_configure
508 + myconf+=" -dbus-linked"
509 +
510 + qt4-build_src_configure
511 }
512
513 diff --git a/x11-libs/qt-declarative/qt-declarative-4.8.9999.ebuild b/x11-libs/qt-declarative/qt-declarative-4.8.9999.ebuild
514 index 186934a..10a1211 100644
515 --- a/x11-libs/qt-declarative/qt-declarative-4.8.9999.ebuild
516 +++ b/x11-libs/qt-declarative/qt-declarative-4.8.9999.ebuild
517 @@ -1,35 +1,34 @@
518 -# Copyright 1999-2010 Gentoo Foundation
519 +# Copyright 1999-2012 Gentoo Foundation
520 # Distributed under the terms of the GNU General Public License v2
521 # $Header: $
522
523 -EAPI="4"
524 -inherit qt4-build-edge
525 +EAPI=4
526 +
527 +inherit qt4-build
528
529 DESCRIPTION="The Declarative module for the Qt toolkit"
530 SLOT="4"
531 -if [[ ${PV} != 4*9999 ]]; then
532 - KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
533 -else
534 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
535 KEYWORDS=""
536 +else
537 + KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
538 fi
539 -
540 IUSE="+accessibility qt3support webkit"
541
542 -DEPEND="~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=,qt3support=]
543 - ~x11-libs/qt-gui-${PV}[accessibility=,aqua=,c++0x=,qpa=,debug=,qt3support=]
544 - ~x11-libs/qt-opengl-${PV}[aqua=,c++0x=,qpa=,debug=,qt3support=]
545 - ~x11-libs/qt-script-${PV}[aqua=,c++0x=,qpa=,debug=]
546 - ~x11-libs/qt-sql-${PV}[aqua=,c++0x=,qpa=,debug=,qt3support=]
547 - ~x11-libs/qt-svg-${PV}[accessibility=,aqua=,c++0x=,qpa=,debug=]
548 - ~x11-libs/qt-xmlpatterns-${PV}[aqua=,c++0x=,qpa=,debug=]
549 - qt3support? ( ~x11-libs/qt-qt3support-${PV}[accessibility=,aqua=,c++0x=,qpa=,debug=] )
550 - webkit? ( ~x11-libs/qt-webkit-${PV}[aqua=,c++0x=,qpa=,debug=] )
551 - "
552 +DEPEND="
553 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=]
554 + ~x11-libs/qt-gui-${PV}[accessibility=,aqua=,c++0x=,debug=,qpa=,qt3support=]
555 + ~x11-libs/qt-opengl-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=]
556 + ~x11-libs/qt-script-${PV}[aqua=,c++0x=,debug=,qpa=]
557 + ~x11-libs/qt-sql-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=]
558 + ~x11-libs/qt-svg-${PV}[accessibility=,aqua=,c++0x=,debug=,qpa=]
559 + ~x11-libs/qt-xmlpatterns-${PV}[aqua=,c++0x=,debug=,qpa=]
560 + qt3support? ( ~x11-libs/qt-qt3support-${PV}[accessibility=,aqua=,c++0x=,debug=,qpa=] )
561 + webkit? ( ~x11-libs/qt-webkit-${PV}[aqua=,c++0x=,debug=,qpa=] )
562 +"
563 RDEPEND="${DEPEND}"
564
565 pkg_setup() {
566 - QCONFIG_ADD="declarative"
567 -
568 QT4_TARGET_DIRECTORIES="
569 src/declarative
570 src/imports
571 @@ -38,33 +37,40 @@ pkg_setup() {
572 tools/qmlplugindump"
573
574 if use webkit; then
575 - QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
576 - src/3rdparty/webkit/Source/WebKit/qt/declarative"
577 + QT4_TARGET_DIRECTORIES+=" src/3rdparty/webkit/Source/WebKit/qt/declarative"
578 fi
579
580 QT4_EXTRACT_DIRECTORIES="
581 - include/
582 - src/
583 - tools/
584 - translations/"
585 + include
586 + src
587 + tools
588 + translations"
589
590 - qt4-build-edge_pkg_setup
591 + QCONFIG_ADD="declarative"
592 + QCONFIG_DEFINE="QT_DECLARATIVE"
593 +
594 + qt4-build_pkg_setup
595 }
596
597 src_configure() {
598 - myconf="${myconf} -declarative -no-gtkstyle
599 - $(qt_use accessibility) $(qt_use qt3support) $(qt_use webkit)"
600 - qt4-build-edge_src_configure
601 + myconf+="
602 + -declarative -no-gtkstyle
603 + $(qt_use accessibility)
604 + $(qt_use qt3support)
605 + $(qt_use webkit)"
606 + qt4-build_src_configure
607 }
608
609 src_install() {
610 - qt4-build-edge_src_install
611 - if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]] ; then
612 + qt4-build_src_install
613 +
614 + # install private headers
615 + if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then
616 insinto "${QTLIBDIR#${EPREFIX}}"/QtDeclarative.framework/Headers/private
617 # ran for the 2nd time, need it for the updated headers
618 fix_includes
619 else
620 insinto "${QTHEADERDIR#${EPREFIX}}"/QtDeclarative/private
621 fi
622 - find "${S}"/src/declarative/ -type f -name "*_p.h" -exec doins {} \;
623 + find "${S}"/src/declarative/ -type f -name "*_p.h" -exec doins {} +
624 }
625
626 diff --git a/x11-libs/qt-demo/qt-demo-4.8.9999.ebuild b/x11-libs/qt-demo/qt-demo-4.8.9999.ebuild
627 index 5205aaa..e7188d5 100644
628 --- a/x11-libs/qt-demo/qt-demo-4.8.9999.ebuild
629 +++ b/x11-libs/qt-demo/qt-demo-4.8.9999.ebuild
630 @@ -1,60 +1,67 @@
631 -# Copyright 1999-2010 Gentoo Foundation
632 +# Copyright 1999-2012 Gentoo Foundation
633 # Distributed under the terms of the GNU General Public License v2
634 -# $Header: $
635 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-demo/qt-demo-4.8.1.ebuild,v 1.1 2012/03/29 22:11:13 pesa Exp $
636
637 -EAPI="4"
638 -inherit qt4-build-edge
639 +EAPI=4
640 +
641 +inherit qt4-build
642
643 DESCRIPTION="Demonstration module of the Qt toolkit"
644 SLOT="4"
645 -if [[ ${PV} != 4*9999 ]]; then
646 - KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
647 -else
648 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
649 KEYWORDS=""
650 +else
651 + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
652 fi
653 IUSE="kde qt3support"
654
655 -DEPEND="~x11-libs/qt-assistant-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
656 +DEPEND="
657 + ~x11-libs/qt-assistant-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
658 ~x11-libs/qt-core-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=,qt3support=]
659 ~x11-libs/qt-dbus-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
660 ~x11-libs/qt-declarative-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=,webkit]
661 ~x11-libs/qt-gui-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=,qt3support=]
662 ~x11-libs/qt-multimedia-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
663 ~x11-libs/qt-opengl-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=,qt3support=]
664 - !kde? ( || ( ~x11-libs/qt-phonon-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
665 - media-libs/phonon[aqua=,debug=] ) )
666 - kde? ( media-libs/phonon[aqua=,debug=] )
667 + kde? ( media-libs/phonon[aqua=] )
668 + !kde? ( || (
669 + ~x11-libs/qt-phonon-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
670 + media-libs/phonon[aqua=]
671 + ) )
672 ~x11-libs/qt-script-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
673 ~x11-libs/qt-sql-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=,qt3support=]
674 ~x11-libs/qt-svg-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
675 ~x11-libs/qt-test-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
676 ~x11-libs/qt-webkit-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
677 - ~x11-libs/qt-xmlpatterns-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]"
678 -
679 + ~x11-libs/qt-xmlpatterns-${PV}:${SLOT}[aqua=,c++0x=,qpa=,debug=]
680 +"
681 RDEPEND="${DEPEND}"
682
683 -PATCHES=( "${FILESDIR}/${PN}-4.6-plugandpaint.patch" )
684 +PATCHES=(
685 + "${FILESDIR}/${PN}-4.6-plugandpaint.patch"
686 +)
687
688 pkg_setup() {
689 - QT4_TARGET_DIRECTORIES="demos
690 + QT4_TARGET_DIRECTORIES="
691 + demos
692 examples"
693 QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
694 doc/src/images
695 - src/
696 - include/
697 - tools/"
698 + src
699 + include
700 + tools"
701
702 - qt4-build-edge_pkg_setup
703 + qt4-build_pkg_setup
704 }
705
706 src_configure() {
707 - myconf="${myconf} $(qt_use qt3support) -no-openvg"
708 - qt4-build-edge_src_configure
709 + myconf="${myconf} $(qt_use qt3support)"
710 + qt4-build_src_configure
711 }
712
713 src_install() {
714 insinto "${QTDOCDIR#${EPREFIX}}"/src
715 - doins -r "${S}"/doc/src/images || die "Installing images failed."
716 + doins -r "${S}"/doc/src/images
717
718 - qt4-build-edge_src_install
719 + qt4-build_src_install
720 }
721
722 diff --git a/x11-libs/qt-gui/files/qt-gui-4.7.3-cups.patch b/x11-libs/qt-gui/files/qt-gui-4.7.3-cups.patch
723 new file mode 100644
724 index 0000000..e0305e1
725 --- /dev/null
726 +++ b/x11-libs/qt-gui/files/qt-gui-4.7.3-cups.patch
727 @@ -0,0 +1,84 @@
728 +diff -ur qt-everywhere-opensource-src-4.6.2/src/gui/dialogs/qprintdialog_unix.cpp qt-everywhere-opensource-src-4.6.2-cups/src/gui/dialogs/qprintdialog_unix.cpp
729 +--- qt-everywhere-opensource-src-4.6.2/src/gui/dialogs/qprintdialog_unix.cpp 2010-02-11 16:55:22.000000000 +0100
730 ++++ qt-everywhere-opensource-src-4.6.2-cups/src/gui/dialogs/qprintdialog_unix.cpp 2010-02-28 04:34:16.000000000 +0100
731 +@@ -569,6 +569,32 @@
732 + void QPrintDialogPrivate::selectPrinter(QCUPSSupport *cups)
733 + {
734 + options.duplex->setEnabled(cups && cups->ppdOption("Duplex"));
735 ++
736 ++ if (cups) {
737 ++ const ppd_option_t* duplex = cups->ppdOption("Duplex");
738 ++ if (duplex) {
739 ++ // copy default ppd duplex to qt dialog
740 ++ if (qstrcmp(duplex->defchoice, "DuplexTumble") == 0)
741 ++ options.duplexShort->setChecked(true);
742 ++ else if (qstrcmp(duplex->defchoice, "DuplexNoTumble") == 0)
743 ++ options.duplexLong->setChecked(true);
744 ++ else
745 ++ options.noDuplex->setChecked(true);
746 ++ }
747 ++
748 ++ if (cups->currentPPD()) {
749 ++ // set default color
750 ++ if (cups->currentPPD()->color_device)
751 ++ options.color->setChecked(true);
752 ++ else
753 ++ options.grayscale->setChecked(true);
754 ++ }
755 ++
756 ++ // set collation
757 ++ const ppd_option_t *collate = cups->ppdOption("Collate");
758 ++ if (collate)
759 ++ options.collate->setChecked(qstrcmp(collate->defchoice, "True")==0);
760 ++ }
761 + }
762 + #endif
763 +
764 +diff -ur qt-everywhere-opensource-src-4.6.2/src/gui/painting/qprinter.cpp qt-everywhere-opensource-src-4.6.2-cups/src/gui/painting/qprinter.cpp
765 +--- qt-everywhere-opensource-src-4.6.2/src/gui/painting/qprinter.cpp 2010-02-11 16:55:22.000000000 +0100
766 ++++ qt-everywhere-opensource-src-4.6.2-cups/src/gui/painting/qprinter.cpp 2010-02-28 04:55:15.000000000 +0100
767 +@@ -627,6 +627,44 @@
768 + && d_ptr->paintEngine->type() != QPaintEngine::MacPrinter) {
769 + setOutputFormat(QPrinter::PdfFormat);
770 + }
771 ++
772 ++#if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY)
773 ++ // fill in defaults from ppd file
774 ++ QCUPSSupport cups;
775 ++
776 ++ int printernum = -1;
777 ++ for (int i = 0; i < cups.availablePrintersCount(); i++) {
778 ++ if (printerName().toLocal8Bit() == cups.availablePrinters()[i].name)
779 ++ printernum = i;
780 ++ }
781 ++ if (printernum >= 0) {
782 ++ cups.setCurrentPrinter(printernum);
783 ++
784 ++ const ppd_option_t* duplex = cups.ppdOption("Duplex");
785 ++ if (duplex) {
786 ++ // copy default ppd duplex to qt dialog
787 ++ if (qstrcmp(duplex->defchoice, "DuplexTumble") == 0)
788 ++ setDuplex(DuplexShortSide);
789 ++ else if (qstrcmp(duplex->defchoice, "DuplexNoTumble") == 0)
790 ++ setDuplex(DuplexLongSide);
791 ++ else
792 ++ setDuplex(DuplexNone);
793 ++ }
794 ++
795 ++ if (cups.currentPPD()) {
796 ++ // set default color
797 ++ if (cups.currentPPD()->color_device)
798 ++ setColorMode(Color);
799 ++ else
800 ++ setColorMode(GrayScale);
801 ++ }
802 ++
803 ++ // set collation
804 ++ const ppd_option_t *collate = cups.ppdOption("Collate");
805 ++ if (collate)
806 ++ setCollateCopies(qstrcmp(collate->defchoice, "True")==0);
807 ++ }
808 ++#endif
809 + }
810 +
811 + /*!
812
813 diff --git a/x11-libs/qt-gui/qt-gui-4.8.9999.ebuild b/x11-libs/qt-gui/qt-gui-4.8.9999.ebuild
814 index fb41abd..309bd3b 100644
815 --- a/x11-libs/qt-gui/qt-gui-4.8.9999.ebuild
816 +++ b/x11-libs/qt-gui/qt-gui-4.8.9999.ebuild
817 @@ -2,21 +2,22 @@
818 # Distributed under the terms of the GNU General Public License v2
819 # $Header: $
820
821 -EAPI="4"
822 -if [[ ${PV} == 4*9999 ]]; then
823 - QT_ECLASS="-edge"
824 -fi
825 -inherit eutils confutils qt4-build${QT_ECLASS}
826 +EAPI=4
827 +
828 +inherit qt4-build
829
830 DESCRIPTION="The GUI module for the Qt toolkit"
831 SLOT="4"
832 -if [[ ${PV} != 4*9999 ]]; then
833 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
834 -else
835 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
836 KEYWORDS=""
837 +else
838 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
839 fi
840 +IUSE="+accessibility cups dbus egl gif +glib gtkstyle mng nas nis qt3support tiff trace xinerama +xv"
841
842 -IUSE="+accessibility cups dbus egl gif +glib gtkstyle mng nas nis qt3support tiff trace xinerama"
843 +REQUIRED_USE="
844 + gtkstyle? ( glib )
845 +"
846
847 RDEPEND="
848 app-admin/eselect-qtgraphicssystem
849 @@ -28,13 +29,16 @@ RDEPEND="
850 ~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=,glib=,qt3support=]
851 ~x11-libs/qt-script-${PV}[aqua=,c++0x=,qpa=,debug=]
852 !aqua? (
853 + x11-libs/libICE
854 + x11-libs/libSM
855 x11-libs/libX11
856 - x11-libs/libXext
857 - x11-libs/libXrandr
858 x11-libs/libXcursor
859 - x11-libs/libXfont
860 - x11-libs/libSM
861 + x11-libs/libXext
862 x11-libs/libXi
863 + x11-libs/libXrandr
864 + x11-libs/libXrender
865 + xinerama? ( x11-libs/libXinerama )
866 + xv? ( x11-libs/libXv )
867 )
868 cups? ( net-print/cups )
869 dbus? ( ~x11-libs/qt-dbus-${PV}[aqua=,c++0x=,qpa=,debug=] )
870 @@ -43,16 +47,20 @@ RDEPEND="
871 mng? ( >=media-libs/libmng-1.0.9 )
872 nas? ( >=media-libs/nas-1.5 )
873 tiff? ( media-libs/tiff:0 )
874 - xinerama? ( x11-libs/libXinerama )"
875 +"
876 DEPEND="${RDEPEND}
877 !aqua? (
878 - x11-proto/xextproto
879 x11-proto/inputproto
880 + x11-proto/xextproto
881 + xinerama? ( x11-proto/xineramaproto )
882 + xv? ( x11-proto/videoproto )
883 )
884 - xinerama? ( x11-proto/xineramaproto )"
885 -RDEPEND="${RDEPEND}
886 - !~x11-themes/qgtkstyle-4.7.2"
887 -PDEPEND="qt3support? ( ~x11-libs/qt-qt3support-${PV}[aqua=,c++0x=,qpa=,debug=] )"
888 +"
889 +PDEPEND="qt3support? ( ~x11-libs/qt-qt3support-${PV}[aqua=,c++0x=,debug=,qpa=] )"
890 +
891 +PATCHES=(
892 + "${FILESDIR}/${PN}-4.7.3-cups.patch"
893 +)
894
895 pkg_setup() {
896 # this belongs to pkg_pretend, we have to upgrade to EAPI 4 :)
897 @@ -73,11 +81,9 @@ pkg_setup() {
898 eerror "re-enable the disabled use flag and/or reinstall cairo."
899 ewarn
900 echo
901 - die "can't build qt-gui with gtkstyle USE if cairo has qt4 USE enabled"
902 + die "can't build ${PN} with USE=gtkstyle if cairo has 'qt4' USE flag enabled"
903 fi
904
905 - confutils_use_depend_all gtkstyle glib
906 -
907 QT4_TARGET_DIRECTORIES="
908 src/gui
909 src/scripttools
910 @@ -88,32 +94,33 @@ pkg_setup() {
911 src/plugins/imageformats/jpeg
912 src/plugins/inputmethods"
913
914 - if [[ ${PV} != 4*9999 ]]; then
915 - QT4_EXTRACT_DIRECTORIES="
916 - include
917 - src
918 - tools"
919 - fi
920 + QT4_EXTRACT_DIRECTORIES="
921 + include
922 + src
923 + tools"
924
925 + use accessibility && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/accessible/widgets"
926 use dbus && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} tools/qdbus/qdbusviewer"
927 use mng && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/mng"
928 use tiff && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/tiff"
929 - use accessibility && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/accessible/widgets"
930 use trace && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/graphicssystems/trace"
931
932 - QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} ${QT4_EXTRACT_DIRECTORIES}"
933 -
934 # mac version does not contain qtconfig?
935 [[ ${CHOST} == *-darwin* ]] || QT4_TARGET_DIRECTORIES+=" tools/qtconfig"
936
937 - qt4-build${QT_ECLASS}_pkg_setup
938 + QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} ${QT4_EXTRACT_DIRECTORIES}"
939 +
940 + qt4-build_pkg_setup
941 }
942
943 src_prepare() {
944 - qt4-build${QT_ECLASS}_src_prepare
945 + qt4-build_src_prepare
946 +
947 + # Add -xvideo to the list of accepted configure options
948 + sed -i -e 's:|-xinerama|:&-xvideo|:' configure
949
950 # Don't build plugins this go around, because they depend on qt3support lib
951 - sed -i -e "s:CONFIG(shared:# &:g" "${S}"/tools/designer/src/src.pro || die
952 + sed -i -e 's:CONFIG(shared:# &:g' tools/designer/src/src.pro
953 }
954
955 src_configure() {
956 @@ -122,8 +129,10 @@ src_configure() {
957
958 myconf="$(qt_use accessibility)
959 $(qt_use cups)
960 + $(use gif || echo -no-gif)
961 $(qt_use glib)
962 $(qt_use mng libmng system)
963 + $(qt_use nas nas-sound system)
964 $(qt_use nis)
965 $(qt_use tiff libtiff system)
966 $(qt_use dbus qdbus)
967 @@ -131,46 +140,56 @@ src_configure() {
968 $(qt_use egl)
969 $(qt_use qt3support)
970 $(qt_use gtkstyle)
971 - $(qt_use xinerama)"
972 + $(qt_use xinerama)
973 + $(qt_use xv xvideo)"
974
975 - use gif || myconf="${myconf} -no-gif"
976 - use nas && myconf="${myconf} -system-nas-sound"
977 + myconf+="
978 + -system-libpng -system-libjpeg
979 + -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
980 + -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
981 + -fontconfig -no-svg -no-webkit -no-phonon -no-opengl"
982
983 - [[ x86_64-apple-darwin* ]] && myconf="${myconf} -no-ssse3" #367045
984 + [[ ${CHOST} == *86*-apple-darwin* ]] && myconf+=" -no-ssse3" #367045
985
986 - myconf="${myconf} -system-libpng -system-libjpeg
987 - -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2
988 - -no-sql-odbc -xrender -xrandr -xkb -xshape -sm -no-svg -no-webkit
989 - -no-phonon -no-opengl"
990 -
991 - qt4-build${QT_ECLASS}_src_configure
992 + qt4-build_src_configure
993
994 if use gtkstyle; then
995 einfo "patching the Makefile to fix qgtkstyle compilation"
996 sed "s:-I/usr/include/qt4 ::" -i src/gui/Makefile ||
997 die "sed failed"
998 fi
999 - einfo "patching the Makefile to fix bug #361277"
1000 - sed "s:-I/usr/include/qt4/QtGui ::" -i src/gui/Makefile ||
1001 - die "sed failed"
1002 + sed -i -e "s:-I/usr/include/qt4/QtGui ::" src/gui/Makefile || die "sed failed"
1003 }
1004
1005 src_install() {
1006 - QCONFIG_ADD="x11sm xshape xcursor xfixes xrandr xrender xkb fontconfig
1007 - $(usev accessibility) $(usev xinerama) $(usev cups) $(usev nas)
1008 - gif png system-png system-jpeg
1009 + QCONFIG_ADD="
1010 + mitshm x11sm xcursor xfixes xinput xkb xrandr xrender xshape xsync
1011 + fontconfig gif png system-png jpeg system-jpeg
1012 + $(usev accessibility)
1013 + $(usev cups)
1014 $(use mng && echo system-mng)
1015 - $(use tiff && echo system-tiff)"
1016 - QCONFIG_REMOVE="no-gif no-png"
1017 + $(usev nas)
1018 + $(usev nis)
1019 + $(use tiff && echo system-tiff)
1020 + $(usev xinerama)
1021 + $(use xv && echo xvideo)"
1022 + QCONFIG_REMOVE="no-gif no-jpeg no-png"
1023 QCONFIG_DEFINE="$(use accessibility && echo QT_ACCESSIBILITY)
1024 - $(use cups && echo QT_CUPS) QT_FONTCONFIG QT_IMAGEFORMAT_JPEG
1025 + $(use cups && echo QT_CUPS)
1026 + $(use egl && echo QT_EGL)
1027 + QT_FONTCONFIG
1028 + $(use gtkstyle && echo QT_STYLE_GTK)
1029 + QT_IMAGEFORMAT_JPEG QT_IMAGEFORMAT_PNG
1030 $(use mng && echo QT_IMAGEFORMAT_MNG)
1031 $(use nas && echo QT_NAS)
1032 - $(use nis && echo QT_NIS) QT_IMAGEFORMAT_PNG QT_SESSIONMANAGER QT_SHAPE
1033 - $(use tiff && echo QT_IMAGEFORMAT_TIFF) QT_XCURSOR
1034 - $(use xinerama && echo QT_XINERAMA) QT_XFIXES QT_XKB QT_XRANDR QT_XRENDER"
1035 + $(use nis && echo QT_NIS)
1036 + $(use tiff && echo QT_IMAGEFORMAT_TIFF)
1037 + QT_SESSIONMANAGER QT_SHAPE QT_XCURSOR QT_XFIXES
1038 + $(use xinerama && echo QT_XINERAMA)
1039 + QT_XINPUT QT_XKB QT_XRANDR QT_XRENDER QT_XSYNC
1040 + $(use xv && echo QT_XVIDEO)"
1041
1042 - qt4-build${QT_ECLASS}_src_install
1043 + qt4-build_src_install
1044
1045 # qt-creator
1046 # some qt-creator headers are located
1047 @@ -184,51 +203,39 @@ src_install() {
1048 else
1049 insinto "${QTHEADERDIR#${EPREFIX}}"/QtDesigner/private/
1050 fi
1051 - doins "${S}"/tools/designer/src/lib/shared/* || die
1052 - doins "${S}"/tools/designer/src/lib/sdk/* || die
1053 -
1054 - #touch the available graphics systems
1055 - mkdir -p "${ED}/usr/share/qt4/graphicssystems/" ||
1056 - die "could not create ${ED}/usr/share/qt4/graphicssystems/"
1057 - echo "default" > "${ED}/usr/share/qt4/graphicssystems/raster" ||
1058 - die "could not create ${ED}/usr/share/qt4/graphicssystems/raster"
1059 - touch "${ED}/usr/share/qt4/graphicssystems/native" ||
1060 - die "could not touch ${ED}/usr/share/qt4/graphicssystems/native"
1061 -
1062 - #install private headers
1063 + doins "${S}"/tools/designer/src/lib/shared/*
1064 + doins "${S}"/tools/designer/src/lib/sdk/*
1065 +
1066 + # install private headers
1067 if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]] ; then
1068 insinto "${QTLIBDIR#${EPREFIX}}"/QtGui.framework/Headers/private/
1069 else
1070 insinto "${QTHEADERDIR#${EPREFIX}}"/QtGui/private
1071 fi
1072 - find "${S}"/src/gui -type f -name "*_p.h" -exec doins {} \;
1073 + find "${S}"/src/gui -type f -name '*_p.h' -exec doins {} +
1074
1075 if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]] ; then
1076 # rerun to get links to headers right
1077 fix_includes
1078 fi
1079
1080 - # install correct designer and linguist icons, bug 241208
1081 - doicon tools/linguist/linguist/images/icons/linguist-128-32.png \
1082 - tools/designer/src/designer/images/designer.png \
1083 - || die "doicon failed"
1084 - # Note: absolute image path required here!
1085 - make_desktop_entry linguist Linguist \
1086 - /usr/share/pixmaps/linguist-128-32.png \
1087 - 'Qt;Development;GUIDesigner' \
1088 - || die "linguist make_desktop_entry failed"
1089 - make_desktop_entry designer Designer \
1090 - /usr/share/pixmaps/designer.png \
1091 - 'Qt;Development;GUIDesigner' \
1092 - || die "designer make_desktop_entry failed"
1093 + # touch the available graphics systems
1094 + dodir /usr/share/qt4/graphicssystems
1095 + echo "default" > "${ED}"/usr/share/qt4/graphicssystems/raster || die
1096 + touch "${ED}"/usr/share/qt4/graphicssystems/native || die
1097 +
1098 + doicon tools/designer/src/designer/images/designer.png \
1099 + tools/linguist/linguist/images/icons/linguist-128-32.png
1100 + make_desktop_entry designer Designer designer 'Qt;Development;GUIDesigner'
1101 + make_desktop_entry linguist Linguist linguist-128-32 'Qt;Development;GUIDesigner'
1102 }
1103
1104 pkg_postinst() {
1105 # raster is the default graphicssystems, set it if first install
1106 eselect qtgraphicssystem set raster --use-old
1107 - elog "Starting with qt 4.8.0, you may choose the active Qt Graphics System"
1108 + elog "Starting with Qt 4.8.0, you may choose the active Qt Graphics System"
1109 elog "by using a new eselect module called qtgraphicssystem."
1110 elog "Run"
1111 elog " eselect qtgraphicssystem"
1112 - elog "for more information"
1113 + elog "for more information."
1114 }
1115
1116 diff --git a/x11-libs/qt-multimedia/files/qt-multimedia-4.8.0-alsa.patch b/x11-libs/qt-multimedia/files/qt-multimedia-4.8.0-alsa.patch
1117 new file mode 100644
1118 index 0000000..8bd40ed
1119 --- /dev/null
1120 +++ b/x11-libs/qt-multimedia/files/qt-multimedia-4.8.0-alsa.patch
1121 @@ -0,0 +1,25 @@
1122 +--- qt-everywhere-opensource-src-4.8.0.orig/configure 2012-03-13 00:45:02.502205702 +0100
1123 ++++ qt-everywhere-opensource-src-4.8.0/configure 2012-03-13 00:47:40.386231881 +0100
1124 +@@ -1049,7 +1049,7 @@
1125 + VAL=no
1126 + ;;
1127 + #Qt style yes options
1128 +- -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-egl|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-carbon|-universal|-harfbuzz|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-declarative|-declarative-debug|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-s60|-usedeffiles|-icu)
1129 ++ -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-egl|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-carbon|-universal|-harfbuzz|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-declarative|-declarative-debug|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-s60|-usedeffiles|-icu|-alsa)
1130 + VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
1131 + VAL=yes
1132 + ;;
1133 +@@ -2399,6 +2399,13 @@
1134 + else
1135 + UNKNOWN_OPT=yes
1136 + fi
1137 ++ ;;
1138 ++ alsa)
1139 ++ if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
1140 ++ CFG_ALSA="$VAL"
1141 ++ else
1142 ++ UNKNOWN_OPT=yes
1143 ++ fi
1144 + ;;
1145 + *)
1146 + UNKNOWN_OPT=yes
1147
1148 diff --git a/x11-libs/qt-multimedia/qt-multimedia-4.8.9999.ebuild b/x11-libs/qt-multimedia/qt-multimedia-4.8.9999.ebuild
1149 index 86483d8..a86bd6b 100644
1150 --- a/x11-libs/qt-multimedia/qt-multimedia-4.8.9999.ebuild
1151 +++ b/x11-libs/qt-multimedia/qt-multimedia-4.8.9999.ebuild
1152 @@ -2,56 +2,59 @@
1153 # Distributed under the terms of the GNU General Public License v2
1154 # $Header: $
1155
1156 -EAPI="4"
1157 -inherit qt4-build-edge
1158 +EAPI=4
1159
1160 -DESCRIPTION="The Qt multimedia module"
1161 +inherit qt4-build
1162 +
1163 +DESCRIPTION="The Multimedia module for the Qt toolkit"
1164 SLOT="4"
1165 -if [[ ${PV} != 4*9999 ]]; then
1166 - KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 -sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
1167 -else
1168 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
1169 KEYWORDS=""
1170 +else
1171 + KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
1172 fi
1173 +IUSE="alsa"
1174
1175 -IUSE="iconv"
1176 -
1177 -DEPEND="!aqua? ( media-libs/alsa-lib )
1178 - ~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=]
1179 - ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,qpa=,debug=]"
1180 +DEPEND="
1181 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=]
1182 + ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,debug=,qpa=]
1183 + alsa? ( media-libs/alsa-lib )
1184 +"
1185 RDEPEND="${DEPEND}"
1186
1187 +PATCHES=(
1188 + "${FILESDIR}/${PN}-4.8.0-alsa.patch"
1189 +)
1190 +
1191 pkg_setup() {
1192 - QT4_TARGET_DIRECTORIES="src/multimedia"
1193 -
1194 - if [[ ${PV} != 4*9999 ]]; then
1195 - QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
1196 - include/Qt/
1197 - include/QtCore/
1198 - include/QtGui/
1199 - include/QtMultimedia/
1200 - include/QtNetwork/
1201 - src/src.pro
1202 - src/3rdparty/
1203 - src/corelib/
1204 - src/gui/
1205 - src/network/
1206 - src/plugins/
1207 - src/tools/"
1208 - fi
1209 -
1210 - qt4-build-edge_pkg_setup
1211 + QT4_TARGET_DIRECTORIES="
1212 + src/multimedia"
1213 +
1214 + QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
1215 + include/Qt
1216 + include/QtCore
1217 + include/QtGui
1218 + include/QtMultimedia
1219 + src/src.pro
1220 + src/corelib
1221 + src/gui"
1222 +
1223 + QCONFIG_ADD="multimedia"
1224 + QCONFIG_DEFINE="QT_MULTIMEDIA"
1225 +
1226 + qt4-build_pkg_setup
1227 }
1228
1229 src_configure() {
1230 - myconf="${myconf} $(qt_use iconv) -no-xkb -no-fontconfig -no-xrender
1231 - -no-xrandr -no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm
1232 - -no-opengl -no-nas-sound -no-dbus -no-cups -no-nis -no-gif -no-libpng
1233 - -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
1234 - -no-xmlpatterns -no-freetype -no-libtiff -no-accessibility
1235 - -no-fontconfig -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite
1236 - -no-sql-sqlite2 -no-sql-odbc -no-glib -no-opengl -no-svg -no-gtkstyle
1237 - -no-phonon-backend -no-script -no-scripttools -no-cups -no-xsync
1238 - -no-xinput"
1239 -
1240 - qt4-build-edge_src_configure
1241 + myconf+="
1242 + -multimedia -audio-backend
1243 + $(qt_use alsa)
1244 + -no-accessibility -no-qt3support -no-xmlpatterns -no-phonon -no-phonon-backend
1245 + -no-svg -no-webkit -no-script -no-scripttools -no-declarative
1246 + -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg -no-openssl
1247 + -no-cups -no-dbus -no-gtkstyle -no-nas-sound -no-opengl
1248 + -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
1249 + -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb"
1250 +
1251 + qt4-build_src_configure
1252 }
1253
1254 diff --git a/x11-libs/qt-opengl/files/qtbug-9691-Xdefs.patch b/x11-libs/qt-opengl/files/qtbug-9691-Xdefs.patch
1255 deleted file mode 100644
1256 index dfd351d..0000000
1257 --- a/x11-libs/qt-opengl/files/qtbug-9691-Xdefs.patch
1258 +++ /dev/null
1259 @@ -1,97 +0,0 @@
1260 ---- qt/src/opengl/qglpaintdevice.cpp.ark 2010-04-12 17:10:24.569947561 +0200
1261 -+++ qt/src/opengl/qglpaintdevice.cpp 2010-04-12 17:17:02.170326744 +0200
1262 -@@ -39,8 +39,15 @@
1263 - **
1264 - ****************************************************************************/
1265 -
1266 -+#include <QtCore/qglobal.h>
1267 -+#ifdef Q_WS_X11
1268 -+#include <X11/Xdefs.h> // for Bool
1269 -+#endif
1270 - #include <private/qglpaintdevice_p.h>
1271 - #include <private/qgl_p.h>
1272 -+#if defined(Q_WS_X11) && !defined(Status)
1273 -+#define Status int
1274 -+#endif
1275 - #include <private/qglpixelbuffer_p.h>
1276 - #include <private/qglframebufferobject_p.h>
1277 - #include <private/qwindowsurface_gl_p.h>
1278 ---- qt/src/opengl/qglpixelbuffer.cpp.ark 2010-04-12 17:11:21.820358541 +0200
1279 -+++ qt/src/opengl/qglpixelbuffer.cpp 2010-04-12 17:12:35.950561190 +0200
1280 -@@ -82,6 +82,10 @@
1281 - #include <private/qpaintengineex_opengl2_p.h>
1282 - #endif
1283 -
1284 -+#ifdef Q_WS_X11
1285 -+#include <X11/Xdefs.h> // for Bool, needed by GL/glx.h
1286 -+#define Status int
1287 -+#endif
1288 - #include <qglpixelbuffer.h>
1289 - #include <private/qglpixelbuffer_p.h>
1290 - #include <qimage.h>
1291 ---- qt/src/opengl/qglpixelbuffer_x11.cpp.ark 2010-04-12 17:21:23.483840735 +0200
1292 -+++ qt/src/opengl/qglpixelbuffer_x11.cpp 2010-04-12 17:22:39.463626818 +0200
1293 -@@ -40,11 +40,15 @@
1294 - ****************************************************************************/
1295 - #include <qlibrary.h>
1296 - #include <qdebug.h>
1297 --#include <private/qgl_p.h>
1298 - #include <private/qt_x11_p.h>
1299 -+#include <private/qgl_p.h>
1300 - #include <private/qpaintengine_opengl_p.h>
1301 -
1302 - #include <qx11info_x11.h>
1303 -+#include <X11/Xdefs.h> // for Bool
1304 -+#ifndef Status
1305 -+#define Status int
1306 -+#endif
1307 - #include <GL/glx.h>
1308 - #include <qimage.h>
1309 -
1310 ---- qt/src/opengl/qgl_x11.cpp.ark 2010-04-12 17:20:07.366862655 +0200
1311 -+++ qt/src/opengl/qgl_x11.cpp 2010-04-12 17:21:02.240510982 +0200
1312 -@@ -39,9 +39,6 @@
1313 - **
1314 - ****************************************************************************/
1315 -
1316 --#include "qgl.h"
1317 --#include "qgl_p.h"
1318 --
1319 - #include "qmap.h"
1320 - #include "qapplication.h"
1321 - #include "qcolormap.h"
1322 -@@ -82,6 +79,11 @@
1323 - #endif // Q_OS_VXWORKS
1324 - #include <X11/Xatom.h>
1325 -
1326 -+#include "qgl.h"
1327 -+#include "qgl_p.h"
1328 -+
1329 -+#include <X11/Xdefs.h>
1330 -+
1331 - #if defined(Q_OS_LINUX) || defined(Q_OS_BSD4)
1332 - #include <dlfcn.h>
1333 - #endif
1334 ---- qt/src/opengl/qpaintengine_opengl.cpp.ark 2010-04-12 17:17:13.883240412 +0200
1335 -+++ qt/src/opengl/qpaintengine_opengl.cpp 2010-04-12 17:18:26.056568593 +0200
1336 -@@ -48,6 +48,10 @@
1337 - #include "qapplication.h"
1338 - #include "qbrush.h"
1339 - #include "qgl.h"
1340 -+#include <qglobal.h>
1341 -+#ifdef Q_WS_X11
1342 -+#include <X11/Xdefs.h> // Needed for Bool, needed by GL/glx.h
1343 -+#endif
1344 - #include <private/qgl_p.h>
1345 - #include <private/qglpaintdevice_p.h>
1346 - #include <private/qpainter_p.h>
1347 -@@ -57,6 +61,9 @@
1348 - #include "qpen.h"
1349 - #include "qvarlengtharray.h"
1350 - #include <private/qpainter_p.h>
1351 -+#ifdef Q_WS_X11
1352 -+#define Status int
1353 -+#endif
1354 - #include <private/qglpixelbuffer_p.h>
1355 - #include <private/qbezier_p.h>
1356 - #include <qglframebufferobject.h>
1357
1358 diff --git a/x11-libs/qt-opengl/qt-opengl-4.8.9999.ebuild b/x11-libs/qt-opengl/qt-opengl-4.8.9999.ebuild
1359 index a87661a..83838d3 100644
1360 --- a/x11-libs/qt-opengl/qt-opengl-4.8.9999.ebuild
1361 +++ b/x11-libs/qt-opengl/qt-opengl-4.8.9999.ebuild
1362 @@ -2,65 +2,63 @@
1363 # Distributed under the terms of the GNU General Public License v2
1364 # $Header: $
1365
1366 -EAPI="4"
1367 -if [[ ${PV} == 4*9999 ]]; then
1368 - QT_ECLASS="-edge"
1369 -fi
1370 -inherit qt4-build${QT_ECLASS}
1371 +EAPI=4
1372 +
1373 +inherit qt4-build
1374
1375 DESCRIPTION="The OpenGL module for the Qt toolkit"
1376 SLOT="4"
1377 -if [[ ${PV} != 4*9999 ]]; then
1378 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
1379 -else
1380 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
1381 KEYWORDS=""
1382 +else
1383 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
1384 fi
1385 -
1386 IUSE="egl qt3support"
1387
1388 -DEPEND="~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=,qt3support=]
1389 - ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,qpa=,debug=,egl=,qt3support=]
1390 - virtual/opengl"
1391 +DEPEND="
1392 + virtual/opengl
1393 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=]
1394 + ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,debug=,egl=,qpa=,qt3support=]
1395 +"
1396 RDEPEND="${DEPEND}"
1397
1398 pkg_setup() {
1399 QT4_TARGET_DIRECTORIES="
1400 src/opengl
1401 src/plugins/graphicssystems/opengl"
1402 - if [[ ${PV} != 4*9999 ]]; then
1403 - QT4_EXTRACT_DIRECTORIES="
1404 - include/QtCore
1405 - include/QtGui
1406 - include/QtOpenGL
1407 - src/corelib
1408 - src/gui
1409 - src/opengl
1410 - src/plugins
1411 - src/3rdparty"
1412 - fi
1413 +
1414 + QT4_EXTRACT_DIRECTORIES="
1415 + include/QtCore
1416 + include/QtGui
1417 + include/QtOpenGL
1418 + src/corelib
1419 + src/gui
1420 + src/opengl
1421 + src/plugins
1422 + src/3rdparty"
1423
1424 QCONFIG_ADD="opengl"
1425 - QCONFIG_DEFINE="QT_OPENGL $(use egl && echo QT_EGL)"
1426 - qt4-build${QT_ECLASS}_pkg_setup
1427 + QCONFIG_DEFINE="QT_OPENGL"
1428 +
1429 + qt4-build_pkg_setup
1430 }
1431
1432 src_configure() {
1433 - myconf="${myconf} -opengl
1434 + myconf+="
1435 + -opengl
1436 $(qt_use qt3support)
1437 $(qt_use egl)"
1438
1439 - qt4-build${QT_ECLASS}_src_configure
1440 + qt4-build_src_configure
1441
1442 # Not building tools/designer/src/plugins/tools/view3d as it's
1443 # commented out of the build in the source
1444 }
1445
1446 src_install() {
1447 - qt4-build${QT_ECLASS}_src_install
1448 + qt4-build_src_install
1449
1450 - #touch the available graphics systems
1451 - mkdir -p "${ED}/usr/share/qt4/graphicssystems/" ||
1452 - die "could not create ${ED}/usr/share/qt4/graphicssystems/"
1453 - echo "experimental" > "${ED}/usr/share/qt4/graphicssystems/opengl" ||
1454 - die "could not create ${ED}/usr/share/qt4/graphicssystems/opengl"
1455 + # touch the available graphics systems
1456 + dodir /usr/share/qt4/graphicssystems
1457 + echo "experimental" > "${ED}"/usr/share/qt4/graphicssystems/opengl || die
1458 }
1459
1460 diff --git a/x11-libs/qt-openvg/qt-openvg-4.8.9999.ebuild b/x11-libs/qt-openvg/qt-openvg-4.8.9999.ebuild
1461 index 14ab72f..1cd981c 100644
1462 --- a/x11-libs/qt-openvg/qt-openvg-4.8.9999.ebuild
1463 +++ b/x11-libs/qt-openvg/qt-openvg-4.8.9999.ebuild
1464 @@ -2,60 +2,61 @@
1465 # Distributed under the terms of the GNU General Public License v2
1466 # $Header: $
1467
1468 -EAPI="4"
1469 -inherit qt4-build-edge
1470 +EAPI=4
1471 +
1472 +inherit qt4-build
1473
1474 DESCRIPTION="The OpenVG module for the Qt toolkit"
1475 SLOT="4"
1476 -if [[ ${PV} != 4*9999 ]]; then
1477 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
1478 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
1479 + KEYWORDS=""
1480 else
1481 - KEYWWORDS=""
1482 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
1483 fi
1484 -
1485 IUSE="qt3support"
1486
1487 -DEPEND="~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=]
1488 +DEPEND="
1489 + media-libs/mesa[egl,openvg]
1490 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=]
1491 ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,debug=,egl,qpa=,qt3support=]
1492 - media-libs/mesa[openvg]"
1493 +"
1494 RDEPEND="${DEPEND}"
1495
1496 pkg_setup() {
1497 QT4_TARGET_DIRECTORIES="
1498 src/openvg
1499 src/plugins/graphicssystems/openvg"
1500 - if [[ ${PV} != 4*9999 ]]; then
1501 - QT4_EXTRACT_DIRECTORIES="
1502 - include/QtCore
1503 - include/QtGui
1504 - include/QtOpenVG
1505 - src/corelib
1506 - src/gui
1507 - src/openvg
1508 - src/plugins
1509 - src/3rdparty"
1510 - fi
1511 +
1512 + QT4_EXTRACT_DIRECTORIES="
1513 + include/QtCore
1514 + include/QtGui
1515 + include/QtOpenVG
1516 + src/corelib
1517 + src/gui
1518 + src/openvg
1519 + src/plugins
1520 + src/3rdparty"
1521 +
1522 QCONFIG_ADD="openvg"
1523 QCONFIG_DEFINE="QT_OPENVG"
1524
1525 - qt4-build-edge_pkg_setup
1526 + qt4-build_pkg_setup
1527 }
1528
1529 src_configure() {
1530 gltype="desktop"
1531
1532 - myconf="${myconf} -openvg -egl
1533 + myconf+="
1534 + -openvg -egl
1535 $(qt_use qt3support)"
1536
1537 - qt4-build-edge_src_configure
1538 + qt4-build_src_configure
1539 }
1540
1541 src_install() {
1542 - qt4-build-edge_src_install
1543 + qt4-build_src_install
1544
1545 - #touch the available graphics systems
1546 - mkdir -p "${D}/usr/share/qt4/graphicssystems/" ||
1547 - die "could not create ${D}/usr/share/qt4/graphicssystems/"
1548 - echo "experimental" > "${D}/usr/share/qt4/graphicssystems/openvg" ||
1549 - die "could not create ${D}/usr/share/qt4/graphicssystems/openvg"
1550 + # touch the available graphics systems
1551 + dodir /usr/share/qt4/graphicssystems
1552 + echo "experimental" > "${ED}"/usr/share/qt4/graphicssystems/openvg || die
1553 }
1554
1555 diff --git a/x11-libs/qt-phonon/files/qtbug-9691-Xdefs.patch b/x11-libs/qt-phonon/files/qtbug-9691-Xdefs.patch
1556 deleted file mode 100644
1557 index dfd351d..0000000
1558 --- a/x11-libs/qt-phonon/files/qtbug-9691-Xdefs.patch
1559 +++ /dev/null
1560 @@ -1,97 +0,0 @@
1561 ---- qt/src/opengl/qglpaintdevice.cpp.ark 2010-04-12 17:10:24.569947561 +0200
1562 -+++ qt/src/opengl/qglpaintdevice.cpp 2010-04-12 17:17:02.170326744 +0200
1563 -@@ -39,8 +39,15 @@
1564 - **
1565 - ****************************************************************************/
1566 -
1567 -+#include <QtCore/qglobal.h>
1568 -+#ifdef Q_WS_X11
1569 -+#include <X11/Xdefs.h> // for Bool
1570 -+#endif
1571 - #include <private/qglpaintdevice_p.h>
1572 - #include <private/qgl_p.h>
1573 -+#if defined(Q_WS_X11) && !defined(Status)
1574 -+#define Status int
1575 -+#endif
1576 - #include <private/qglpixelbuffer_p.h>
1577 - #include <private/qglframebufferobject_p.h>
1578 - #include <private/qwindowsurface_gl_p.h>
1579 ---- qt/src/opengl/qglpixelbuffer.cpp.ark 2010-04-12 17:11:21.820358541 +0200
1580 -+++ qt/src/opengl/qglpixelbuffer.cpp 2010-04-12 17:12:35.950561190 +0200
1581 -@@ -82,6 +82,10 @@
1582 - #include <private/qpaintengineex_opengl2_p.h>
1583 - #endif
1584 -
1585 -+#ifdef Q_WS_X11
1586 -+#include <X11/Xdefs.h> // for Bool, needed by GL/glx.h
1587 -+#define Status int
1588 -+#endif
1589 - #include <qglpixelbuffer.h>
1590 - #include <private/qglpixelbuffer_p.h>
1591 - #include <qimage.h>
1592 ---- qt/src/opengl/qglpixelbuffer_x11.cpp.ark 2010-04-12 17:21:23.483840735 +0200
1593 -+++ qt/src/opengl/qglpixelbuffer_x11.cpp 2010-04-12 17:22:39.463626818 +0200
1594 -@@ -40,11 +40,15 @@
1595 - ****************************************************************************/
1596 - #include <qlibrary.h>
1597 - #include <qdebug.h>
1598 --#include <private/qgl_p.h>
1599 - #include <private/qt_x11_p.h>
1600 -+#include <private/qgl_p.h>
1601 - #include <private/qpaintengine_opengl_p.h>
1602 -
1603 - #include <qx11info_x11.h>
1604 -+#include <X11/Xdefs.h> // for Bool
1605 -+#ifndef Status
1606 -+#define Status int
1607 -+#endif
1608 - #include <GL/glx.h>
1609 - #include <qimage.h>
1610 -
1611 ---- qt/src/opengl/qgl_x11.cpp.ark 2010-04-12 17:20:07.366862655 +0200
1612 -+++ qt/src/opengl/qgl_x11.cpp 2010-04-12 17:21:02.240510982 +0200
1613 -@@ -39,9 +39,6 @@
1614 - **
1615 - ****************************************************************************/
1616 -
1617 --#include "qgl.h"
1618 --#include "qgl_p.h"
1619 --
1620 - #include "qmap.h"
1621 - #include "qapplication.h"
1622 - #include "qcolormap.h"
1623 -@@ -82,6 +79,11 @@
1624 - #endif // Q_OS_VXWORKS
1625 - #include <X11/Xatom.h>
1626 -
1627 -+#include "qgl.h"
1628 -+#include "qgl_p.h"
1629 -+
1630 -+#include <X11/Xdefs.h>
1631 -+
1632 - #if defined(Q_OS_LINUX) || defined(Q_OS_BSD4)
1633 - #include <dlfcn.h>
1634 - #endif
1635 ---- qt/src/opengl/qpaintengine_opengl.cpp.ark 2010-04-12 17:17:13.883240412 +0200
1636 -+++ qt/src/opengl/qpaintengine_opengl.cpp 2010-04-12 17:18:26.056568593 +0200
1637 -@@ -48,6 +48,10 @@
1638 - #include "qapplication.h"
1639 - #include "qbrush.h"
1640 - #include "qgl.h"
1641 -+#include <qglobal.h>
1642 -+#ifdef Q_WS_X11
1643 -+#include <X11/Xdefs.h> // Needed for Bool, needed by GL/glx.h
1644 -+#endif
1645 - #include <private/qgl_p.h>
1646 - #include <private/qglpaintdevice_p.h>
1647 - #include <private/qpainter_p.h>
1648 -@@ -57,6 +61,9 @@
1649 - #include "qpen.h"
1650 - #include "qvarlengtharray.h"
1651 - #include <private/qpainter_p.h>
1652 -+#ifdef Q_WS_X11
1653 -+#define Status int
1654 -+#endif
1655 - #include <private/qglpixelbuffer_p.h>
1656 - #include <private/qbezier_p.h>
1657 - #include <qglframebufferobject.h>
1658
1659 diff --git a/x11-libs/qt-phonon/qt-phonon-4.8.9999.ebuild b/x11-libs/qt-phonon/qt-phonon-4.8.9999.ebuild
1660 index 85980f4..efb3818 100644
1661 --- a/x11-libs/qt-phonon/qt-phonon-4.8.9999.ebuild
1662 +++ b/x11-libs/qt-phonon/qt-phonon-4.8.9999.ebuild
1663 @@ -1,29 +1,31 @@
1664 -# Copyright 1999-2011 Gentoo Foundation
1665 +# Copyright 1999-2012 Gentoo Foundation
1666 # Distributed under the terms of the GNU General Public License v2
1667 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-phonon/qt-phonon-4.7.4.ebuild,v 1.1 2011/09/08 09:21:01 wired Exp $
1668 +# $Header: $
1669
1670 -EAPI="4"
1671 -inherit qt4-build-edge
1672 +EAPI=4
1673 +
1674 +inherit qt4-build
1675
1676 DESCRIPTION="The Phonon module for the Qt toolkit"
1677 SLOT="4"
1678 -if [[ ${PV} != 4*9999 ]]; then
1679 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
1680 -else
1681 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
1682 KEYWORDS=""
1683 +else
1684 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
1685 fi
1686 -
1687 IUSE="dbus qt3support"
1688
1689 -DEPEND="~x11-libs/qt-gui-${PV}[aqua=,c++0x=,qpa=,debug=,qt3support=]
1690 +DEPEND="
1691 + ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,qpa=,debug=,qt3support=]
1692 !kde-base/phonon-kde
1693 !kde-base/phonon-xine
1694 !media-libs/phonon
1695 !media-sound/phonon
1696 !aqua? ( media-libs/gstreamer
1697 - media-plugins/gst-plugins-meta )
1698 + media-plugins/gst-plugins-meta )
1699 aqua? ( ~x11-libs/qt-opengl-${PV}[aqua,debug=,qt3support=] )
1700 - dbus? ( ~x11-libs/qt-dbus-${PV}[aqua=,c++0x=,qpa=,debug=] )"
1701 + dbus? ( ~x11-libs/qt-dbus-${PV}[aqua=,c++0x=,qpa=,debug=] )
1702 +"
1703 RDEPEND="${DEPEND}"
1704
1705 pkg_setup() {
1706 @@ -31,23 +33,24 @@ pkg_setup() {
1707 src/phonon
1708 src/plugins/phonon
1709 tools/designer/src/plugins/phononwidgets"
1710 - if [[ ${PV} != 4*9999 ]]; then
1711 - QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
1712 - include/
1713 - src
1714 - tools"
1715 - fi
1716 +
1717 + QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
1718 + include
1719 + src
1720 + tools"
1721
1722 QCONFIG_ADD="phonon"
1723 - use aqua || QCONFIG_DEFINE="QT_GSTREAMER"
1724 + QCONFIG_DEFINE="QT_PHONON
1725 + $(use !aqua && echo QT_GSTREAMER)"
1726
1727 - qt4-build-edge_pkg_setup
1728 + qt4-build_pkg_setup
1729 }
1730
1731 src_configure() {
1732 - myconf="${myconf} -phonon -phonon-backend -no-opengl -no-svg
1733 + myconf+="
1734 + -phonon -phonon-backend -no-opengl -no-svg
1735 $(qt_use dbus qdbus)
1736 $(qt_use qt3support)"
1737
1738 - qt4-build-edge_src_configure
1739 + qt4-build_src_configure
1740 }
1741
1742 diff --git a/x11-libs/qt-qt3support/qt-qt3support-4.8.9999.ebuild b/x11-libs/qt-qt3support/qt-qt3support-4.8.9999.ebuild
1743 index 59b4e58..2978a7f 100644
1744 --- a/x11-libs/qt-qt3support/qt-qt3support-4.8.9999.ebuild
1745 +++ b/x11-libs/qt-qt3support/qt-qt3support-4.8.9999.ebuild
1746 @@ -1,27 +1,25 @@
1747 # Copyright 1999-2012 Gentoo Foundation
1748 # Distributed under the terms of the GNU General Public License v2
1749 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-qt3support/qt-qt3support-4.7.4.ebuild,v 1.1 2011/09/08 09:21:19 wired Exp $
1750 +# $Header: $
1751
1752 -EAPI="4"
1753 -if [[ ${PV} == 4*9999 ]]; then
1754 - QT_ECLASS="-edge"
1755 -fi
1756 -inherit qt4-build${QT_ECLASS}
1757 +EAPI=4
1758 +
1759 +inherit qt4-build
1760
1761 DESCRIPTION="The Qt3 support module for the Qt toolkit"
1762 SLOT="4"
1763 -if [[ ${PV} != 4*9999 ]]; then
1764 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
1765 -else
1766 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
1767 KEYWORDS=""
1768 +else
1769 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
1770 fi
1771 -
1772 IUSE="+accessibility"
1773
1774 -DEPEND="~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=,qt3support]
1775 - ~x11-libs/qt-gui-${PV}[accessibility=,aqua=,c++0x=,qpa=,debug=,qt3support]
1776 - ~x11-libs/qt-sql-${PV}[aqua=,c++0x=,qpa=,debug=,qt3support]"
1777 -
1778 +DEPEND="
1779 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support]
1780 + ~x11-libs/qt-gui-${PV}[accessibility=,aqua=,c++0x=,debug=,qpa=,qt3support]
1781 + ~x11-libs/qt-sql-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support]
1782 +"
1783 RDEPEND="${DEPEND}"
1784
1785 pkg_setup() {
1786 @@ -30,15 +28,19 @@ pkg_setup() {
1787 src/tools/uic3
1788 tools/designer/src/plugins/widgets
1789 tools/porting"
1790 - if [[ ${PV} != 4*9999 ]]; then
1791 - QT4_EXTRACT_DIRECTORIES="src include tools"
1792 - fi
1793
1794 - qt4-build${QT_ECLASS}_pkg_setup
1795 + QT4_EXTRACT_DIRECTORIES="
1796 + src
1797 + include
1798 + tools"
1799 +
1800 + qt4-build_pkg_setup
1801 }
1802
1803 src_configure() {
1804 - myconf="${myconf} -qt3support
1805 + myconf+="
1806 + -qt3support
1807 $(qt_use accessibility)"
1808 - qt4-build${QT_ECLASS}_src_configure
1809 +
1810 + qt4-build_src_configure
1811 }
1812
1813 diff --git a/x11-libs/qt-script/files/qt-4.6-master-nolibx11.patch b/x11-libs/qt-script/files/qt-4.6-master-nolibx11.patch
1814 deleted file mode 100644
1815 index 14e5fce..0000000
1816 --- a/x11-libs/qt-script/files/qt-4.6-master-nolibx11.patch
1817 +++ /dev/null
1818 @@ -1,20 +0,0 @@
1819 -Index: qt-everywhere-opensource-src-4.6.9999/configure
1820 -===================================================================
1821 ---- qt-everywhere-opensource-src-4.6.9999.orig/configure
1822 -+++ qt-everywhere-opensource-src-4.6.9999/configure
1823 -@@ -5069,15 +5069,6 @@ if [ "$PLATFORM_X11" = "yes" ]; then
1824 - X11TESTS_FLAGS="$X11TESTS_FLAGS -fpermissive"
1825 - fi
1826 -
1827 -- # Check we actually have X11 :-)
1828 -- "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xlib "XLib" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
1829 -- if [ $? != "0" ]; then
1830 -- echo "Basic XLib functionality test failed!"
1831 -- echo " You might need to modify the include and library search paths by editing"
1832 -- echo " QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ${XQMAKESPEC}."
1833 -- exit 1
1834 -- fi
1835 --
1836 - # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es1cl = ES 1.x common lite, es2 = OpenGL ES 2.x)
1837 - if [ "$CFG_OPENGL" = "auto" ] || [ "$CFG_OPENGL" = "yes" ]; then
1838 - if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
1839
1840 diff --git a/x11-libs/qt-script/qt-script-4.8.9999.ebuild b/x11-libs/qt-script/qt-script-4.8.9999.ebuild
1841 index 24d6b3c..0c84dda 100644
1842 --- a/x11-libs/qt-script/qt-script-4.8.9999.ebuild
1843 +++ b/x11-libs/qt-script/qt-script-4.8.9999.ebuild
1844 @@ -2,50 +2,59 @@
1845 # Distributed under the terms of the GNU General Public License v2
1846 # $Header: $
1847
1848 -EAPI="4"
1849 -inherit qt4-build-edge
1850 +EAPI=4
1851 +
1852 +inherit qt4-build
1853
1854 DESCRIPTION="The ECMAScript module for the Qt toolkit"
1855 SLOT="4"
1856 -if [[ ${PV} != 4*9999 ]]; then
1857 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
1858 -else
1859 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
1860 KEYWORDS=""
1861 +else
1862 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
1863 fi
1864 IUSE="iconv +jit"
1865
1866 -DEPEND="~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=]"
1867 +DEPEND="
1868 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=]
1869 +"
1870 RDEPEND="${DEPEND}"
1871
1872 pkg_setup() {
1873 - QT4_TARGET_DIRECTORIES="src/script/"
1874 -
1875 - if [[ ${PV} != 4*9999 ]]; then
1876 - QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
1877 - include/Qt/
1878 - include/QtCore/
1879 - include/QtScript/
1880 - src/3rdparty/javascriptcore/
1881 - src/corelib/"
1882 - fi
1883 -
1884 - qt4-build-edge_pkg_setup
1885 + QT4_TARGET_DIRECTORIES="
1886 + src/script"
1887 +
1888 + QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
1889 + include/Qt
1890 + include/QtCore
1891 + include/QtScript
1892 + src/3rdparty/javascriptcore
1893 + src/corelib"
1894 +
1895 + QCONFIG_ADD="script"
1896 + QCONFIG_DEFINE="QT_SCRIPT"
1897 +
1898 + qt4-build_pkg_setup
1899 }
1900
1901 src_configure() {
1902 - myconf="${myconf} $(qt_use iconv) $(qt_use jit javascript-jit) -no-xkb
1903 - -no-fontconfig -no-xrender -no-xrandr -no-xfixes -no-xcursor -no-xinerama
1904 + myconf+="
1905 + $(qt_use iconv)
1906 + $(qt_use jit javascript-jit)
1907 + -no-xkb -no-fontconfig -no-xrender -no-xrandr -no-xfixes -no-xcursor -no-xinerama
1908 -no-xshape -no-sm -no-opengl -no-nas-sound -no-dbus -no-cups -no-nis -no-gif
1909 -no-libpng -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
1910 -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff
1911 -no-accessibility -no-fontconfig -no-glib -no-opengl -no-svg
1912 -no-gtkstyle"
1913 - qt4-build-edge_src_configure
1914 +
1915 + qt4-build_src_configure
1916 }
1917
1918 src_install() {
1919 qt4-build_src_install
1920 - #install private headers
1921 +
1922 + # install private headers
1923 insinto "${QTHEADERDIR#${EPREFIX}}"/QtScript/private
1924 - find "${S}"/src/script -type f -name "*_p.h" -exec doins {} \;
1925 + find "${S}"/src/script -type f -name "*_p.h" -exec doins {} +
1926 }
1927
1928 diff --git a/x11-libs/qt-sql/files/qt-4.6-master-nolibx11.patch b/x11-libs/qt-sql/files/qt-4.6-master-nolibx11.patch
1929 deleted file mode 100644
1930 index 14e5fce..0000000
1931 --- a/x11-libs/qt-sql/files/qt-4.6-master-nolibx11.patch
1932 +++ /dev/null
1933 @@ -1,20 +0,0 @@
1934 -Index: qt-everywhere-opensource-src-4.6.9999/configure
1935 -===================================================================
1936 ---- qt-everywhere-opensource-src-4.6.9999.orig/configure
1937 -+++ qt-everywhere-opensource-src-4.6.9999/configure
1938 -@@ -5069,15 +5069,6 @@ if [ "$PLATFORM_X11" = "yes" ]; then
1939 - X11TESTS_FLAGS="$X11TESTS_FLAGS -fpermissive"
1940 - fi
1941 -
1942 -- # Check we actually have X11 :-)
1943 -- "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xlib "XLib" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
1944 -- if [ $? != "0" ]; then
1945 -- echo "Basic XLib functionality test failed!"
1946 -- echo " You might need to modify the include and library search paths by editing"
1947 -- echo " QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ${XQMAKESPEC}."
1948 -- exit 1
1949 -- fi
1950 --
1951 - # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es1cl = ES 1.x common lite, es2 = OpenGL ES 2.x)
1952 - if [ "$CFG_OPENGL" = "auto" ] || [ "$CFG_OPENGL" = "yes" ]; then
1953 - if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
1954
1955 diff --git a/x11-libs/qt-sql/qt-sql-4.8.9999.ebuild b/x11-libs/qt-sql/qt-sql-4.8.9999.ebuild
1956 index 6f5dca6..d783419 100644
1957 --- a/x11-libs/qt-sql/qt-sql-4.8.9999.ebuild
1958 +++ b/x11-libs/qt-sql/qt-sql-4.8.9999.ebuild
1959 @@ -1,55 +1,50 @@
1960 -# Copyright 1999-2010 Gentoo Foundation
1961 +# Copyright 1999-2012 Gentoo Foundation
1962 # Distributed under the terms of the GNU General Public License v2
1963 # $Header: $
1964
1965 -EAPI="4"
1966 -if [[ ${PV} == 4*9999 ]]; then
1967 - QT_ECLASS="-edge"
1968 -fi
1969 +EAPI=4
1970
1971 -inherit qt4-build${QT_ECLASS}
1972 +inherit qt4-build
1973
1974 DESCRIPTION="The SQL module for the Qt toolkit"
1975 SLOT="4"
1976 -if [[ ${PV} != 4*9999 ]]; then
1977 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
1978 -else
1979 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
1980 KEYWORDS=""
1981 +else
1982 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
1983 fi
1984 IUSE="firebird freetds mysql odbc postgres qt3support +sqlite"
1985
1986 -DEPEND="~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=,qt3support=]
1987 +REQUIRED_USE="
1988 + || ( firebird freetds mysql odbc postgres sqlite )
1989 +"
1990 +
1991 +DEPEND="
1992 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=]
1993 firebird? ( dev-db/firebird )
1994 freetds? ( dev-db/freetds )
1995 mysql? ( virtual/mysql )
1996 odbc? ( || ( dev-db/unixODBC dev-db/libiodbc ) )
1997 postgres? ( dev-db/postgresql-base )
1998 - sqlite? ( dev-db/sqlite:3 )"
1999 + sqlite? ( dev-db/sqlite:3 )
2000 +"
2001 RDEPEND="${DEPEND}"
2002
2003 pkg_setup() {
2004 QT4_TARGET_DIRECTORIES="
2005 - src/sql
2006 - src/plugins/sqldrivers"
2007 + src/sql
2008 + src/plugins/sqldrivers"
2009
2010 - if [[ ${PV} != 4*9999 ]]; then
2011 - QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
2012 - include/Qt/
2013 - include/QtCore/
2014 - include/QtSql/
2015 + QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
2016 + include/Qt
2017 + include/QtCore
2018 + include/QtSql
2019 src/src.pro
2020 - src/corelib/
2021 + src/corelib
2022 src/plugins
2023 src/tools/tools.pro"
2024 - fi
2025 -
2026 - if ! (use firebird || use freetds || use mysql || use odbc || use postgres || use sqlite ); then
2027 - ewarn "You need to enable at least one SQL driver. Enable at least"
2028 - ewarn "one of these USE flags: \"firebird freetds mysql odbc postgres sqlite \""
2029 - die "Enable at least one SQL driver."
2030 - fi
2031
2032 - qt4-build${QT_ECLASS}_pkg_setup
2033 + qt4-build_pkg_setup
2034 }
2035
2036 src_configure() {
2037 @@ -73,5 +68,5 @@ src_configure() {
2038 -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
2039 -no-glib"
2040
2041 - qt4-build${QT_ECLASS}_src_configure
2042 + qt4-build_src_configure
2043 }
2044
2045 diff --git a/x11-libs/qt-svg/qt-svg-4.8.9999.ebuild b/x11-libs/qt-svg/qt-svg-4.8.9999.ebuild
2046 index 1c363da..478df04 100644
2047 --- a/x11-libs/qt-svg/qt-svg-4.8.9999.ebuild
2048 +++ b/x11-libs/qt-svg/qt-svg-4.8.9999.ebuild
2049 @@ -1,20 +1,25 @@
2050 # Copyright 1999-2012 Gentoo Foundation
2051 # Distributed under the terms of the GNU General Public License v2
2052 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-svg/qt-svg-4.7.4.ebuild,v 1.1 2011/09/08 09:22:11 wired Exp $
2053 +# $Header: $
2054
2055 -EAPI="4"
2056 -inherit qt4-build-edge
2057 +EAPI=4
2058 +
2059 +inherit qt4-build
2060
2061 DESCRIPTION="The SVG module for the Qt toolkit"
2062 SLOT="4"
2063 -if [[ ${PV} != 4*9999 ]]; then
2064 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
2065 -else
2066 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
2067 KEYWORDS=""
2068 +else
2069 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
2070 fi
2071 -IUSE="+accessibility iconv"
2072 +IUSE="+accessibility"
2073
2074 -DEPEND="~x11-libs/qt-gui-${PV}[accessibility=,aqua=,c++0x=,debug=,qpa=]"
2075 +DEPEND="
2076 + sys-libs/zlib
2077 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=]
2078 + ~x11-libs/qt-gui-${PV}[accessibility=,aqua=,c++0x=,debug=,qpa=]
2079 +"
2080 RDEPEND="${DEPEND}"
2081
2082 pkg_setup() {
2083 @@ -22,35 +27,35 @@ pkg_setup() {
2084 src/svg
2085 src/plugins/imageformats/svg
2086 src/plugins/iconengines/svgiconengine"
2087 - if [[ ${PV} != 4*9999 ]]; then
2088 - QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
2089 - include/QtSvg/
2090 - include/Qt/
2091 - include/QtGui/
2092 - include/QtCore/
2093 - include/QtXml/
2094 - src/corelib/
2095 - src/gui/
2096 - src/plugins/
2097 - src/xml
2098 - src/3rdparty"
2099 - fi
2100 +
2101 + QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
2102 + include/QtSvg
2103 + include/Qt
2104 + include/QtGui
2105 + include/QtCore
2106 + include/QtXml
2107 + src/corelib
2108 + src/gui
2109 + src/plugins
2110 + src/xml
2111 + src/3rdparty"
2112
2113 QCONFIG_ADD="svg"
2114 QCONFIG_DEFINE="QT_SVG"
2115
2116 - qt4-build-edge_pkg_setup
2117 + qt4-build_pkg_setup
2118 }
2119
2120 src_configure() {
2121 - myconf="${myconf} -svg
2122 + myconf+="
2123 + -svg
2124 $(qt_use accessibility)
2125 - $(qt_use iconv)
2126 - -no-xkb -no-xrender
2127 + -no-xkb -no-xrender
2128 -no-xrandr -no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm
2129 -no-opengl -no-nas-sound -no-dbus -no-cups -no-nis -no-gif -no-libpng
2130 -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
2131 -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff
2132 -no-fontconfig -no-glib -no-gtkstyle"
2133 - qt4-build-edge_src_configure
2134 +
2135 + qt4-build_src_configure
2136 }
2137
2138 diff --git a/x11-libs/qt-test/files/qt-4.6-master-nolibx11.patch b/x11-libs/qt-test/files/qt-4.6-master-nolibx11.patch
2139 deleted file mode 100644
2140 index 14e5fce..0000000
2141 --- a/x11-libs/qt-test/files/qt-4.6-master-nolibx11.patch
2142 +++ /dev/null
2143 @@ -1,20 +0,0 @@
2144 -Index: qt-everywhere-opensource-src-4.6.9999/configure
2145 -===================================================================
2146 ---- qt-everywhere-opensource-src-4.6.9999.orig/configure
2147 -+++ qt-everywhere-opensource-src-4.6.9999/configure
2148 -@@ -5069,15 +5069,6 @@ if [ "$PLATFORM_X11" = "yes" ]; then
2149 - X11TESTS_FLAGS="$X11TESTS_FLAGS -fpermissive"
2150 - fi
2151 -
2152 -- # Check we actually have X11 :-)
2153 -- "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xlib "XLib" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
2154 -- if [ $? != "0" ]; then
2155 -- echo "Basic XLib functionality test failed!"
2156 -- echo " You might need to modify the include and library search paths by editing"
2157 -- echo " QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ${XQMAKESPEC}."
2158 -- exit 1
2159 -- fi
2160 --
2161 - # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es1cl = ES 1.x common lite, es2 = OpenGL ES 2.x)
2162 - if [ "$CFG_OPENGL" = "auto" ] || [ "$CFG_OPENGL" = "yes" ]; then
2163 - if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
2164
2165 diff --git a/x11-libs/qt-test/qt-test-4.8.9999.ebuild b/x11-libs/qt-test/qt-test-4.8.9999.ebuild
2166 index 904ef58..3a781f8 100644
2167 --- a/x11-libs/qt-test/qt-test-4.8.9999.ebuild
2168 +++ b/x11-libs/qt-test/qt-test-4.8.9999.ebuild
2169 @@ -1,39 +1,45 @@
2170 -# Copyright 1999-2011 Gentoo Foundation
2171 +# Copyright 1999-2012 Gentoo Foundation
2172 # Distributed under the terms of the GNU General Public License v2
2173 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-test/qt-test-4.7.4.ebuild,v 1.1 2011/09/08 09:22:28 wired Exp $
2174 +# $Header: $
2175
2176 -EAPI="4"
2177 -inherit qt4-build-edge
2178 +EAPI=4
2179 +
2180 +inherit qt4-build
2181
2182 DESCRIPTION="The testing framework module for the Qt toolkit"
2183 SLOT="4"
2184 -if [[ ${PV} != 4*9999 ]]; then
2185 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
2186 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
2187 KEYWORDS=""
2188 +else
2189 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
2190 fi
2191 -IUSE="iconv"
2192 +IUSE=""
2193
2194 -DEPEND="~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=]"
2195 +DEPEND="
2196 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=]
2197 +"
2198 RDEPEND="${DEPEND}"
2199
2200 pkg_setup() {
2201 - QT4_TARGET_DIRECTORIES="src/testlib"
2202 - if [[ ${PV} != 4*9999 ]]; then
2203 - QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
2204 - include/QtTest/
2205 - include/QtCore/
2206 - src/corelib/"
2207 - fi
2208 -
2209 - qt4-build-edge_pkg_setup
2210 + QT4_TARGET_DIRECTORIES="
2211 + src/testlib"
2212 +
2213 + QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
2214 + include/QtTest
2215 + include/QtCore
2216 + src/corelib"
2217 +
2218 + qt4-build_pkg_setup
2219 }
2220
2221 src_configure() {
2222 - myconf="${myconf} $(qt_use iconv) -no-xkb -no-fontconfig -no-xrender
2223 - -no-xrandr -no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm
2224 - -no-opengl -no-nas-sound -no-dbus -no-cups -no-nis -no-gif -no-libpng
2225 + myconf+="
2226 + -no-xkb -no-fontconfig -no-xrender -no-xrandr -no-xfixes -no-xcursor
2227 + -no-xinerama -no-xshape -no-sm -no-opengl
2228 + -no-nas-sound -no-dbus -no-cups -no-nis -no-gif -no-libpng
2229 -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
2230 -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff
2231 - -no-accessibility -no-fontconfig -no-glib -no-opengl -no-svg"
2232 - qt4-build-edge_src_configure
2233 + -no-accessibility -no-fontconfig -no-glib -no-svg"
2234 +
2235 + qt4-build_src_configure
2236 }
2237
2238 diff --git a/x11-libs/qt-webkit/files/qt-webkit-4.8.0-c++0x-fix.patch b/x11-libs/qt-webkit/files/qt-webkit-4.8.0-c++0x-fix.patch
2239 new file mode 100644
2240 index 0000000..8213da4
2241 --- /dev/null
2242 +++ b/x11-libs/qt-webkit/files/qt-webkit-4.8.0-c++0x-fix.patch
2243 @@ -0,0 +1,101 @@
2244 +All this is needed for qt-webkit to build if c++0x use is enabled
2245 +while using gcc-4.6 ...
2246 +
2247 +you also need to append -fpermissive to the compiler flags
2248 +--- src/3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h
2249 ++++ src/3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h
2250 +@@ -23,6 +23,7 @@
2251 + #define TypeTraits_h
2252 +
2253 + #include "Platform.h"
2254 ++#include <tr1/memory>
2255 +
2256 + #if (defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || (defined(_MSC_VER) && (_MSC_VER >= 1600))
2257 + #include <type_traits>
2258 +--- src/3rdparty/webkit/Source/JavaScriptCore/wtf/TypeTraits.h
2259 ++++ src/3rdparty/webkit/Source/JavaScriptCore/wtf/TypeTraits.h
2260 +@@ -23,6 +23,7 @@
2261 + #define TypeTraits_h
2262 +
2263 + #include "Platform.h"
2264 ++#include <tr1/memory>
2265 +
2266 + #if (defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || (defined(_MSC_VER) && (_MSC_VER >= 1600))
2267 + #include <type_traits>
2268 +--- src/3rdparty/webkit/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
2269 ++++ src/3rdparty/webkit/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
2270 +@@ -1106,7 +1106,7 @@ RegisterID* BytecodeGenerator::emitLoad(RegisterID* dst, double number)
2271 + // FIXME: Our hash tables won't hold infinity, so we make a new JSValue each time.
2272 + // Later we can do the extra work to handle that like the other cases. They also don't
2273 + // work correctly with NaN as a key.
2274 +- if (isnan(number) || number == HashTraits<double>::emptyValue() || HashTraits<double>::isDeletedValue(number))
2275 ++ if (std::isnan(number) || number == HashTraits<double>::emptyValue() || HashTraits<double>::isDeletedValue(number))
2276 + return emitLoad(dst, jsNumber(number));
2277 + JSValue& valueInMap = m_numberMap.add(number, JSValue()).first->second;
2278 + if (!valueInMap)
2279 +--- src/3rdparty/webkit/Source/JavaScriptCore/wtf/MathExtras.h
2280 ++++ src/3rdparty/webkit/Source/JavaScriptCore/wtf/MathExtras.h
2281 +@@ -137,8 +137,10 @@ inline double trunc(double num) { return num > 0 ? floor(num) : ceil(num); }
2282 + inline long long abs(long long num) { return _abs64(num); }
2283 + #endif
2284 +
2285 ++#ifndef __GXX_EXPERIMENTAL_CXX0X__
2286 + inline bool isinf(double num) { return !_finite(num) && !_isnan(num); }
2287 + inline bool isnan(double num) { return !!_isnan(num); }
2288 ++#endif
2289 + inline bool signbit(double num) { return _copysign(1.0, num) < 0; }
2290 +
2291 + inline double nextafter(double x, double y) { return _nextafter(x, y); }
2292 +@@ -240,8 +242,10 @@ inline int clampToInteger(unsigned value)
2293 +
2294 + #if !COMPILER(MSVC) && !(COMPILER(RVCT) && PLATFORM(BREWMP)) && !OS(SOLARIS) && !OS(SYMBIAN)
2295 + using std::isfinite;
2296 ++#ifndef __GXX_EXPERIMENTAL_CXX0X__
2297 + using std::isinf;
2298 + using std::isnan;
2299 ++#endif
2300 + using std::signbit;
2301 + #endif
2302 +
2303 +--- src/3rdparty/webkit/Source/WebCore/bindings/js/JSGeolocationCustom.cpp
2304 ++++ src/3rdparty/webkit/Source/WebCore/bindings/js/JSGeolocationCustom.cpp
2305 +@@ -80,7 +80,7 @@ static PassRefPtr<PositionOptions> createPositionOptions(ExecState* exec, JSValu
2306 + if (exec->hadException())
2307 + return 0;
2308 + // If the value is positive infinity, there's nothing to do.
2309 +- if (!(isinf(timeoutNumber) && (timeoutNumber > 0))) {
2310 ++ if (!(std::isinf(timeoutNumber) && (timeoutNumber > 0))) {
2311 + // Wrap to int32 and force non-negative to match behavior of window.setTimeout.
2312 + options->setTimeout(max(0, timeoutValue.toInt32(exec)));
2313 + if (exec->hadException())
2314 +@@ -95,7 +95,7 @@ static PassRefPtr<PositionOptions> createPositionOptions(ExecState* exec, JSValu
2315 + double maximumAgeNumber = maximumAgeValue.toNumber(exec);
2316 + if (exec->hadException())
2317 + return 0;
2318 +- if (isinf(maximumAgeNumber) && (maximumAgeNumber > 0)) {
2319 ++ if (std::isinf(maximumAgeNumber) && (maximumAgeNumber > 0)) {
2320 + // If the value is positive infinity, clear maximumAge.
2321 + options->clearMaximumAge();
2322 + } else {
2323 +--- src/3rdparty/webkit/Source/WebCore/html/HTMLInputElement.cpp
2324 ++++ src/3rdparty/webkit/Source/WebCore/html/HTMLInputElement.cpp
2325 +@@ -332,7 +332,7 @@ void HTMLInputElement::applyStep(double count, ExceptionCode& ec)
2326 + return;
2327 + }
2328 + double newValue = current + step * count;
2329 +- if (isinf(newValue)) {
2330 ++ if (std::isinf(newValue)) {
2331 + ec = INVALID_STATE_ERR;
2332 + return;
2333 + }
2334 +--- src/3rdparty/webkit/Source/WebCore/html/NumberInputType.cpp
2335 ++++ src/3rdparty/webkit/Source/WebCore/html/NumberInputType.cpp
2336 +@@ -132,7 +132,7 @@ bool NumberInputType::stepMismatch(const String& value, double step) const
2337 + if (!parseToDoubleForNumberType(value, &doubleValue))
2338 + return false;
2339 + doubleValue = fabs(doubleValue - stepBase());
2340 +- if (isinf(doubleValue))
2341 ++ if (std::isinf(doubleValue))
2342 + return false;
2343 + // double's fractional part size is DBL_MAN_DIG-bit. If the current value
2344 + // is greater than step*2^DBL_MANT_DIG, the following computation for
2345
2346 diff --git a/x11-libs/qt-webkit/qt-webkit-4.8.9999.ebuild b/x11-libs/qt-webkit/qt-webkit-4.8.9999.ebuild
2347 index bfeebbe..5201820 100644
2348 --- a/x11-libs/qt-webkit/qt-webkit-4.8.9999.ebuild
2349 +++ b/x11-libs/qt-webkit/qt-webkit-4.8.9999.ebuild
2350 @@ -2,29 +2,27 @@
2351 # Distributed under the terms of the GNU General Public License v2
2352 # $Header: $
2353
2354 -EAPI="4"
2355 +EAPI=4
2356
2357 -if [[ ${PV} == 4*9999 ]]; then
2358 - QT_ECLASS="-edge"
2359 -fi
2360 -inherit qt4-build${QT_ECLASS} flag-o-matic
2361 +inherit qt4-build flag-o-matic
2362
2363 DESCRIPTION="The WebKit module for the Qt toolkit"
2364 SLOT="4"
2365 -if [[ ${PV} != 4*9999 ]]; then
2366 - KEYWORDS="~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
2367 -else
2368 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
2369 KEYWORDS=""
2370 +else
2371 + KEYWORDS="~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
2372 fi
2373 IUSE="+gstreamer +jit"
2374
2375 DEPEND="
2376 dev-db/sqlite:3
2377 dev-libs/icu
2378 + x11-libs/libX11
2379 x11-libs/libXrender
2380 - ~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=,ssl]
2381 - ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,qpa=,debug=]
2382 - ~x11-libs/qt-xmlpatterns-${PV}[aqua=,c++0x=,qpa=,debug=]
2383 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,ssl,qpa=]
2384 + ~x11-libs/qt-gui-${PV}[aqua=,c++0x=,debug=,qpa=]
2385 + ~x11-libs/qt-xmlpatterns-${PV}[aqua=,c++0x=,debug=,qpa=]
2386 gstreamer? (
2387 dev-libs/glib:2
2388 media-libs/gstreamer:0.10
2389 @@ -32,36 +30,44 @@ DEPEND="
2390 )"
2391 RDEPEND="${DEPEND}"
2392
2393 +PATCHES=(
2394 + "${FILESDIR}/${PN}-4.8.0-c++0x-fix.patch"
2395 +)
2396 +
2397 pkg_setup() {
2398 QT4_TARGET_DIRECTORIES="
2399 src/3rdparty/webkit/Source/JavaScriptCore
2400 src/3rdparty/webkit/Source/WebCore
2401 src/3rdparty/webkit/Source/WebKit/qt
2402 tools/designer/src/plugins/qwebview"
2403 - if [[ ${PV} != 4*9999 ]]; then
2404 - QT4_EXTRACT_DIRECTORIES="
2405 - include/
2406 - src/
2407 - tools/"
2408 - fi
2409 +
2410 + QT4_EXTRACT_DIRECTORIES="
2411 + include
2412 + src
2413 + tools"
2414
2415 QCONFIG_ADD="webkit"
2416 QCONFIG_DEFINE="QT_WEBKIT"
2417
2418 - qt4-build${QT_ECLASS}_pkg_setup
2419 + qt4-build_pkg_setup
2420 }
2421
2422 src_prepare() {
2423 use c++0x && append-cxxflags -fpermissive
2424
2425 + # Fix version number in generated pkgconfig file, bug 406443
2426 + sed -i -e 's/^isEmpty(QT_BUILD_TREE)://' \
2427 + src/3rdparty/webkit/Source/WebKit/qt/QtWebKit.pro || die
2428 +
2429 # Always enable icu to avoid build failure, bug 407315
2430 sed -i -e '/CONFIG\s*+=\s*text_breaking_with_icu/ s:^#\s*::' \
2431 src/3rdparty/webkit/Source/JavaScriptCore/JavaScriptCore.pri || die
2432
2433 + # Remove -Werror from CXXFLAGS
2434 sed -i -e '/QMAKE_CXXFLAGS\s*+=/ s:-Werror::g' \
2435 src/3rdparty/webkit/Source/WebKit.pri || die
2436
2437 - qt4-build${QT_ECLASS}_src_prepare
2438 + qt4-build_src_prepare
2439 }
2440
2441 src_configure() {
2442 @@ -69,7 +75,7 @@ src_configure() {
2443 -webkit
2444 -icu -system-sqlite
2445 $(qt_use jit javascript-jit)
2446 - $(use gstreamer || echo -DENABLE_VIDEO=0)
2447 - "
2448 - qt4-build${QT_ECLASS}_src_configure
2449 + $(use gstreamer || echo -DENABLE_VIDEO=0)"
2450 +
2451 + qt4-build_src_configure
2452 }
2453
2454 diff --git a/x11-libs/qt-xmlpatterns/files/qt-4.6-master-nolibx11.patch b/x11-libs/qt-xmlpatterns/files/qt-4.6-master-nolibx11.patch
2455 deleted file mode 100644
2456 index 14e5fce..0000000
2457 --- a/x11-libs/qt-xmlpatterns/files/qt-4.6-master-nolibx11.patch
2458 +++ /dev/null
2459 @@ -1,20 +0,0 @@
2460 -Index: qt-everywhere-opensource-src-4.6.9999/configure
2461 -===================================================================
2462 ---- qt-everywhere-opensource-src-4.6.9999.orig/configure
2463 -+++ qt-everywhere-opensource-src-4.6.9999/configure
2464 -@@ -5069,15 +5069,6 @@ if [ "$PLATFORM_X11" = "yes" ]; then
2465 - X11TESTS_FLAGS="$X11TESTS_FLAGS -fpermissive"
2466 - fi
2467 -
2468 -- # Check we actually have X11 :-)
2469 -- "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xlib "XLib" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
2470 -- if [ $? != "0" ]; then
2471 -- echo "Basic XLib functionality test failed!"
2472 -- echo " You might need to modify the include and library search paths by editing"
2473 -- echo " QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ${XQMAKESPEC}."
2474 -- exit 1
2475 -- fi
2476 --
2477 - # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es1cl = ES 1.x common lite, es2 = OpenGL ES 2.x)
2478 - if [ "$CFG_OPENGL" = "auto" ] || [ "$CFG_OPENGL" = "yes" ]; then
2479 - if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
2480
2481 diff --git a/x11-libs/qt-xmlpatterns/qt-xmlpatterns-4.8.9999.ebuild b/x11-libs/qt-xmlpatterns/qt-xmlpatterns-4.8.9999.ebuild
2482 index c280792..72da16e 100644
2483 --- a/x11-libs/qt-xmlpatterns/qt-xmlpatterns-4.8.9999.ebuild
2484 +++ b/x11-libs/qt-xmlpatterns/qt-xmlpatterns-4.8.9999.ebuild
2485 @@ -1,19 +1,23 @@
2486 -# Copyright 1999-2011 Gentoo Foundation
2487 +# Copyright 1999-2012 Gentoo Foundation
2488 # Distributed under the terms of the GNU General Public License v2
2489 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-xmlpatterns/qt-xmlpatterns-4.7.4.ebuild,v 1.1 2011/09/08 09:23:04 wired Exp $
2490 +# $Header: $
2491
2492 -EAPI="4"
2493 -inherit qt4-build-edge
2494 +EAPI=4
2495
2496 -DESCRIPTION="The patternist module for the Qt toolkit"
2497 +inherit qt4-build
2498 +
2499 +DESCRIPTION="The XmlPatterns module for the Qt toolkit"
2500 SLOT="4"
2501 -if [[ ${PV} != 4*9999 ]]; then
2502 - KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
2503 +if [[ ${QT4_BUILD_TYPE} == live ]]; then
2504 KEYWORDS=""
2505 +else
2506 + KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
2507 fi
2508 IUSE=""
2509
2510 -DEPEND="~x11-libs/qt-core-${PV}[aqua=,c++0x=,qpa=,debug=,exceptions]"
2511 +DEPEND="
2512 + ~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,exceptions,qpa=]
2513 +"
2514 RDEPEND="${DEPEND}"
2515
2516 pkg_setup() {
2517 @@ -22,24 +26,23 @@ pkg_setup() {
2518 tools/xmlpatterns
2519 tools/xmlpatternsvalidator"
2520
2521 - if [[ ${PV} != 4*9999 ]]; then
2522 - QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
2523 - include/QtCore
2524 - include/QtNetwork
2525 - include/QtXml
2526 - include/QtXmlPatterns
2527 - src/network/
2528 - src/xml/
2529 - src/corelib/"
2530 - fi
2531 + QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES}
2532 + include/QtCore
2533 + include/QtNetwork
2534 + include/QtXml
2535 + include/QtXmlPatterns
2536 + src/network
2537 + src/xml
2538 + src/corelib"
2539
2540 QCONFIG_ADD="xmlpatterns"
2541 QCONFIG_DEFINE="QT_XMLPATTERNS"
2542
2543 - qt4-build-edge_pkg_setup
2544 + qt4-build_pkg_setup
2545 }
2546
2547 src_configure() {
2548 - myconf="${myconf} -xmlpatterns"
2549 - qt4-build-edge_src_configure
2550 + myconf+=" -xmlpatterns"
2551 +
2552 + qt4-build_src_configure
2553 }