wok-next rev 18045

Add yad-html, write "provide" variables for yad-html, yad-gtk3.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 13 12:14:40 2015 +0300 (2015-05-13)
parents 1615f4391fb0
children 6cb94d9c1f79
files yad-gtk3/receipt yad-html/description.txt yad-html/receipt yad/receipt
line diff
     1.1 --- a/yad-gtk3/receipt	Tue May 12 19:26:09 2015 -0400
     1.2 +++ b/yad-gtk3/receipt	Wed May 13 12:14:40 2015 +0300
     1.3 @@ -1,16 +1,17 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="yad-gtk3"
     1.7 -VERSION="0.22.1"
     1.8 +VERSION="0.28.1"
     1.9  CATEGORY="utilities"
    1.10  SHORT_DESC="Display graphical dialogs from shell scripts or command line (GTK+3)"
    1.11  MAINTAINER="devl547@gmail.com"
    1.12  LICENSE="GPL3"
    1.13 -TARBALL="yad-$VERSION.tar.xz"
    1.14 -WEB_SITE="http://code.google.com/p/yad/"
    1.15 -WGET_URL="http://yad.googlecode.com/files/$TARBALL"
    1.16 +SOURCE="yad"
    1.17 +PROVIDE="yad:gtk+3"
    1.18 +TARBALL="$SOURCE-$VERSION.tar.xz"
    1.19 +WEB_SITE="http://sourceforge.net/projects/yad-dialog/"
    1.20 +WGET_URL="$SF_MIRROR/yad-dialog/$TARBALL"
    1.21  TAGS="gtk3"
    1.22 -VERSION_NOTE="latest"
    1.23  
    1.24  DEPENDS="gtk+3"
    1.25  BUILD_DEPENDS="gtk+3-dev optipng"
    1.26 @@ -18,12 +19,11 @@
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30 -	patch -p1 < $stuff/ru.patch
    1.31 +	#patch -p1 < $stuff/ru.patch
    1.32  	./configure \
    1.33  		--with-gtk=gtk3 \
    1.34  		--enable-icon-browser &&
    1.35 -	make &&
    1.36 -	make install
    1.37 +	make && make install
    1.38  	optipng -quiet -zc1-9 -zm1-9 -zs0-3 -f0-5 \
    1.39  		$install/usr/share/icons/hicolor/48x48/apps/yad.png
    1.40  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/yad-html/description.txt	Wed May 13 12:14:40 2015 +0300
     2.3 @@ -0,0 +1,2 @@
     2.4 +Yad (yet another dialog) is a fork of Zenity with many improvements, such as 
     2.5 +custom buttons, additional dialogs, pop-up menu in notification icon and more. 
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/yad-html/receipt	Wed May 13 12:14:40 2015 +0300
     3.3 @@ -0,0 +1,38 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="yad-html"
     3.7 +VERSION="0.28.1"
     3.8 +CATEGORY="utilities"
     3.9 +SHORT_DESC="Display graphical dialogs from shell scripts or command line (with HTML widget)"
    3.10 +MAINTAINER="devl547@gmail.com"
    3.11 +LICENSE="GPL3"
    3.12 +SOURCE="yad"
    3.13 +PROVIDE="yad:libwebkit"
    3.14 +TARBALL="$SOURCE-$VERSION.tar.xz"
    3.15 +WEB_SITE="http://sourceforge.net/projects/yad-dialog/"
    3.16 +WGET_URL="$SF_MIRROR/yad-dialog/$TARBALL"
    3.17 +TAGS="gtk2"
    3.18 +
    3.19 +DEPENDS="gtk+ libwebkit"
    3.20 +BUILD_DEPENDS="gtk+-dev optipng libwebkit-dev"
    3.21 +
    3.22 +# Rules to configure and make the package.
    3.23 +compile_rules()
    3.24 +{
    3.25 +	./configure \
    3.26 +		--enable-icon-browser \
    3.27 +		--enable-html \
    3.28 +		$CONFIGURE_ARGS &&
    3.29 +	make && make install &&
    3.30 +	optipng -quiet -strip all -o7 -zm1-9 \
    3.31 +		$install/usr/share/icons/hicolor/48x48/apps/yad.png
    3.32 +}
    3.33 +
    3.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.35 +genpkg_rules()
    3.36 +{
    3.37 +	usih=/usr/share/icons/hicolor
    3.38 +	mkdir -p ${fs}$usih
    3.39 +	cp -a $install/usr/bin $fs/usr
    3.40 +	cp -a ${install}$usih/48x48 ${fs}$usih
    3.41 +}
     4.1 --- a/yad/receipt	Tue May 12 19:26:09 2015 -0400
     4.2 +++ b/yad/receipt	Wed May 13 12:14:40 2015 +0300
     4.3 @@ -12,12 +12,11 @@
     4.4  TAGS="gtk2"
     4.5  HOST_ARCH="i486 arm"
     4.6  
     4.7 -DEPENDS="gtk+ libwebkit"
     4.8 +DEPENDS="gtk+"
     4.9  BUILD_DEPENDS="gtk+-dev"
    4.10  
    4.11  case "$ARCH" in
    4.12 -	i?86) BUILD_DEPENDS="$BUILD_DEPENDS optipng libwebkit-dev"
    4.13 -		DEPENDS="$DEPENDS libwebkit" ;;
    4.14 +	i?86) BUILD_DEPENDS="$BUILD_DEPENDS optipng";;
    4.15  esac
    4.16  
    4.17  # Rules to configure and make the package.
    4.18 @@ -26,10 +25,10 @@
    4.19  	#patch -p1 < $stuff/ru.patch
    4.20  	./configure \
    4.21  		--enable-icon-browser \
    4.22 -		--enable-html \
    4.23  		$CONFIGURE_ARGS &&
    4.24 -	make && make install &&
    4.25 -	optipng -quiet -strip all -o7 -zm1-9 \
    4.26 +	make && make install
    4.27 +	# Skip optipng for arm arch
    4.28 +	[ -x '/usr/bin/optipng' ] && optipng -quiet -strip all -o7 -zm1-9 \
    4.29  		$install/usr/share/icons/hicolor/48x48/apps/yad.png
    4.30  }
    4.31