wok rev 18865

qtwebkit : fix monospace font
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun Jan 31 17:51:58 2016 +0100 (2016-01-31)
parents 4976349ba35b
children 5b01b0fcf335
files qtwebkit/receipt
line diff
     1.1 --- a/qtwebkit/receipt	Sun Jan 31 14:08:53 2016 +0100
     1.2 +++ b/qtwebkit/receipt	Sun Jan 31 17:51:58 2016 +0100
     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  }