wok rev 17979

mtpaint: view external using GPicView, print image using Yad, view documentation online using TazWeb.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 18 17:02:44 2015 +0300 (2015-04-18)
parents c76d30df5ef0
children a486002c14f7
files mtpaint/receipt mtpaint/stuff/mtpaint-doc mtpaint/stuff/mtpaint.patch mtpaint/stuff/mtpaintrc
line diff
     1.1 --- a/mtpaint/receipt	Sat Apr 18 16:50:04 2015 +0200
     1.2 +++ b/mtpaint/receipt	Sat Apr 18 17:02:44 2015 +0300
     1.3 @@ -19,6 +19,7 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 +	patch -p0 < $stuff/mtpaint.patch
     1.8  	case "$ARCH" in
     1.9  		i?86)
    1.10  			./configure \
    1.11 @@ -38,7 +39,10 @@
    1.12  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.13  genpkg_rules()
    1.14  {
    1.15 -	mkdir -p $fs/usr/share/applications
    1.16 +	mkdir -p $fs/usr/share/applications $fs/usr/share/pixmaps $fs/etc/mtpaint
    1.17  	cp -a $install/usr/bin $fs/usr
    1.18 +	install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin
    1.19  	cp $stuff/*.desktop $fs/usr/share/applications
    1.20 +	cp $src/doc/mtpaint.png $fs/usr/share/pixmaps
    1.21 +	cp $stuff/mtpaintrc $fs/etc/mtpaint
    1.22  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mtpaint/stuff/mtpaint-doc	Sat Apr 18 17:02:44 2015 +0300
     2.3 @@ -0,0 +1,2 @@
     2.4 +#!/bin/sh
     2.5 +tazweb http://mtpaint.sourceforge.net/handbook/
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/mtpaint/stuff/mtpaint.patch	Sat Apr 18 17:02:44 2015 +0300
     3.3 @@ -0,0 +1,13 @@
     3.4 +--- src/spawn.c.orig
     3.5 ++++ src/spawn.c
     3.6 +@@ -411,8 +411,8 @@
     3.7 + 		{"View EXIF data (leafpad)", "exif %f | leafpad"},
     3.8 + 		{"View filesystem data (xterm)", "xterm -hold -e ls -l %f"},
     3.9 + 		{"Edit in Gimp", "gimp %f"},
    3.10 +-		{"View in GQview", "gqview %f"},
    3.11 +-		{"Print image", "kprinter %f"},
    3.12 ++		{"View in GPicView", "gpicview %f"},
    3.13 ++		{"Print image", "yad --print --type=IMAGE --print-add-preview --filename=%f"},
    3.14 + 		{"Email image", "seamonkey -compose attachment=file://%f"},
    3.15 + 		{"Send image to Firefox", "firefox %f"},
    3.16 + 		{"Send image to OpenOffice", "soffice %f"},
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/mtpaint/stuff/mtpaintrc	Sat Apr 18 17:02:44 2015 +0300
     4.3 @@ -0,0 +1,2 @@
     4.4 +docsBrowser = mtpaint-doc
     4.5 +docsLocation = .