wok-next rev 14051

catfish: fix build and force it to work with SliTaz
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Feb 19 17:14:33 2013 +0000 (2013-02-19)
parents ce42c34a2832
children 16f4dd902f09
files bozohttpd/description.txt catfish/description.txt catfish/receipt
line diff
     1.1 --- a/bozohttpd/description.txt	Tue Feb 19 12:45:48 2013 +0100
     1.2 +++ b/bozohttpd/description.txt	Tue Feb 19 17:14:33 2013 +0000
     1.3 @@ -1,3 +1,7 @@
     1.4 -bozohttpd is a small and secure http version 1.1 server. its main feature is the lack of features, reducing the code size and improving verifiability.
     1.5 +bozohttpd is a small and secure HTTP server. Its main feature is the lack
     1.6 +of features, reducing code size and improving verifiability. It has
     1.7 +no configuration file by design.
     1.8  
     1.9 -it supports CGI/1.1, HTTP/1.1, HTTP/1.0, HTTP/0.9, ~user translations, virtual hosting support, as well as multiple IP-based servers on a single machine. it is capable of serving pages via the IPv6 protocol. it has ssl support. it has no configuration file by design.
    1.10 \ No newline at end of file
    1.11 +It supports CGI/1.1, HTTP/1.1, HTTP/1.0, HTTP/0.9, ~user translations, virtual
    1.12 +hosting support, as well as multiple IP-based servers on a single machine,
    1.13 +and is able to serve pages via the IPv6 protocol.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/catfish/description.txt	Tue Feb 19 17:14:33 2013 +0000
     2.3 @@ -0,0 +1,8 @@
     2.4 +Catfish is a handy file searching tool for linux and unix. Basically it is
     2.5 +a frontend for different search engines (daemons) which provides a unified
     2.6 +interface. The interface is intentionally lightweight and simple, using only
     2.7 +GTK+2 and Python. You can configure it to your needs by using several command
     2.8 +line options.
     2.9 +
    2.10 +You are encouraged to run 'catfish --help' to check out the various command
    2.11 +line options.
     3.1 --- a/catfish/receipt	Tue Feb 19 12:45:48 2013 +0100
     3.2 +++ b/catfish/receipt	Tue Feb 19 17:14:33 2013 +0000
     3.3 @@ -3,31 +3,56 @@
     3.4  PACKAGE="catfish"
     3.5  VERSION="0.3.2"
     3.6  CATEGORY="utilities"
     3.7 -SHORT_DESC="Catfish is a versatile file searching tool."
     3.8 +SHORT_DESC="Catfish is a versatile file searching tool"
     3.9  MAINTAINER="devl547@gmail.com"
    3.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.11 -WEB_SITE="http://www.twotoasts.de/"
    3.12 -WGET_URL="http://www.twotoasts.de/media/catfish/$TARBALL"
    3.13 -BUILD_DEPENDS="pygtk-dev libglade-dev"
    3.14 -DEPENDS="pygtk libglade python-xdg"
    3.15 +WEB_SITE="http://twotoasts.de/index.php/catfish/"
    3.16 +WGET_URL="http://twotoasts.de/media/$PACKAGE/$TARBALL"
    3.17 +
    3.18 +DEPENDS="pygtk python-xdg findutils"
    3.19 +BUILD_DEPENDS="pygtk-dev libglade-dev python-xdg"
    3.20  
    3.21  # Rules to configure and make the package.
    3.22  compile_rules()
    3.23  {
    3.24 -	cd $src
    3.25  	./configure --prefix=/usr &&
    3.26  	make &&
    3.27 -	make DESTDIR=$PWD/_pkg install
    3.28 +	make DESTDIR=$install install
    3.29  }
    3.30  
    3.31  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.32  genpkg_rules()
    3.33  {
    3.34 -	mkdir -p $fs/usr/share/catfish
    3.35 -	mkdir $fs/usr/share
    3.36 -	
    3.37 -	cp -a $_pkg/usr/bin $fs/usr
    3.38 -	cp -a $_pkg/usr/share/catfish $fs/usr/share
    3.39 -	cp -a $_pkg/usr/share/icons $fs/usr/share
    3.40 -	cp -a $_pkg/usr/share/applications $fs/usr/share
    3.41 +	mkdir -p $fs/usr/bin $fs/usr/share/catfish
    3.42 +	cat > $fs/usr/bin/catfish << EOT
    3.43 +#!/bin/sh
    3.44 +. /etc/slitaz/applications.conf
    3.45 +# use default FILE_MANAGER to open both folders and files
    3.46 +
    3.47 +cd /usr/share/catfish
    3.48 +python catfish.py --large-icons --thumbnails --path=\$HOME \
    3.49 +--fileman=\$FILE_MANAGER --wrapper=\$FILE_MANAGER "\$@"
    3.50 +EOT
    3.51 +	chmod +x $fs/usr/bin/catfish
    3.52 +
    3.53 +	cd $fs/usr/share/catfish
    3.54 +
    3.55 +	cp -a $install/usr/share/catfish/catfish.glade .
    3.56 +	# minify glade file
    3.57 +	gzip ./catfish.glade; mv ./catfish.glade.gz catfish.glade
    3.58 +
    3.59 +	# can't copy *.pyc because 'cook' removes it from package!
    3.60 +	#cp -a $install/usr/share/catfish/catfish.pyc .
    3.61 +	cp -a $src/catfish.py .
    3.62 +
    3.63 +	# seems catfish --wrapper not works at all, fix it (attention spaces!)
    3.64 +	sed -i "189 a\
    3.65 +\        self.open_wrapper = self.options.open_wrapper" \
    3.66 +		$fs/usr/share/catfish/catfish.py
    3.67 +
    3.68 +	cp -a $install/usr/share/icons $fs/usr/share
    3.69 +	ln -s ../icons/hicolor/scalable/apps/catfish.svg catfish.svg
    3.70 +
    3.71 +	cp -a $install/usr/share/locale $fs/usr/share
    3.72 +	ln -s ../locale locale
    3.73  }