wok-4.x rev 3546

Add gmrun
author Liu Peng <rocky@slitaz.org>
date Tue Jun 23 12:23:23 2009 +0800 (2009-06-23)
parents f88cf39e28c3
children f15fff8f2ad9
files gmrun/description.txt gmrun/receipt gmrun/stuff/gmrun-0.9.2-gcc43.patch gmrun/stuff/gmrunrc
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gmrun/description.txt	Tue Jun 23 12:23:23 2009 +0800
     1.3 @@ -0,0 +1,3 @@
     1.4 +A simple program which provides a "run program" window, featuring a bash-like TAB completion. 
     1.5 +It uses GTK+ interface. Also, supports CTRL-R / CTRL-S / "!" for searching through history. 
     1.6 +Running commands in a terminal with CTRL-Enter. URL handlers.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/gmrun/receipt	Tue Jun 23 12:23:23 2009 +0800
     2.3 @@ -0,0 +1,32 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="gmrun"
     2.7 +VERSION="0.9.2"
     2.8 +CATEGORY="utilities"
     2.9 +SHORT_DESC="Program launcher with autocompletion."
    2.10 +MAINTAINER="rocky@slitaz.org"
    2.11 +DEPENDS="gtk+"
    2.12 +BUILD_DEPENDS="gtk+-dev popt-dev"
    2.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.14 +WEB_SITE="http://sourceforge.net/projects/gmrun"
    2.15 +WGET_URL="$SF_MIRROR/gmrun/$TARBALL"
    2.16 +
    2.17 +# Rules to configure and make the package.
    2.18 +compile_rules()
    2.19 +{
    2.20 +    cd $src
    2.21 +    patch -p1 -i ../stuff/gmrun-0.9.2-gcc43.patch &&
    2.22 +    ./configure --prefix=/usr \
    2.23 +        $CONFIGURE_ARGS &&
    2.24 +    make &&
    2.25 +    make install DESTDIR=$PWD/_pkg
    2.26 +}
    2.27 +
    2.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.29 +genpkg_rules()
    2.30 +{
    2.31 +    mkdir -p $fs/usr
    2.32 +    cp -a $_pkg/usr/bin $fs/usr
    2.33 +    cp -a $_pkg/usr/share $fs/usr
    2.34 +    cp $PWD/stuff/gmrunrc $fs/usr/share/gmrun
    2.35 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/gmrun/stuff/gmrun-0.9.2-gcc43.patch	Tue Jun 23 12:23:23 2009 +0800
     3.3 @@ -0,0 +1,51 @@
     3.4 +--- gmrun-0.9.2/src/gtkcompletionline.cc.orig	2003-11-16 11:55:07.000000000 +0100
     3.5 ++++ gmrun-0.9.2/src/gtkcompletionline.cc	2008-05-08 08:51:22.000000000 +0200
     3.6 +@@ -29,6 +29,7 @@
     3.7 + #include <set>
     3.8 + #include <sstream>
     3.9 + #include <string>
    3.10 ++#include <cstring>
    3.11 + #include <vector>
    3.12 + using namespace std;
    3.13 + 
    3.14 +--- gmrun-0.9.2/src/ci_string.h.orig	2001-05-16 16:39:31.000000000 +0200
    3.15 ++++ gmrun-0.9.2/src/ci_string.h	2008-05-08 08:51:33.000000000 +0200
    3.16 +@@ -7,6 +7,7 @@
    3.17 + #define __CI_STRING_H__
    3.18 + 
    3.19 + #include <string>
    3.20 ++#include <cstring>
    3.21 + #include <ctype.h>
    3.22 + 
    3.23 + struct ci_char_traits : public std::char_traits<char>
    3.24 +--- gmrun-0.9.2/src/prefs.cc.orig	2002-08-16 12:48:22.000000000 +0200
    3.25 ++++ gmrun-0.9.2/src/prefs.cc	2008-05-08 08:51:54.000000000 +0200
    3.26 +@@ -13,6 +13,7 @@
    3.27 + #include <fstream>
    3.28 + #include <iostream>
    3.29 + #include <stdio.h>
    3.30 ++#include <stdlib.h>
    3.31 + 
    3.32 + #include <list>
    3.33 + 
    3.34 +--- gmrun-0.9.2/src/main.cc.orig	2003-11-16 11:55:07.000000000 +0100
    3.35 ++++ gmrun-0.9.2/src/main.cc	2008-05-08 09:03:11.000000000 +0200
    3.36 +@@ -14,6 +14,7 @@
    3.37 + #include <gdk/gdkkeysyms.h>
    3.38 + 
    3.39 + #include <string>
    3.40 ++#include <cstring>
    3.41 + #include <iostream>
    3.42 + #include <sstream>
    3.43 + #include <vector>
    3.44 +--- gmrun-0.9.2/src/gtkcompletionline.cc.orig	Mon Jun 22 20:36:52 2009
    3.45 ++++ gmrun-0.9.2/src/gtkcompletionline.cc	Mon Jun 22 20:43:37 2009
    3.46 +@@ -377,7 +377,7 @@
    3.47 +   return 0;
    3.48 + }
    3.49 + 
    3.50 +-int my_alphasort(const void* va, const void* vb) {
    3.51 ++int my_alphasort(const dirent** va, const dirent** vb) {
    3.52 +   const struct dirent** a = (const struct dirent**)va;
    3.53 +   const struct dirent** b = (const struct dirent**)vb;
    3.54 + 
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/gmrun/stuff/gmrunrc	Tue Jun 23 12:23:23 2009 +0800
     4.3 @@ -0,0 +1,49 @@
     4.4 +# gmrun configuration file
     4.5 +# gmrun is (C) Mihai Bazon, <mishoo@infoiasi.ro>
     4.6 +# GPL v2.0 applies
     4.7 +
     4.8 +# Set terminal
     4.9 +Terminal = xterm
    4.10 +TermExec = ${Terminal} -e
    4.11 +AlwaysInTerm = ssh telnet ftp lynx mc vi vim pine centericq perldoc man
    4.12 +
    4.13 +# Set window geometry (except height)
    4.14 +Width = 400
    4.15 +Top = 100
    4.16 +Left = 200
    4.17 +
    4.18 +# History size
    4.19 +History = 256
    4.20 +
    4.21 +# Shows last history line selected when invoked
    4.22 +ShowLast = 1
    4.23 +
    4.24 +# Show files starting with '.'
    4.25 +# Default is 0 (off), set it to 1 if you want "hidden" files to show up
    4.26 +# in the completion window
    4.27 +ShowDotFiles = 0
    4.28 +
    4.29 +# Timeout (in milliseconds) after which gmrun will simulate a TAB press
    4.30 +# Set this to NULL if don't like this feature.
    4.31 +TabTimeout = 0
    4.32 +
    4.33 +# URL handlers
    4.34 +# If the entered text is "http://www.google.com" then:
    4.35 +#   - %u gets replaced with the whole URL ("http://www.google.com")
    4.36 +#   - %s gets replaced with "//www.google.com".  This is useful for URL-s
    4.37 +#     like "man:printf" --> %s will get replaced with "printf"
    4.38 +URL_http = firefox "openURL(%u, new-window)"
    4.39 +URL_mailto = claws-main --compose "%s"
    4.40 +URL_man = ${TermExec} 'man %s'
    4.41 +URL_info = ${TermExec} 'info %s'
    4.42 +URL_pd = ${TermExec} 'perldoc %s'
    4.43 +URL_file = pcmanfm %s
    4.44 +URL_readme = ${TermExec} 'less /usr/doc/%s/README'
    4.45 +URL_info = ${TermExec} 'info %s'
    4.46 +URL_sh = sh -c '%s'
    4.47 +
    4.48 +# extension handlers
    4.49 +EXT:doc,rtf = abiWord %s
    4.50 +EXT:txt,cc,cpp,h,java,html,htm,epl,tex,latex,js,css,xml,xsl,am = geany %s
    4.51 +EXT:ps = gv %s
    4.52 +EXT:pdf = epdfview %s