wok-next diff qtwebkit/receipt @ rev 19687
unshield: _BSD_SOURCE is deprecated
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 10 09:48:32 2017 +0200 (2017-04-10) |
parents | 1ce9f5dd01a4 |
children | 0e8dadf052b9 |
line diff
1.1 --- a/qtwebkit/receipt Sun Jun 28 20:56:46 2015 +0300 1.2 +++ b/qtwebkit/receipt Mon Apr 10 09:48:32 2017 +0200 1.3 @@ -10,6 +10,9 @@ 1.4 WEB_SITE="http://download.kde.org" 1.5 WGET_URL="$WEB_SITE/stable/$PACKAGE-${VERSION:0:3}/$VERSION/src/$TARBALL" 1.6 1.7 +PROVIDE="libQtWebkit" 1.8 +CONFIG_FILES="/etc/fonts/conf.d/10-QtWebkit-monospace.conf" 1.9 + 1.10 DEPENDS="libQtCore libQtDBus libQtGui libQtXml libQtNetwork libQtOpenGL \ 1.11 mesa sqlite gstreamer orc gst-plugins-base" 1.12 BUILD_DEPENDS="Qt4-dev libQtDeclarative qmake bison flex gperf ruby-dev mesa-dev \ 1.13 @@ -17,6 +20,8 @@ 1.14 1.15 compile_rules() 1.16 { 1.17 + sed 's|FixedFont, default.*$|FixedFont, QLatin1String("monospace"));|' -i \ 1.18 + $src/Source/WebKit/qt/Api/qwebsettings.cpp 1.19 QTDIR=/usr QMAKE_CXXFLAGS=$CFLAGS \ 1.20 Tools/Scripts/build-webkit \ 1.21 --qt \ 1.22 @@ -34,7 +39,15 @@ 1.23 1.24 genpkg_rules() 1.25 { 1.26 - mkdir -p $fs/usr/lib $fs/usr/bin 1.27 + mkdir -p $fs/usr/lib $fs/usr/bin $fs/etc/fonts/conf.d 1.28 + cat > $fs/etc/fonts/conf.d/10-QtWebkit-monospace.conf <<EOT 1.29 +<fontconfig><alias> 1.30 + <family>monospace</family> 1.31 + <prefer> 1.32 + <family>DejaVu Sans Mono</family> 1.33 + </prefer> 1.34 +</alias></fontconfig> 1.35 +EOT 1.36 cp -a $src/WebKitBuild/Release/bin/Qt* $fs/usr/bin 1.37 cp -a $install/usr/lib/*.so* $fs/usr/lib 1.38 }