summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Harmon (eatnumber1) <eatnumber1@gmail.com>2009-11-27 08:51:25 +0000
committerRussell Harmon (eatnumber1) <eatnumber1@gmail.com>2009-11-27 08:51:25 +0000
commit04e7247c8a223e4d3f89afc46ebda925f1cfbd2d (patch)
tree261a42e8870d01fa8ad6637156059e5947a7563f /x11-misc
parentminor fixes to metadata, ebuild (diff)
downloadsunrise-04e7247c8a223e4d3f89afc46ebda925f1cfbd2d.tar.gz
sunrise-04e7247c8a223e4d3f89afc46ebda925f1cfbd2d.tar.bz2
sunrise-04e7247c8a223e4d3f89afc46ebda925f1cfbd2d.zip
x11-misc/keynav: New ebuild for keynav
svn path=/sunrise/; revision=9618
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/keynav/ChangeLog7
-rw-r--r--x11-misc/keynav/Manifest6
-rw-r--r--x11-misc/keynav/files/keynav-20091108_etc-config.patch57
-rw-r--r--x11-misc/keynav/files/keynav-20091108_fix-makefile.patch46
-rw-r--r--x11-misc/keynav/keynav-20091108.ebuild35
-rw-r--r--x11-misc/keynav/metadata.xml5
6 files changed, 156 insertions, 0 deletions
diff --git a/x11-misc/keynav/ChangeLog b/x11-misc/keynav/ChangeLog
new file mode 100644
index 000000000..9b7f5be5e
--- /dev/null
+++ b/x11-misc/keynav/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for x11-misc/keynav
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 27 Nov 2009; Russell Harmon (eatnumber1) <russ@eatnumber1.com> ChangeLog:
+ New ebuild for keynav
+
diff --git a/x11-misc/keynav/Manifest b/x11-misc/keynav/Manifest
new file mode 100644
index 000000000..04a66bced
--- /dev/null
+++ b/x11-misc/keynav/Manifest
@@ -0,0 +1,6 @@
+AUX keynav-20091108_etc-config.patch 1325 RMD160 c16161b407e8a3111fecbd4fe186cc6bc3e9aad3 SHA1 68914140c6fe00ea5258c8cd09f89a1dfd6cb6c3 SHA256 97f49a518367195d9dada6780e3555af80f3fc5231cdab1e7648375da9dde574
+AUX keynav-20091108_fix-makefile.patch 1780 RMD160 030c44a90d7f394e52bd80920928ab00e1224156 SHA1 66b53648079c11d768e14f0f6752dfbde7e82933 SHA256 281686ee09d5a9a25fc1356ee979b621ef2b4fa1b30e925fb366f00443b64541
+DIST keynav-20091108.tar.gz 34953 RMD160 c72cf86a82ad0a8491ff8018805af81857b8aff1 SHA1 812f74158456ca726f5b67c16e2582a0f30c99fc SHA256 553fb6cefe1011fe250b6c869bff4ccb4019e13f692b2f9d28663fcf38349a5c
+EBUILD keynav-20091108.ebuild 729 RMD160 a514f0ed27aa110b0d6cef8546c55e7fb2009e46 SHA1 61859f86b8b540f0c2956dc7d67feaf474a4fde4 SHA256 e84ed4f94cb37d0abad73a7c9a40b1474aec1e4fb41c31663fd1b706de385cff
+MISC ChangeLog 217 RMD160 bc792790fd3bcb61eb8862713aa3d45aff3cc6a3 SHA1 026bd549baf4fa0ba301ad981080250b1f1c35b3 SHA256 203706336b86729f3cb7b3bc9ec92253d4220fd877d2be864e42f4c682040994
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/x11-misc/keynav/files/keynav-20091108_etc-config.patch b/x11-misc/keynav/files/keynav-20091108_etc-config.patch
new file mode 100644
index 000000000..c1a2af8d8
--- /dev/null
+++ b/x11-misc/keynav/files/keynav-20091108_etc-config.patch
@@ -0,0 +1,57 @@
+--- a/keynav-20091108/keynav.c 2009-11-08 16:03:15.000000000 -0500
++++ b/keynav-20091108/keynav.c 2009-11-26 10:31:41.813671575 -0500
+@@ -285,22 +285,11 @@
+ }
+ }
+
+-void parse_config() {
+- char *homedir;
+-
+- keybindings = malloc(keybindings_size * sizeof(struct keybinding));
+-
+- defaults();
+-
+- homedir = getenv("HOME");
+-
+- if (homedir != NULL) {
+- char *rcfile = NULL;
++void parse_config_file(const char* file) {
+ FILE *fp = NULL;
+ #define LINEBUF_SIZE 512
+ char line[LINEBUF_SIZE];
+- asprintf(&rcfile, "%s/.keynavrc", homedir);
+- fp = fopen(rcfile, "r");
++ fp = fopen(file, "r");
+ if (fp != NULL) {
+ /* fopen succeeded */
+ while (fgets(line, LINEBUF_SIZE, fp) != NULL) {
+@@ -308,11 +297,27 @@
+ *(line + strlen(line) - 1) = '\0';
+ parse_config_line(line);
+ }
+- free(rcfile);
++ fclose(fp);
+ return;
+ }
++}
++
++void parse_config() {
++ char *homedir;
++
++ keybindings = malloc(keybindings_size * sizeof(struct keybinding));
++
++ defaults();
++
++ parse_config_file("/etc/keynavrc");
++ homedir = getenv("HOME");
++
++ if (homedir != NULL) {
++ char *rcfile = NULL;
++ asprintf(&rcfile, "%s/.keynavrc", homedir);
++ parse_config_file(rcfile);
++ free(rcfile);
+ }
+- fprintf(stderr, "No ~/.keynavrc found.\n");
+ }
+
+ void defaults() {
diff --git a/x11-misc/keynav/files/keynav-20091108_fix-makefile.patch b/x11-misc/keynav/files/keynav-20091108_fix-makefile.patch
new file mode 100644
index 000000000..55e9b381f
--- /dev/null
+++ b/x11-misc/keynav/files/keynav-20091108_fix-makefile.patch
@@ -0,0 +1,46 @@
+--- a/keynav-20091108/Makefile 2009-11-08 16:04:23.000000000 -0500
++++ b/keynav-20091108/Makefile 2009-11-26 11:44:05.336699998 -0500
+@@ -1,5 +1,5 @@
+-CFLAGS=`pkg-config --cflags xcb-shape xinerama x11 xtst 2> /dev/null || echo -I/usr/X11R6/include -I/usr/local/include`
+-LDFLAGS=`pkg-config --libs xcb-shape xinerama x11 xtst 2> /dev/null || echo -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXtst -lXinerama`
++CFLAGS+= $(shell pkg-config --cflags xcb-shape xinerama x11 xtst 2> /dev/null || echo -I/usr/X11R6/include -I/usr/local/include)
++LDFLAGS+= $(shell pkg-config --libs xcb-shape xinerama x11 xtst 2> /dev/null || echo -L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXtst -lXinerama)
+
+ #CFLAGS+=-g
+ OTHERFILES=README CHANGELIST COPYRIGHT \
+@@ -7,17 +7,19 @@
+
+ #MICROVERSION?=00
+
++.PHONY: all
++
+ all: keynav
+
+ clean:
+ rm *.o || true;
+- make -C xdotool clean || true
++ $(MAKE) -C xdotool clean || true
+
+ keynav: xdo.o keynav.o
+- gcc $(LDFLAGS) xdo.o keynav.o -o $@
++ $(CC) $(CFLAGS) xdo.o keynav.o -o $@ $(LDFLAGS)
+
+ xdo.o:
+- make -C xdotool xdo.o
++ $(MAKE) -C xdotool xdo.o
+ cp xdotool/xdo.o .
+
+ #NAME=keynav-`date +%Y%m%d`.$(MICROVERSION);
+--- a/keynav-20091108/xdotool/Makefile 2009-11-08 16:01:30.000000000 -0500
++++ b/keynav-20091108/xdotool/Makefile 2009-11-26 11:37:19.769691350 -0500
+@@ -13,8 +13,8 @@
+ DEFAULT_LIBS=-L/usr/X11R6/lib -L/usr/local/lib -lX11 -lXtst
+ DEFAULT_INC=-I/usr/X11R6/include -I/usr/local/include
+
+-LIBS=`pkg-config --libs x11 xtst 2> /dev/null || echo "$(DEFAULT_LIBS)"`
+-INC=`pkg-config --cflags x11 xtst 2> /dev/null || echo "$(DEFAULT_INC)"`
++LIBS=$(shell pkg-config --libs x11 xtst 2> /dev/null || echo "$(DEFAULT_LIBS)")
++INC=$(shell pkg-config --cflags x11 xtst 2> /dev/null || echo "$(DEFAULT_INC)")
+
+ CFLAGS+=$(INC)
+ LDFLAGS+=$(LIBS)
diff --git a/x11-misc/keynav/keynav-20091108.ebuild b/x11-misc/keynav/keynav-20091108.ebuild
new file mode 100644
index 000000000..c38e24f48
--- /dev/null
+++ b/x11-misc/keynav/keynav-20091108.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+inherit eutils
+
+DESCRIPTION="Make pointer-driven interfaces easier and faster for users to operate."
+HOMEPAGE="http://www.semicomplete.com/projects/keynav/"
+SRC_URI="http://semicomplete.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ x11-proto/xproto"
+DEPEND="${RDEPEND}
+ x11-libs/libX11
+ x11-libs/libXinerama
+ x11-libs/libXext
+ x11-libs/libXtst"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}_etc-config.patch"
+ epatch "${FILESDIR}/${P}_fix-makefile.patch"
+}
+
+src_install() {
+ dodoc README CHANGELIST
+ dobin keynav
+ insinto /etc
+ doins keynavrc
+}
diff --git a/x11-misc/keynav/metadata.xml b/x11-misc/keynav/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/x11-misc/keynav/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>