wok rev 21575

created package qdirstat (thanks Xavier)
author Hans-G?nter Theisgen
date Sun May 19 10:40:55 2019 +0100 (2019-05-19)
parents 06a20620a233
children 66530154b12f
files qdirstat/receipt qdirstat/stuff/patches/qdirstat-1.5.patch wesnoth/receipt.old
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/qdirstat/receipt	Sun May 19 10:40:55 2019 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="qdirstat"
     1.7 +VERSION="1.5"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="Tools for inspecting and visualizing disk usage."
    1.10 +MAINTAINER="xavileonf@gmail.com"
    1.11 +LICENSE="LGPL3"
    1.12 +WEB_SITE="https://github.com/shundhammer/qdirstat/"
    1.13 +
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 +WGET_URL="https://github.com/shundhammer/$PACKAGE/archive/$VERSION/$TARBALL"
    1.16 +
    1.17 +DEPENDS="qt4"
    1.18 +BUILD_DEPENDS="Qt4-dev qmake"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +        export QMAKESPC=/usr/share/qt/mkspecs/linux-g++
    1.24 +	patch --strip=1 --input=$stuff/patches/qdirstat-1.5.patch &&
    1.25 +	qmake INSTALL_PREFIX=$DESTDIR/usr &&
    1.26 +	make install
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()                                      
    1.31 +{
    1.32 +	mkdir -p $fs/usr/share
    1.33 +
    1.34 +	cp -a $install/usr/bin			$fs/usr
    1.35 +	cp -a $install/usr/share/man		$fs/usr/share
    1.36 +	cp -a $install/usr/share/icons		$fs/usr/share
    1.37 +	cp -a $install/usr/share/applications	$fs/usr/share
    1.38 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/qdirstat/stuff/patches/qdirstat-1.5.patch	Sun May 19 10:40:55 2019 +0100
     2.3 @@ -0,0 +1,94 @@
     2.4 +--- a/src/DataColumns.h
     2.5 ++++ b/src/DataColumns.h
     2.6 +@@ -186,39 +186,12 @@
     2.7 + 	 **/
     2.8 + 	DataColumns();
     2.9 + 
    2.10 +-
    2.11 + 	// Data members
    2.12 + 
    2.13 + 	static DataColumns * _instance;
    2.14 + 	DataColumnList	     _columns;
    2.15 + 
    2.16 +     };	// class DataColumns
    2.17 +-
    2.18 +-
    2.19 +-    /**
    2.20 +-     * Print a DataColumn in text form to a debug stream.
    2.21 +-     **/
    2.22 +-    inline QTextStream & operator<< ( QTextStream & stream, DataColumn col )
    2.23 +-    {
    2.24 +-	stream << DataColumns::toString( col );
    2.25 +-
    2.26 +-	return stream;
    2.27 +-    }
    2.28 +-
    2.29 +-
    2.30 +-    /**
    2.31 +-     * Print a DataColumn in text form to a debug stream.
    2.32 +-     **/
    2.33 +-    inline QTextStream & operator<< ( QTextStream &          stream,
    2.34 +-                                      const DataColumnList & colList )
    2.35 +-    {
    2.36 +-	stream << "[ "
    2.37 +-               << DataColumns::toStringList( colList ).join( ", " )
    2.38 +-               << " ]";
    2.39 +-
    2.40 +-	return stream;
    2.41 +-    }
    2.42 +-
    2.43 + 
    2.44 + }	// namespace QDirStat
    2.45 +
    2.46 +--- a/src/DataColumns.cpp
    2.47 ++++ b/src/DataColumns.cpp
    2.48 +@@ -13,8 +13,31 @@
    2.49 + #include "Logger.h"
    2.50 + #include "Exception.h"
    2.51 + 
    2.52 + using namespace QDirStat;
    2.53 + 
    2.54 ++    /**
    2.55 ++     * Print a DataColumn in text form to a debug stream.
    2.56 ++     **/
    2.57 ++    inline QTextStream & operator<< ( QTextStream & stream, DataColumn col )
    2.58 ++    {
    2.59 ++	stream << DataColumns::toString( col );
    2.60 ++
    2.61 ++	return stream;
    2.62 ++    }
    2.63 ++
    2.64 ++
    2.65 ++    /**
    2.66 ++     * Print a DataColumn in text form to a debug stream.
    2.67 ++     **/
    2.68 ++    inline QTextStream & operator<< ( QTextStream &          stream,
    2.69 ++                                      const DataColumnList & colList )
    2.70 ++    {
    2.71 ++	stream << "[ "
    2.72 ++               << DataColumns::toStringList( colList ) //.join( ", " )
    2.73 ++               << " ]";
    2.74 ++ 
    2.75 ++	return stream;
    2.76 ++    }
    2.77 + 
    2.78 + DataColumns * DataColumns::_instance = 0;
    2.79 +
    2.80 +--- a/man/man.pro
    2.81 ++++ b/man/man.pro
    2.82 +@@ -7,13 +7,13 @@
    2.83 + 
    2.84 + MAN_SRC      = $$files( *.1 )
    2.85 + MAN_TARGET   = $$MAN_SRC
    2.86 +-MAN_TARGET  ~= s/.1$/.1.gz/g
    2.87 ++#MAN_TARGET  ~= s/.1$/.1.gz/g
    2.88 + 
    2.89 + # message(src:    $$MAN_SRC)
    2.90 + # message(target: $$MAN_TARGET)
    2.91 + 
    2.92 + man.files    = $$MAN_TARGET
    2.93 +-man.commands = gzip --keep --force $$MAN_SRC
    2.94 ++#man.commands = gzip --keep --force $$MAN_SRC
    2.95 + man.path     = $$INSTALL_PREFIX/share/man/man1
    2.96 + 
    2.97 + INSTALLS    += man
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/wesnoth/receipt.old	Sun May 19 10:40:55 2019 +0100
     3.3 @@ -0,0 +1,64 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="wesnoth"
     3.7 +VERSION="1.10.3"
     3.8 +CATEGORY="games"
     3.9 +SHORT_DESC="Turn based strategy game"
    3.10 +MAINTAINER="mimas@slitaz.org"
    3.11 +LICENSE="GPL2"
    3.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    3.13 +WEB_SITE="http://www.wesnoth.org/"
    3.14 +WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
    3.15 +TAGS="strategy"
    3.16 +
    3.17 +DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango \
    3.18 +cairo fontconfig libboost-regex libboost-iostreams libpng fribidi gcc-lib-base \
    3.19 +xcb-util libboost-system libboost-program-options"
    3.20 +BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libsdl-dev libsdl-mixer-dev libsdl-ttf-dev \
    3.21 +libsdl-ttf libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils \
    3.22 +lua-dev libboost-serialization-dev autoconf automake fribidi-dev \
    3.23 +libboost-system-dev libboost-program-options-dev cmake"
    3.24 +
    3.25 +# Rules to configure and make the package.
    3.26 +compile_rules()
    3.27 +{
    3.28 +	cd $src
    3.29 +	cmake -DCMAKE_INSTALL_PREFIX=/usr .
    3.30 +	make $MAKEFLAGS && make DESTDIR=$DESTDIR install
    3.31 +}
    3.32 +
    3.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.34 +genpkg_rules()
    3.35 +{
    3.36 +	# programs
    3.37 +	mkdir -p $fs/usr/bin
    3.38 +	cp $install/usr/bin/wesnoth $fs/usr/bin/
    3.39 +
    3.40 +	# data
    3.41 +	mkdir -p $fs/usr/share/wesnoth/
    3.42 +	cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
    3.43 +	cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
    3.44 +	cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
    3.45 +	cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
    3.46 +
    3.47 +	mkdir $fs/usr/share/wesnoth/translations
    3.48 +	if [ ! "$LOCALE" = "" ]; then
    3.49 +		for i in $LOCALE
    3.50 +		do
    3.51 +			cp -a $install/usr/share/wesnoth/translations/$i \
    3.52 +				$fs/usr/share/wesnoth/translations
    3.53 +		done		
    3.54 +	else
    3.55 +		cp -a $install/usr/share/wesnoth/translations \
    3.56 +			$fs/usr/share/wesnoth/
    3.57 +	fi
    3.58 +	
    3.59 +	# Remove music
    3.60 +	rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
    3.61 +
    3.62 +	# finalize
    3.63 +	cp -a $install/usr/share/applications $fs/usr/share
    3.64 +	cp -a $install/usr/share/pixmaps $fs/usr/share
    3.65 +
    3.66 +}
    3.67 +