aboutsummaryrefslogtreecommitdiff
path: root/libraries/qt5-webkit
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2017-01-25 09:19:26 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-01-28 07:38:30 +0700
commitf3d76ab482a596a892debf133b4f820fe68b439b (patch)
tree6b4f38a8154f0bd0d6b38a3a4f009143d571a353 /libraries/qt5-webkit
parent70a21ba328905ace565718dfef91a19927f696e0 (diff)
libraries/qt5-webkit: Updated for version 5.7.1
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'libraries/qt5-webkit')
-rw-r--r--libraries/qt5-webkit/README2
-rw-r--r--libraries/qt5-webkit/platformplugin-install-path-fix.patch13
-rw-r--r--libraries/qt5-webkit/qt5-webkit.SlackBuild41
-rw-r--r--libraries/qt5-webkit/qt5-webkit.info6
4 files changed, 42 insertions, 20 deletions
diff --git a/libraries/qt5-webkit/README b/libraries/qt5-webkit/README
index c0b299d3ef6a3..98bca031ab0ee 100644
--- a/libraries/qt5-webkit/README
+++ b/libraries/qt5-webkit/README
@@ -1,3 +1,5 @@
QtWebkit is a Qt based web browser engine.
This package contains the Qt5 based version.
+
+Optional dependencies: libwebp
diff --git a/libraries/qt5-webkit/platformplugin-install-path-fix.patch b/libraries/qt5-webkit/platformplugin-install-path-fix.patch
new file mode 100644
index 0000000000000..022166de66905
--- /dev/null
+++ b/libraries/qt5-webkit/platformplugin-install-path-fix.patch
@@ -0,0 +1,13 @@
+diff -Naur qt-everywhere-opensource-src-5.0.2.orig/qtwebkit/Source/WebKit/qt/examples/platformplugin/platformplugin.pro qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/qt/examples/platformplugin/platformplugin.pro
+--- qt-everywhere-opensource-src-5.0.2.orig/qtwebkit/Source/WebKit/qt/examples/platformplugin/platformplugin.pro 2013-04-09 00:11:38.000000000 +0000
++++ qt-everywhere-opensource-src-5.0.2/qtwebkit/Source/WebKit/qt/examples/platformplugin/platformplugin.pro 2013-05-31 01:18:29.157175082 +0000
+@@ -20,7 +20,8 @@
+ }
+ }
+
+-DESTDIR = $$[QT_INSTALL_PLUGINS]/webkit
++target.path = $$[QT_INSTALL_PLUGINS]/webkit
++INSTALLS += target
+
+ SOURCES += \
+ WebPlugin.cpp \
diff --git a/libraries/qt5-webkit/qt5-webkit.SlackBuild b/libraries/qt5-webkit/qt5-webkit.SlackBuild
index 2a6e0dc0375e3..618b9b1bdb832 100644
--- a/libraries/qt5-webkit/qt5-webkit.SlackBuild
+++ b/libraries/qt5-webkit/qt5-webkit.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for qt5-webkit
-# Copyright 2016 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2016-2017 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Some part of this SlackBuild is adapted from SBo and AlienBOB's qt5{-webkit} SlackBuild
@@ -27,7 +27,7 @@
PRGNAM=qt5-webkit
SRCNAM=qtwebkit-opensource-src
-VERSION=${VERSION:-5.6.1}
+VERSION=${VERSION:-5.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -79,33 +79,40 @@ export OPENSOURCE_CXXFLAGS="$SLKCFLAGS"
export QTDIR="/usr/lib$LIBDIRSUFFIX/qt5"
export LD_LIBRARY_PATH="${QTDIR}/qtbase/lib:${QTDIR}/qttools/lib:${LD_LIBRARY_PATH}"
-mkdir -p build
-cd build
- qmake-qt5 ..
- make
- make install INSTALL_ROOT=$PKG
-cd ..
+# Install path fix for libplatformplugin.so.
+# https://bugs.webkit.org/show_bug.cgi?id=117077
+patch -p2 < $CWD/platformplugin-install-path-fix.patch
+
+if [ -d include ]; then
+ syncqt.pl -version $VERSION Source/sync.profile
+fi
+
+qmake-qt5 PREFIX="/usr" QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCFLAGS" \
+ -o Makefile WebKit.pro
+
+make
+make install INSTALL_ROOT=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Fix internal linking for Qt5WebKit.pc
sed -i \
- -e "s|-Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/WebKit[^ ]* ||" \
- -e "s|-Wl,-whole-archive -lWebKit2 -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/WebKit2[^ ]* ||" \
- -e "s|-Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/WebCore[^ ]* ||" \
- -e "s|-Wl,-whole-archive -lANGLE -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/ThirdParty/ANGLE[^ ]* ||" \
- -e "s|-Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/JavaScriptCore[^ ]* ||" \
- -e "s|-Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/WTF[^ ]* ||" \
- -e "s|-Wl,-whole-archive -lleveldb -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/ThirdParty/leveldb[^ ]* ||" \
+ -e "s|-Wl,-whole-archive -lWebKit1 -Wl,-no-whole-archive -L${PWD}/Source/WebKit[^ ]* ||" \
+ -e "s|-Wl,-whole-archive -lWebKit2 -Wl,-no-whole-archive -L${PWD}/Source/WebKit2[^ ]* ||" \
+ -e "s|-Wl,-whole-archive -lWebCore -Wl,-no-whole-archive -L${PWD}/Source/WebCore[^ ]* ||" \
+ -e "s|-Wl,-whole-archive -lANGLE -Wl,-no-whole-archive -L${PWD}/Source/ThirdParty/ANGLE[^ ]* ||" \
+ -e "s|-Wl,-whole-archive -lleveldb -Wl,-no-whole-archive -L${PWD}/Source/ThirdParty/leveldb[^ ]* ||" \
+ -e "s|-Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L${PWD}/Source/JavaScriptCore[^ ]* ||" \
+ -e "s|-Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L${PWD}/Source/WTF[^ ]* ||" \
$PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/Qt5WebKit.pc
# Fix the path in prl files:
find "$PKG/usr/lib${LIBDIRSUFFIX}" -type f -name '*.prl' \
- -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;
+ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog* VERSION $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog* LICENSE* VERSION $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/qt5-webkit/qt5-webkit.info b/libraries/qt5-webkit/qt5-webkit.info
index bf987b8f3e5f3..5b5025477d1ac 100644
--- a/libraries/qt5-webkit/qt5-webkit.info
+++ b/libraries/qt5-webkit/qt5-webkit.info
@@ -1,8 +1,8 @@
PRGNAM="qt5-webkit"
-VERSION="5.6.1"
+VERSION="5.7.1"
HOMEPAGE="http://www.qt.io"
-DOWNLOAD="http://download.qt.io/community_releases/5.6/5.6.1/qtwebkit-opensource-src-5.6.1.tar.xz"
-MD5SUM="9ea7cb557375ba2fc7c62742c522d093"
+DOWNLOAD="http://download.qt.io/community_releases/5.7/5.7.1/qtwebkit-opensource-src-5.7.1.tar.xz"
+MD5SUM="4fa8f47383ce36d59dcc36d701ce93cd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="qt5"