# HG changeset patch # User Liu Peng # Date 1245731003 -28800 # Node ID 360f1070ee8af86b290d3391dea98cfead51d730 # Parent f88cf39e28c3464b8bc767660de0f61a07b91336 Add gmrun diff -r f88cf39e28c3 -r 360f1070ee8a gmrun/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmrun/description.txt Tue Jun 23 12:23:23 2009 +0800 @@ -0,0 +1,3 @@ +A simple program which provides a "run program" window, featuring a bash-like TAB completion. +It uses GTK+ interface. Also, supports CTRL-R / CTRL-S / "!" for searching through history. +Running commands in a terminal with CTRL-Enter. URL handlers. diff -r f88cf39e28c3 -r 360f1070ee8a gmrun/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmrun/receipt Tue Jun 23 12:23:23 2009 +0800 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="gmrun" +VERSION="0.9.2" +CATEGORY="utilities" +SHORT_DESC="Program launcher with autocompletion." +MAINTAINER="rocky@slitaz.org" +DEPENDS="gtk+" +BUILD_DEPENDS="gtk+-dev popt-dev" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://sourceforge.net/projects/gmrun" +WGET_URL="$SF_MIRROR/gmrun/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -p1 -i ../stuff/gmrun-0.9.2-gcc43.patch && + ./configure --prefix=/usr \ + $CONFIGURE_ARGS && + make && + make install DESTDIR=$PWD/_pkg +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/share $fs/usr + cp $PWD/stuff/gmrunrc $fs/usr/share/gmrun +} diff -r f88cf39e28c3 -r 360f1070ee8a gmrun/stuff/gmrun-0.9.2-gcc43.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmrun/stuff/gmrun-0.9.2-gcc43.patch Tue Jun 23 12:23:23 2009 +0800 @@ -0,0 +1,51 @@ +--- gmrun-0.9.2/src/gtkcompletionline.cc.orig 2003-11-16 11:55:07.000000000 +0100 ++++ gmrun-0.9.2/src/gtkcompletionline.cc 2008-05-08 08:51:22.000000000 +0200 +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + #include + using namespace std; + +--- gmrun-0.9.2/src/ci_string.h.orig 2001-05-16 16:39:31.000000000 +0200 ++++ gmrun-0.9.2/src/ci_string.h 2008-05-08 08:51:33.000000000 +0200 +@@ -7,6 +7,7 @@ + #define __CI_STRING_H__ + + #include ++#include + #include + + struct ci_char_traits : public std::char_traits +--- gmrun-0.9.2/src/prefs.cc.orig 2002-08-16 12:48:22.000000000 +0200 ++++ gmrun-0.9.2/src/prefs.cc 2008-05-08 08:51:54.000000000 +0200 +@@ -13,6 +13,7 @@ + #include + #include + #include ++#include + + #include + +--- gmrun-0.9.2/src/main.cc.orig 2003-11-16 11:55:07.000000000 +0100 ++++ gmrun-0.9.2/src/main.cc 2008-05-08 09:03:11.000000000 +0200 +@@ -14,6 +14,7 @@ + #include + + #include ++#include + #include + #include + #include +--- gmrun-0.9.2/src/gtkcompletionline.cc.orig Mon Jun 22 20:36:52 2009 ++++ gmrun-0.9.2/src/gtkcompletionline.cc Mon Jun 22 20:43:37 2009 +@@ -377,7 +377,7 @@ + return 0; + } + +-int my_alphasort(const void* va, const void* vb) { ++int my_alphasort(const dirent** va, const dirent** vb) { + const struct dirent** a = (const struct dirent**)va; + const struct dirent** b = (const struct dirent**)vb; + diff -r f88cf39e28c3 -r 360f1070ee8a gmrun/stuff/gmrunrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmrun/stuff/gmrunrc Tue Jun 23 12:23:23 2009 +0800 @@ -0,0 +1,49 @@ +# gmrun configuration file +# gmrun is (C) Mihai Bazon, +# GPL v2.0 applies + +# Set terminal +Terminal = xterm +TermExec = ${Terminal} -e +AlwaysInTerm = ssh telnet ftp lynx mc vi vim pine centericq perldoc man + +# Set window geometry (except height) +Width = 400 +Top = 100 +Left = 200 + +# History size +History = 256 + +# Shows last history line selected when invoked +ShowLast = 1 + +# Show files starting with '.' +# Default is 0 (off), set it to 1 if you want "hidden" files to show up +# in the completion window +ShowDotFiles = 0 + +# Timeout (in milliseconds) after which gmrun will simulate a TAB press +# Set this to NULL if don't like this feature. +TabTimeout = 0 + +# URL handlers +# If the entered text is "http://www.google.com" then: +# - %u gets replaced with the whole URL ("http://www.google.com") +# - %s gets replaced with "//www.google.com". This is useful for URL-s +# like "man:printf" --> %s will get replaced with "printf" +URL_http = firefox "openURL(%u, new-window)" +URL_mailto = claws-main --compose "%s" +URL_man = ${TermExec} 'man %s' +URL_info = ${TermExec} 'info %s' +URL_pd = ${TermExec} 'perldoc %s' +URL_file = pcmanfm %s +URL_readme = ${TermExec} 'less /usr/doc/%s/README' +URL_info = ${TermExec} 'info %s' +URL_sh = sh -c '%s' + +# extension handlers +EXT:doc,rtf = abiWord %s +EXT:txt,cc,cpp,h,java,html,htm,epl,tex,latex,js,css,xml,xsl,am = geany %s +EXT:ps = gv %s +EXT:pdf = epdfview %s