dcallagh-exheres

My personal Exherbo repository
git clone https://code.djc.id.au/git/dcallagh-exheres/
commit 36d1223780f82d1c58137c7c0b87ae809d4db21f
parent cfe73c526c2ade9ba9af158f0a84c0269665c04e
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sat,  9 Oct 2010 15:31:56 +1000

added gmrun

Diffstat:
Mmetadata/categories.conf | 1+
Apackages/x11-misc/gmrun/files/missing-headers.patch | 47+++++++++++++++++++++++++++++++++++++++++++++++
Apackages/x11-misc/gmrun/files/scandir-compar-prototype.patch | 17+++++++++++++++++
Apackages/x11-misc/gmrun/files/strncasecmp.patch | 19+++++++++++++++++++
Apackages/x11-misc/gmrun/gmrun-0.9.2.exheres-0 | 28++++++++++++++++++++++++++++
5 files changed, 112 insertions(+), 0 deletions(-)
diff --git a/metadata/categories.conf b/metadata/categories.conf
@@ -1,2 +1,3 @@
 sys-auth
 mail-client
+x11-misc
diff --git a/packages/x11-misc/gmrun/files/missing-headers.patch b/packages/x11-misc/gmrun/files/missing-headers.patch
@@ -0,0 +1,47 @@
+From: Dan Callaghan <djc@djc.id.au>
+Upstream: TODO
+
+adds missing includes
+
+--- gmrun-0.9.2-orig/src/ci_string.h	2001-05-17 00:39:31.000000000 +1000
++++ gmrun-0.9.2/src/ci_string.h	2010-10-09 15:39:27.734709225 +1000
+@@ -7,6 +7,7 @@
+ #define __CI_STRING_H__
+ 
+ #include <string>
++#include <strings.h>
+ #include <ctype.h>
+ 
+ struct ci_char_traits : public std::char_traits<char>
+--- gmrun-0.9.2-orig/src/gtkcompletionline.cc	2003-11-16 20:55:07.000000000 +1000
++++ gmrun-0.9.2/src/gtkcompletionline.cc	2010-10-09 15:36:31.735708701 +1000
+@@ -24,6 +24,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
++#include <string.h>
+ 
+ #include <iostream>
+ #include <set>
+--- gmrun-0.9.2-orig/src/main.cc	2003-11-16 20:55:07.000000000 +1000
++++ gmrun-0.9.2/src/main.cc	2010-10-09 15:40:06.437709310 +1000
+@@ -19,6 +19,7 @@
+ #include <vector>
+ #include <algorithm>
+ #include <iterator>
++#include <string.h>
+ #include <popt.h>
+ 
+ using namespace std;
+--- gmrun-0.9.2-orig/src/prefs.cc	2002-08-16 20:48:22.000000000 +1000
++++ gmrun-0.9.2/src/prefs.cc	2010-10-09 15:40:30.257709145 +1000
+@@ -12,7 +12,9 @@
+ 
+ #include <fstream>
+ #include <iostream>
++#include <stdlib.h>
+ #include <stdio.h>
++#include <string.h>
+ 
+ #include <list>
+ 
diff --git a/packages/x11-misc/gmrun/files/scandir-compar-prototype.patch b/packages/x11-misc/gmrun/files/scandir-compar-prototype.patch
@@ -0,0 +1,17 @@
+From: Dan Callaghan <djc@djc.id.au>
+Upstream: TODO
+
+--- gmrun-0.9.2-orig/src/gtkcompletionline.cc	2003-11-16 20:55:07.000000000 +1000
++++ gmrun-0.9.2/src/gtkcompletionline.cc	2010-10-09 15:36:31.735708701 +1000
+@@ -376,10 +377,7 @@
+   return 0;
+ }
+ 
+-int my_alphasort(const void* va, const void* vb) {
+-  const struct dirent** a = (const struct dirent**)va;
+-  const struct dirent** b = (const struct dirent**)vb;
+-
++int my_alphasort(const struct dirent** a, const struct dirent** b) {
+   const char* s1 = (*a)->d_name;
+   const char* s2 = (*b)->d_name;
+ 
diff --git a/packages/x11-misc/gmrun/files/strncasecmp.patch b/packages/x11-misc/gmrun/files/strncasecmp.patch
@@ -0,0 +1,19 @@
+From: Dan Callaghan <djc@djc.id.au>
+Upstream: TODO
+
+use POSIX strncasecmp
+
+Not sure what this is about, strncasecmp is not a member of std::char_traits in 
+any STL I can find...
+
+--- gmrun-0.9.2-orig/src/ci_string.h	2001-05-17 00:39:31.000000000 +1000
++++ gmrun-0.9.2/src/ci_string.h	2010-10-09 15:39:27.734709225 +1000
+@@ -26,7 +27,7 @@
+   static int compare( const char* s1,
+                       const char* s2,
+                       size_t n ) {
+-    return ::strncasecmp( s1, s2, n );
++    return strncasecmp( s1, s2, n );
+   }
+ 
+   static const char*
diff --git a/packages/x11-misc/gmrun/gmrun-0.9.2.exheres-0 b/packages/x11-misc/gmrun/gmrun-0.9.2.exheres-0
@@ -0,0 +1,28 @@
+# Copyright 2010 Dan Callaghan <djc@djc.id.au>
+# Distributed under the terms of the GNU General Public License v2
+
+require sourceforge [ suffix=tar.gz ]
+
+SUMMARY="Simple replacement for gnome-run, with tab completion and history"
+
+LICENCES="GPL-2"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+MYOPTIONS=""
+
+DEPENDENCIES="
+    build+run:
+        x11-libs/gtk+:2
+"
+
+BUGS_TO="djc@djc.id.au"
+
+DEFAULT_SRC_PREPARE_PATCHES=(
+    "${FILES}/missing-headers.patch"
+    "${FILES}/scandir-compar-prototype.patch"
+    "${FILES}/strncasecmp.patch"
+)
+
+src_configure() {
+    econf --hates=docdir
+}