summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-plugins/gkrellm-vaiobright')
-rw-r--r--x11-plugins/gkrellm-vaiobright/Manifest1
-rw-r--r--x11-plugins/gkrellm-vaiobright/files/gkrellm-vaiobright-2.5-fixinfo.patch38
-rw-r--r--x11-plugins/gkrellm-vaiobright/files/gkrellm-vaiobright-2.5-textrel.patch38
-rw-r--r--x11-plugins/gkrellm-vaiobright/gkrellm-vaiobright-2.5-r1.ebuild26
-rw-r--r--x11-plugins/gkrellm-vaiobright/metadata.xml5
5 files changed, 108 insertions, 0 deletions
diff --git a/x11-plugins/gkrellm-vaiobright/Manifest b/x11-plugins/gkrellm-vaiobright/Manifest
new file mode 100644
index 000000000000..32caff7a998a
--- /dev/null
+++ b/x11-plugins/gkrellm-vaiobright/Manifest
@@ -0,0 +1 @@
+DIST vaiobright-2.5.tar.gz 6178 SHA256 de80a3d29d00a5230958e65488846bd959244a2b3be881883b349b9c9e20a0e4
diff --git a/x11-plugins/gkrellm-vaiobright/files/gkrellm-vaiobright-2.5-fixinfo.patch b/x11-plugins/gkrellm-vaiobright/files/gkrellm-vaiobright-2.5-fixinfo.patch
new file mode 100644
index 000000000000..f2e4ac4c56e0
--- /dev/null
+++ b/x11-plugins/gkrellm-vaiobright/files/gkrellm-vaiobright-2.5-fixinfo.patch
@@ -0,0 +1,38 @@
+diff -ur vaiobright-2.5/readme vaiobright-2.5-infofix/readme
+--- vaiobright-2.5/README 2004-03-20 13:58:13.000000000 -0500
++++ vaiobright-2.5-infofix/README 2004-03-20 13:59:30.000000000 -0500
+@@ -28,6 +28,7 @@
+ bright or max dark depending on the current value.
+
+ Changelog:
++ Sat 20 Mar 2004 Fixed the "Info" tab (Billy Goto)
+ 2.5 Sun 20 Oct 2002 Removed need for external helper applications
+ entirely. SonyPI is now required, but no suid
+ or spicctrl binaries are needed.
+diff -ur vaiobright-2.5/vaiobright.c vaiobright-2.5-infofix/vaiobright.c
+--- vaiobright-2.5/vaiobright.c 2002-10-20 19:22:26.000000000 -0400
++++ vaiobright-2.5-infofix/vaiobright.c 2004-03-20 12:55:38.000000000 -0500
+@@ -422,21 +422,9 @@
+ (GtkSignalFunc) vaiobright_toggle_toggled, REVERSE_TOGGLE);
+
+ /* Help tab */
+- frame = gtk_frame_new(NULL);
+- gtk_container_border_width(GTK_CONTAINER(frame),3);
+- scrolled = gtk_scrolled_window_new(NULL,NULL);
+- gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled),
+- GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC);
+-
+- gtk_container_add(GTK_CONTAINER(frame),scrolled);
+- label = gtk_label_new("Info");
+- gtk_notebook_append_page(GTK_NOTEBOOK(tabs),frame,label);
+-
+- text = gtk_text_view_new();
+- gtk_text_view_set_editable(GTK_TEXT_VIEW(text),FALSE);
++ vbox = gkrellm_gtk_framed_notebook_page(tabs,"Info");
++ text = gkrellm_gtk_scrolled_text_view(vbox, NULL, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ vaiobright_create_help_text(text);
+- gtk_container_add(GTK_CONTAINER(scrolled),text);
+-
+
+ /* About tab */
+ plugin_about_text = g_strdup_printf(
diff --git a/x11-plugins/gkrellm-vaiobright/files/gkrellm-vaiobright-2.5-textrel.patch b/x11-plugins/gkrellm-vaiobright/files/gkrellm-vaiobright-2.5-textrel.patch
new file mode 100644
index 000000000000..4cdaa1dd4c8e
--- /dev/null
+++ b/x11-plugins/gkrellm-vaiobright/files/gkrellm-vaiobright-2.5-textrel.patch
@@ -0,0 +1,38 @@
+--- vaiobright-2.5/Makefile.orig 2002-10-20 16:52:19.000000000 -0600
++++ vaiobright-2.5/Makefile 2007-02-21 08:55:39.000000000 -0600
+@@ -1,10 +1,11 @@
+ HOME = .
+ PREFIX = /usr
+-CC = cc
++CC ?= cc
+ INCLUDE = -I./ -I${PREFIX}/include
+-OPTS = -shared `pkg-config gtk+-2.0 --cflags`
++CFLAGS += -shared `pkg-config gtk+-2.0 --cflags` -fPIC
++LDFLAGS += -shared -fPIC
+ DEFINES =
+-LIBS = `pkg-config gtk+-2.0 --cflags`
++LIBS = `pkg-config gtk+-2.0 --libs`
+
+ GKVO = vaiobright.o
+ GKV = vaiobright.so
+@@ -12,7 +13,7 @@
+ all: $(GKV)
+
+ $(GKV): $(GKVO)
+- $(CC) $(OPTS) -o $(GKV) $(GKVO) $(LIBS)
++ $(CC) $(LDFLAGS) -o $(GKV) $(GKVO) $(LIBS)
+
+ install:
+ @-echo "Copy the plugin ($(GKV) to ~/.gkrellm2/plugins/$(GKV) and restart gkrellm."
+@@ -22,9 +23,9 @@
+ @-rm *.o *.so
+
+ .c.so: $(DEPEND)
+- $(CC) $(OPTS) $(INCLUDE) $(DEFINES) -fPIC -c $*.c -o $@
++ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINES) -fPIC -c $*.c -o $@
+
+ .c.o: $(DEPEND)
+- $(CC) $(OPTS) $(INCLUDE) $(DEFINES) -c $*.c -o $@
++ $(CC) $(CFLAGS) $(INCLUDE) $(DEFINES) -c $*.c -o $@
+
+ .SUFFIXES: .c .so .o
diff --git a/x11-plugins/gkrellm-vaiobright/gkrellm-vaiobright-2.5-r1.ebuild b/x11-plugins/gkrellm-vaiobright/gkrellm-vaiobright-2.5-r1.ebuild
new file mode 100644
index 000000000000..b49a2510263a
--- /dev/null
+++ b/x11-plugins/gkrellm-vaiobright/gkrellm-vaiobright-2.5-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gkrellm-plugin
+
+IUSE=""
+
+MY_P=${P/gkrellm-/}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="Superslim VAIO LCD Brightness Control Plugin for Gkrellm"
+SRC_URI="http://nerv-un.net/~dragorn/code/${MY_P}.tar.gz"
+HOMEPAGE="http://nerv-un.net/~dragorn/"
+
+SLOT="2"
+LICENSE="GPL-2"
+KEYWORDS="-* x86"
+
+PLUGIN_SO=vaiobright.so
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-textrel.patch \
+ "${FILESDIR}"/${P}-fixinfo.patch
+}
diff --git a/x11-plugins/gkrellm-vaiobright/metadata.xml b/x11-plugins/gkrellm-vaiobright/metadata.xml
new file mode 100644
index 000000000000..a03f5d8b381b
--- /dev/null
+++ b/x11-plugins/gkrellm-vaiobright/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>desktop-dock</herd>
+</pkgmetadata>