wok-next rev 21427
updated qt4 (4.8.6 -> 4.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue May 05 08:11:24 2020 +0100 (2020-05-05) |
parents | 01f583d1131d |
children | f0e2bc39199a |
files | qt4/receipt |
line diff
1.1 --- a/qt4/receipt Tue May 05 07:09:38 2020 +0100 1.2 +++ b/qt4/receipt Tue May 05 08:11:24 2020 +0100 1.3 @@ -1,106 +1,113 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="qt4" 1.7 -SOURCE="qt-everywhere-opensource-src" 1.8 -VERSION="4.8.6" 1.9 +VERSION="4.8.7" 1.10 CATEGORY="meta" 1.11 SHORT_DESC="Qt x11 toolkit" 1.12 MAINTAINER="allan316@gmail.com" 1.13 LICENSE="GPL3 LGPL2.1" 1.14 WEB_SITE="https://www.qt.io/developers/" 1.15 1.16 +SOURCE="qt-everywhere-opensource-src" 1.17 TARBALL="$SOURCE-$VERSION.tar.gz" 1.18 WGET_URL="http://download.qt-project.org/archive/qt/${VERSION%.*}/$VERSION/$TARBALL" 1.19 1.20 -BUILD_DEPENDS="libx11-dev dbus-dev gstreamer0-dev gst0-python-dev \ 1.21 -libmng-dev cups-dev mysql-dev unixODBC-dev mesa-dev fontconfig-dev mesa-libegl \ 1.22 -glu glw postgresql-dev gst0-plugins-base-dev atk-dev autoconf automake bash \ 1.23 -binutils bison bzip2-dev cairo-dev coreutils expat-dev flex fontconfig-dev \ 1.24 -freetype-dev gettext-dev glib-dev jpeg-dev libIDL libcap-dev libpng-dev \ 1.25 -libtool libxml2-dev linux-api-headers m4 make mercurial ncurses-dev openssl-dev \ 1.26 -pango-dev patch pcre-dev perl perl-xml-parser perl-xml-simple pixman-dev \ 1.27 -tiff-dev xorg-dev-proto xorg-dev zip unzip gtk2-dev alsa-lib-dev \ 1.28 -sqlite3-dev glu-dev glw-dev wayland-dev" 1.29 -SPLIT="libQt3Support libQtClucene libQtCore libQtDBus libQtDeclarative \ 1.30 -libQtDesigner libQtGui libQtHelp libQtMultimedia libQtNetwork libQtOpenGL \ 1.31 -libQtPlugins libQtScript libQtScriptTools libQtSql libQtSvg libQtTest \ 1.32 -libQtWebkit-video libQtXml qmake Qt4-dev qt4-phonon qtconfig-phonon QtDesigner \ 1.33 -qt-locale-cs qt-locale-da qt-locale-de qt-locale-es qt-locale-fr qt-locale-hu \ 1.34 -qt-locale-pl qt-locale-pt qt-locale-ru qt-locale-sl qt-locale-sv qt-locale-uk \ 1.35 -qt-locale-zh_CN qt-locale-zh_TW" 1.36 +BUILD_DEPENDS="alsa-lib-dev atk-dev autoconf automake bash binutils bison bzip2-dev 1.37 + cairo-dev coreutils cups-dev dbus-dev expat-dev flex fontconfig-dev 1.38 + freetype-dev gettext-dev glib-dev glu glu-dev glw glw-dev 1.39 + gst0-plugins-base-dev gst0-python-dev gstreamer0-dev gtk2-dev jpeg-dev 1.40 + libcap-dev libIDL libmng-dev libpng-dev libtool libx11-dev libxml2-dev 1.41 + linux-api-headers m4 make mercurial mesa-dev mesa-libegl mysql-dev 1.42 + ncurses-dev openssl-dev pango-dev patch pcre-dev perl perl-xml-parser 1.43 + perl-xml-simple pixman-dev postgresql-dev sqlite3-dev tiff-dev 1.44 + unixODBC-dev unzip wayland-dev xorg-dev xorg-dev-proto zip" 1.45 +SPLIT="libQt3Support libQtClucene libQtCore libQtDBus libQtDeclarative 1.46 + libQtDesigner libQtGui libQtHelp libQtMultimedia libQtNetwork libQtOpenGL 1.47 + libQtPlugins libQtScript libQtScriptTools libQtSql libQtSvg libQtTest 1.48 + libQtWebkit-video libQtXml qmake Qt4-dev qt4-phonon qtconfig-phonon QtDesigner 1.49 + qt-locale-cs qt-locale-da qt-locale-de qt-locale-es qt-locale-fr qt-locale-hu 1.50 + qt-locale-pl qt-locale-pt qt-locale-ru qt-locale-sl qt-locale-sv qt-locale-uk 1.51 + qt-locale-zh_CN qt-locale-zh_TW" 1.52 1.53 -compile_rules() { 1.54 +compile_rules() 1.55 +{ 1.56 export CXXFLAGS="$CXXFLAGS -std=gnu++98" 1.57 1.58 #ugly fix for missing files, you probably could do better 1.59 mkdir -p $src/src/3rdparty/webkit/Source/WebKit2/generated 1.60 1.61 - for i in $(grep MessageReceiver.cpp $stuff/missinglist); do 1.62 + for i in $(grep MessageReceiver.cpp $stuff/missinglist) 1.63 + do 1.64 fileprefix=${i%MessageReceiver.cpp} 1.65 cppfilename=$(find $src/src/3rdparty/webkit/Source/WebKit2 -name $fileprefix.cpp) 1.66 dname=$(dirname $cppfilename) 1.67 /usr/bin/python $src/src/3rdparty/webkit/Source/WebKit2/Scripts/generate-message-receiver.py $dname/$fileprefix.messages.in > $src/src/3rdparty/webkit/Source/WebKit2/generated/$i 1.68 - done 1.69 + done 1.70 1.71 - for i in $(grep Messages.h $stuff/missinglist); do 1.72 + for i in $(grep Messages.h $stuff/missinglist) 1.73 + do 1.74 fileprefix=${i%Messages.h} 1.75 hfilename=$(find $src/src/3rdparty/webkit/Source/WebKit2 -name $fileprefix.h) 1.76 dname=$(dirname $hfilename) 1.77 /usr/bin/python $src/src/3rdparty/webkit/Source/WebKit2/Scripts/generate-messages-header.py $dname/$fileprefix.messages.in > $src/src/3rdparty/webkit/Source/WebKit2/generated/$i 1.78 - done 1.79 + done 1.80 1.81 - ./configure \ 1.82 - -silent \ 1.83 - -prefix /usr \ 1.84 - -confirm-license \ 1.85 - -opensource \ 1.86 - -sysconfdir /etc \ 1.87 - -plugindir /usr/lib/qt/plugins \ 1.88 - -importdir /usr/lib/qt/imports \ 1.89 - -translationdir /usr/share/qt/translations \ 1.90 - -datadir /usr/share/qt \ 1.91 - -docdir /usr/share/doc/qt \ 1.92 - -examplesdir /usr/share/doc/qt/examples \ 1.93 - -demosdir /usr/share/doc/qt/demos \ 1.94 - -release \ 1.95 - -nomake demos \ 1.96 - -nomake examples \ 1.97 - -nomake docs \ 1.98 - -system-zlib \ 1.99 - -system-libtiff \ 1.100 - -system-libpng \ 1.101 - -system-libmng \ 1.102 - -system-libjpeg \ 1.103 - -system-sqlite \ 1.104 - -scripttools \ 1.105 - -glib \ 1.106 - -phonon \ 1.107 - -optimized-qmake \ 1.108 - -opengl \ 1.109 - -gtkstyle \ 1.110 + ./configure \ 1.111 + -silent \ 1.112 + -prefix /usr \ 1.113 + -confirm-license \ 1.114 + -opensource \ 1.115 + -sysconfdir /etc \ 1.116 + -plugindir /usr/lib/qt/plugins \ 1.117 + -importdir /usr/lib/qt/imports \ 1.118 + -translationdir /usr/share/qt/translations \ 1.119 + -datadir /usr/share/qt \ 1.120 + -docdir /usr/share/doc/qt \ 1.121 + -examplesdir /usr/share/doc/qt/examples \ 1.122 + -demosdir /usr/share/doc/qt/demos \ 1.123 + -release \ 1.124 + -nomake demos \ 1.125 + -nomake examples \ 1.126 + -nomake docs \ 1.127 + -system-zlib \ 1.128 + -system-libtiff \ 1.129 + -system-libpng \ 1.130 + -system-libmng \ 1.131 + -system-libjpeg \ 1.132 + -system-sqlite \ 1.133 + -scripttools \ 1.134 + -glib \ 1.135 + -phonon \ 1.136 + -optimized-qmake \ 1.137 + -opengl \ 1.138 + -gtkstyle \ 1.139 && 1.140 make $MAKEFLAGS && 1.141 make INSTALL_ROOT=$install install 1.142 } 1.143 1.144 # Generate a SliTaz locale Qt package. 1.145 -genpkg_locale() { 1.146 +genpkg_locale() 1.147 +{ 1.148 LICENSE="GPL3 LGPL2.1 FDL other" 1.149 usqt=/usr/share/qt/translations 1.150 mkdir -p $fs$usqt 1.151 1.152 - for qm in $(find $install$usqt -name "*_$LOCALE.qm"); do 1.153 - cp -a $install$usqt/${qm##*/} $fs$usqt 1.154 - done 1.155 + for qm in $(find $install$usqt -name "*_$LOCALE.qm") 1.156 + do 1.157 + cp -a $install$usqt/${qm##*/} $fs$usqt 1.158 + done 1.159 1.160 - if [ x$BOOK != x ]; then 1.161 + if [ x$BOOK != x ] 1.162 + then 1.163 usqp=/usr/share/qt/phrasebooks 1.164 mkdir -p $fs$usqp 1.165 - cp -a $install$usqp/$BOOK.qph $fs$usqp 1.166 + cp -a $install$usqp/$BOOK.qph $fs$usqp 1.167 fi 1.168 } 1.169 1.170 -genpkg_rules() { 1.171 +genpkg_rules() 1.172 +{ 1.173 case $PACKAGE in 1.174 qt4) 1.175 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg \ 1.176 @@ -276,9 +283,10 @@ 1.177 cp -a $install/usr/lib/qt $fs/usr/lib 1.178 1.179 #private qt includes 1.180 - for i in $src/include/*/private/*; do 1.181 + for i in $src/include/*/private/* 1.182 + do 1.183 cp $src/$(cat $i | sed 's/^#include "[./]*\([a-z].*\)"$/\1/') $fs/usr/include/private #"MC 1.184 - done 1.185 + done 1.186 1.187 # all qt plugins are in libQtPlugins 1.188 rm -rf $fs/usr/lib/qt/plugins 1.189 @@ -393,10 +401,12 @@ 1.190 esac 1.191 } 1.192 1.193 -post_install_libQtGui() { 1.194 - for i in $(ls "$1/home" 2>/dev/null); do 1.195 +post_install_libQtGui() 1.196 +{ 1.197 + for i in $(ls "$1/home" 2>/dev/null) 1.198 + do 1.199 [ -f "$1/home/$i/.config/Trolltech.conf" ] && continue 1.200 cp "$1/etc/skel/.config/Trolltech.conf" "$1/home/$i/.config" 1.201 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.config" 1.202 - done 1.203 + done 1.204 }