aboutsummaryrefslogtreecommitdiff
path: root/dev-qt
diff options
context:
space:
mode:
authorSteve Arnold <stephen.arnold42@gmail.com>2015-07-19 18:44:53 -0700
committerSteve Arnold <stephen.arnold42@gmail.com>2015-07-19 18:44:53 -0700
commit665269b277dd84dacecaa9005a1884d481b5b99e (patch)
treef7b72745b28958c4bba454e607e085acedf4c1d7 /dev-qt
parenthopefully speeding up webkit-gtk scan/build with a switch to ninja (diff)
downloadarm-665269b277dd84dacecaa9005a1884d481b5b99e.tar.gz
arm-665269b277dd84dacecaa9005a1884d481b5b99e.tar.bz2
arm-665269b277dd84dacecaa9005a1884d481b5b99e.zip
updated qtwebkit config to properly enable gles2 or opengl
Diffstat (limited to 'dev-qt')
-rw-r--r--dev-qt/qtwebkit/Manifest2
-rw-r--r--dev-qt/qtwebkit/files/qtwebkit-5.4.2-system-leveldb.patch25
-rw-r--r--dev-qt/qtwebkit/qtwebkit-5.4.2.ebuild (renamed from dev-qt/qtwebkit/qtwebkit-5.4.1.ebuild)53
3 files changed, 61 insertions, 19 deletions
diff --git a/dev-qt/qtwebkit/Manifest b/dev-qt/qtwebkit/Manifest
index 2affd1f..d2fdd9b 100644
--- a/dev-qt/qtwebkit/Manifest
+++ b/dev-qt/qtwebkit/Manifest
@@ -1 +1 @@
-DIST qtwebkit-opensource-src-5.4.1.tar.xz 33457544 SHA256 6607211ef8a913dc778617bf4ba0970e34cc71e1da3abb477eabe0035e7119bf SHA512 592a3ebccb4578eb0183d1ecd5aae69c7f03482aa09594fc06f58e2c2b82b5e916e1e951012fc1c8e0cea803c4d3e6db64fad41bbca70eb18b8d9d3ff2eab828 WHIRLPOOL 8a42720dd53ce583d48a3b7db1268c092dce11dfbbcf7524f50350145569c2b24b62b82a4715229294321ae7ce719ec56bb448eb7a7be9b2f7792ad1d8d9d7d0
+DIST qtwebkit-opensource-src-5.4.2.tar.xz 33460988 SHA256 3e4243e14001f47b8842f72287728b731f8b62b480bd72a1b0e2a9cfe25dce6d SHA512 edb0a8ad63f70d85324af08f46070cc386fd27ff858f590a592f71583cddade897b305527ec3bb8d7a4d491c9d141af04d783ea101e6c40f683df16297652ff3 WHIRLPOOL 49490e7633e8e95abf4d3f0f17b173e40b7df0ce658d56f87dfd4bc73ab9700823e7ea7d5e9c61edb5a06552df5ead701b059d14a8074afa4bad22f77b622fea
diff --git a/dev-qt/qtwebkit/files/qtwebkit-5.4.2-system-leveldb.patch b/dev-qt/qtwebkit/files/qtwebkit-5.4.2-system-leveldb.patch
new file mode 100644
index 0000000..0a476c6
--- /dev/null
+++ b/dev-qt/qtwebkit/files/qtwebkit-5.4.2-system-leveldb.patch
@@ -0,0 +1,25 @@
+Correct header location so system dev-libs/leveldb can be detected.
+
+--- Tools/qmake/config.tests/leveldb/leveldb.cpp
++++ Tools/qmake/config.tests/leveldb/leveldb.cpp
+@@ -19,7 +19,7 @@
+
+ #include <leveldb/db.h>
+ #include <leveldb/env.h>
+-#include <helpers/memenv/memenv.h>
++#include <leveldb/helpers/memenv.h>
+
+ int main(int, char**)
+ {
+
+--- Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
++++ Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
+@@ -38,7 +38,7 @@
+ #include <leveldb/comparator.h>
+ #include <leveldb/db.h>
+ #include <leveldb/env.h>
+-#include <helpers/memenv/memenv.h>
++#include <leveldb/helpers/memenv.h>
+ #include <leveldb/slice.h>
+ #include <string>
+ #include <wtf/PassOwnPtr.h>
diff --git a/dev-qt/qtwebkit/qtwebkit-5.4.1.ebuild b/dev-qt/qtwebkit/qtwebkit-5.4.2.ebuild
index 9c5708b..4acd339 100644
--- a/dev-qt/qtwebkit/qtwebkit-5.4.1.ebuild
+++ b/dev-qt/qtwebkit/qtwebkit-5.4.2.ebuild
@@ -3,37 +3,35 @@
# $Header: $
EAPI=5
-
PYTHON_COMPAT=( python2_7 )
-
inherit python-any-r1 qt5-build
DESCRIPTION="WebKit rendering library for the Qt5 framework"
-if [[ ${QT5_BUILD_TYPE} == live ]]; then
- KEYWORDS="~ppc64"
-else
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
fi
# TODO: qttestlib, geolocation, orientation/sensors
-IUSE="gstreamer gstreamer010 multimedia opengl printsupport qml udev webp"
+IUSE="gles2 gstreamer gstreamer010 gtkstyle multimedia opengl
+ printsupport qml udev webp"
REQUIRED_USE="?? ( gstreamer gstreamer010 multimedia )"
RDEPEND="
dev-db/sqlite:3
dev-libs/icu:=
+ >=dev-libs/leveldb-1.18-r1
dev-libs/libxml2:2
dev-libs/libxslt
- >=dev-qt/qtcore-${PV}:5[debug=,icu]
- >=dev-qt/qtgui-${PV}:5[debug=]
- >=dev-qt/qtnetwork-${PV}:5[debug=]
- >=dev-qt/qtsql-${PV}:5[debug=]
- >=dev-qt/qtwidgets-${PV}:5[debug=]
+ >=dev-qt/qtcore-${PV}:5[icu]
+ >=dev-qt/qtgui-${PV}:5
+ >=dev-qt/qtnetwork-${PV}:5
+ >=dev-qt/qtsql-${PV}:5
+ >=dev-qt/qtwidgets-${PV}:5
media-libs/fontconfig:1.0
media-libs/libpng:0=
- sys-libs/zlib
+ >=sys-libs/zlib-1.2.5
virtual/jpeg:0
virtual/opengl
x11-libs/libX11
@@ -49,10 +47,10 @@ RDEPEND="
media-libs/gstreamer:0.10
media-libs/gst-plugins-base:0.10
)
- multimedia? ( >=dev-qt/qtmultimedia-${PV}:5[debug=,widgets] )
- opengl? ( >=dev-qt/qtopengl-${PV}:5[debug=] )
- printsupport? ( >=dev-qt/qtprintsupport-${PV}:5[debug=] )
- qml? ( >=dev-qt/qtdeclarative-${PV}:5[debug=] )
+ multimedia? ( >=dev-qt/qtmultimedia-${PV}:5[widgets] )
+ opengl? ( >=dev-qt/qtopengl-${PV}:5 )
+ printsupport? ( >=dev-qt/qtprintsupport-${PV}:5 )
+ qml? ( >=dev-qt/qtdeclarative-${PV}:5 )
udev? ( virtual/udev )
webp? ( media-libs/libwebp:0= )
"
@@ -65,9 +63,19 @@ DEPEND="${RDEPEND}
virtual/rubygems
"
+PATCHES=(
+ "${FILESDIR}/${PN}-5.4.2-system-leveldb.patch"
+)
+
src_prepare() {
- # glib build error (bug #549840)
- epatch "${FILESDIR}"/${P}-Fix-building-with-glib-2.43.patch
+ # ensure bundled library cannot be used
+ rm -r Source/ThirdParty/leveldb || die
+
+ # bug 466216
+ sed -i -e '/CONFIG +=/s/rpath//' \
+ Source/WebKit/qt/declarative/{experimental/experimental,public}.pri \
+ Tools/qmake/mkspecs/features/{force_static_libs_as_shared,unix/default_post}.prf \
+ || die
if use gstreamer010; then
epatch "${FILESDIR}/${PN}-5.3.2-use-gstreamer010.patch"
@@ -92,3 +100,12 @@ src_prepare() {
qt5-build_src_prepare
}
+
+src_configure() {
+ local myconf=(
+ $(qt_use gtkstyle)
+ $(qt_use gles2 opengles2)
+ )
+
+ qt5-build_src_configure
+}