diff options
author | 2015-07-23 20:36:44 +0000 | |
---|---|---|
committer | 2015-07-23 20:36:44 +0000 | |
commit | 7cf09a159b5092920930b5519eb37a2f9ec4035e (patch) | |
tree | 554f31c86eefa0b766fee089b1864ac8fc18dfa7 /dev-qt | |
parent | ppc stable wrt bug #553588 (diff) | |
download | gentoo-2-7cf09a159b5092920930b5519eb37a2f9ec4035e.tar.gz gentoo-2-7cf09a159b5092920930b5519eb37a2f9ec4035e.tar.bz2 gentoo-2-7cf09a159b5092920930b5519eb37a2f9ec4035e.zip |
Import qtwebkit23-2.3.4 from qt overlay as qtwebkit-4.10.4 (version of the installed library). See bug 388207.
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!)
Diffstat (limited to 'dev-qt')
-rw-r--r-- | dev-qt/qtwebkit/ChangeLog | 10 | ||||
-rw-r--r-- | dev-qt/qtwebkit/files/4.10.4-use-correct-icu-typedef.patch | 40 | ||||
-rw-r--r-- | dev-qt/qtwebkit/metadata.xml | 4 | ||||
-rw-r--r-- | dev-qt/qtwebkit/qtwebkit-4.10.4.ebuild | 124 |
4 files changed, 175 insertions, 3 deletions
diff --git a/dev-qt/qtwebkit/ChangeLog b/dev-qt/qtwebkit/ChangeLog index fc374388b926..d0c0bc5f042b 100644 --- a/dev-qt/qtwebkit/ChangeLog +++ b/dev-qt/qtwebkit/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-qt/qtwebkit # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtwebkit/ChangeLog,v 1.39 2015/07/15 01:37:03 pesa Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtwebkit/ChangeLog,v 1.40 2015/07/23 20:36:44 pesa Exp $ + +*qtwebkit-4.10.4 (23 Jul 2015) + + 23 Jul 2015; Davide Pesavento <pesa@gentoo.org> + +files/4.10.4-use-correct-icu-typedef.patch, +qtwebkit-4.10.4.ebuild, + metadata.xml: + Import qtwebkit23-2.3.4 from qt overlay as qtwebkit-4.10.4 (version of the + installed library). See bug 388207. 15 Jul 2015; Davide Pesavento <pesa@gentoo.org> qtwebkit-5.4.2.ebuild: Disable rpath wrt bug 466216. diff --git a/dev-qt/qtwebkit/files/4.10.4-use-correct-icu-typedef.patch b/dev-qt/qtwebkit/files/4.10.4-use-correct-icu-typedef.patch new file mode 100644 index 000000000000..3e4816255fed --- /dev/null +++ b/dev-qt/qtwebkit/files/4.10.4-use-correct-icu-typedef.patch @@ -0,0 +1,40 @@ +From 916f00008b602ae1b260106e7fb1274d2282f61f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= <jkt@flaska.net> +Date: Tue, 3 Sep 2013 16:59:35 +0200 +Subject: [PATCH] ICU has defined UChar32 to be an int32_t since 2002 + +This fixes the build failure of qtwebkit23 on my Gentoo machine. +--- + Source/WTF/wtf/unicode/qt4/UnicodeQt4.h | 2 +- + Source/WTF/wtf/unicode/wchar/UnicodeWchar.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Source/WTF/wtf/unicode/qt4/UnicodeQt4.h b/Source/WTF/wtf/unicode/qt4/UnicodeQt4.h +index a2d1ad4..392d2db 100644 +--- a/Source/WTF/wtf/unicode/qt4/UnicodeQt4.h ++++ b/Source/WTF/wtf/unicode/qt4/UnicodeQt4.h +@@ -69,7 +69,7 @@ typedef uint16_t UChar; + #endif + + #if !USE(ICU_UNICODE) +-typedef uint32_t UChar32; ++typedef int32_t UChar32; + #endif + + namespace WTF { +diff --git a/Source/WTF/wtf/unicode/wchar/UnicodeWchar.h b/Source/WTF/wtf/unicode/wchar/UnicodeWchar.h +index 10c2026..db8944e 100644 +--- a/Source/WTF/wtf/unicode/wchar/UnicodeWchar.h ++++ b/Source/WTF/wtf/unicode/wchar/UnicodeWchar.h +@@ -31,7 +31,7 @@ + #include <wtf/unicode/UnicodeMacrosFromICU.h> + + typedef wchar_t UChar; +-typedef uint32_t UChar32; ++typedef int32_t UChar32; + + namespace WTF { + namespace Unicode { +-- +1.7.1 + diff --git a/dev-qt/qtwebkit/metadata.xml b/dev-qt/qtwebkit/metadata.xml index 0ca02a93e967..8640de507d56 100644 --- a/dev-qt/qtwebkit/metadata.xml +++ b/dev-qt/qtwebkit/metadata.xml @@ -5,8 +5,8 @@ <use> <flag name="exceptions">Add support for exceptions - like catching them inside the event loop (recommended by upstream)</flag> - <flag name="gstreamer">Enable HTML5 audio/video support via <pkg>media-libs/gstreamer:1.0</pkg></flag> - <flag name="gstreamer010">Enable HTML5 audio/video support via <pkg>media-libs/gstreamer:0.10</pkg></flag> + <flag name="gstreamer">Enable HTML5 audio/video support via <pkg>media-libs/gstreamer</pkg></flag> + <flag name="gstreamer010">Enable HTML5 audio/video support via legacy <pkg>media-libs/gstreamer:0.10</pkg></flag> <flag name="multimedia">Enable HTML5 audio/video support via <pkg>dev-qt/qtmultimedia</pkg></flag> <flag name="printsupport">Enable printing via <pkg>dev-qt/qtprintsupport</pkg></flag> <flag name="qml">Build QML/QtQuick bindings</flag> diff --git a/dev-qt/qtwebkit/qtwebkit-4.10.4.ebuild b/dev-qt/qtwebkit/qtwebkit-4.10.4.ebuild new file mode 100644 index 000000000000..fd037cda20cb --- /dev/null +++ b/dev-qt/qtwebkit/qtwebkit-4.10.4.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtwebkit/qtwebkit-4.10.4.ebuild,v 1.1 2015/07/23 20:36:44 pesa Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils multilib python-any-r1 qmake-utils toolchain-funcs multilib-minimal + +MY_PV=${PV/4.10/2.3} + +DESCRIPTION="The WebKit module for the Qt toolkit" +HOMEPAGE="https://www.qt.io/ http://trac.webkit.org/wiki/QtWebKit" +SRC_URI="mirror://kde/stable/${PN}-2.3/${MY_PV}/src/${PN}-${MY_PV}.tar.gz" + +LICENSE="|| ( LGPL-2.1 GPL-3 )" +SLOT="4" +KEYWORDS="~amd64" +IUSE="debug +gstreamer" + +RDEPEND=" + >=dev-db/sqlite-3.8.3:3[${MULTILIB_USEDEP}] + dev-libs/libxml2:2[${MULTILIB_USEDEP}] + dev-libs/libxslt[${MULTILIB_USEDEP}] + >=dev-qt/qtcore-4.8.6-r1:4[ssl,${MULTILIB_USEDEP}] + >=dev-qt/qtdeclarative-4.8.6-r1:4[${MULTILIB_USEDEP}] + >=dev-qt/qtgui-4.8.6-r1:4[${MULTILIB_USEDEP}] + >=dev-qt/qtopengl-4.8.6-r1:4[${MULTILIB_USEDEP}] + >=dev-qt/qtscript-4.8.6-r1:4[${MULTILIB_USEDEP}] + >=dev-qt/qtsql-4.8.6-r1:4[sqlite,${MULTILIB_USEDEP}] + >=media-libs/fontconfig-2.10.2-r1[${MULTILIB_USEDEP}] + media-libs/libpng:0=[${MULTILIB_USEDEP}] + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + virtual/jpeg:0[${MULTILIB_USEDEP}] + virtual/libudev:=[${MULTILIB_USEDEP}] + >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] + x11-libs/libX11[${MULTILIB_USEDEP}] + x11-libs/libXrender[${MULTILIB_USEDEP}] + gstreamer? ( + dev-libs/glib:2[${MULTILIB_USEDEP}] + media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] + media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}] + ) +" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + dev-lang/perl + dev-lang/ruby + dev-util/gperf + sys-devel/bison + sys-devel/flex + virtual/perl-Digest-MD5 + virtual/perl-File-Spec + virtual/perl-Getopt-Long +" + +S=${WORKDIR} + +PATCHES=( + "${FILESDIR}/${PV}-use-correct-icu-typedef.patch" +) + +src_prepare() { + # examples cause a sandbox violation (bug 458222) + sed -i -e '/SUBDIRS += examples/d' Source/QtWebKit.pro || die + + # respect CXXFLAGS + sed -i -e '/QMAKE_CXXFLAGS_RELEASE.*=/d' \ + Source/WTF/WTF.pro \ + Source/JavaScriptCore/Target.pri || die + + # apply patches + [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}" + epatch_user +} + +multilib_src_compile() { + local -x \ + QTDIR=${EPREFIX}/usr/$(get_libdir)/qt4 \ + WEBKITOUTPUTDIR=${BUILD_DIR} + + local myconf=( + "${S}"/Tools/Scripts/build-webkit + --qt + # tell the build system where to find the qmake binary for the current ABI + --qmake="$(qt4_get_bindir)"/qmake + --qmakearg="CONFIG+=nostrip DEFINES+=HAVE_QTTESTLIB=0" + --makeargs="${MAKEOPTS}" + --$(usex debug debug release) + --$(usex gstreamer video no-video) + # disable WebKit2 since it requires Qt5 + --no-webkit2 + # prevent automagic dependency on qt-mobility (bug 547350) + --no-geolocation + --no-device-orientation + --no-orientation-events + # copied from eqmake4 + QMAKE_AR="'$(tc-getAR) cqs'" + QMAKE_CC="'$(tc-getCC)'" + QMAKE_CXX="'$(tc-getCXX)'" + QMAKE_LINK="'$(tc-getCXX)'" + QMAKE_LINK_C="'$(tc-getCC)'" + QMAKE_OBJCOPY="'$(tc-getOBJCOPY)'" + QMAKE_RANLIB= + QMAKE_STRIP= + QMAKE_CFLAGS="'${CFLAGS}'" + QMAKE_CFLAGS_RELEASE= + QMAKE_CFLAGS_DEBUG= + QMAKE_CXXFLAGS="'${CXXFLAGS}'" + QMAKE_CXXFLAGS_RELEASE= + QMAKE_CXXFLAGS_DEBUG= + QMAKE_LFLAGS="'${LDFLAGS}'" + QMAKE_LFLAGS_RELEASE= + QMAKE_LFLAGS_DEBUG= + ) + echo "${myconf[@]}" + "${myconf[@]}" || die +} + +multilib_src_install() { + emake INSTALL_ROOT="${D}" install -C $(usex debug Debug Release) + + # move pkgconfig file to the correct location + mv "${ED}"/usr/$(get_libdir){/qt4/pkgconfig,} || die +} |