summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2007-05-28 14:56:32 +0000
committerSamuli Suominen <drac@gentoo.org>2007-05-28 14:56:32 +0000
commitc16ba5eaa735af7294d947d89d2f18f91870f0d6 (patch)
treef8c509ebc6a75f147d761631bfa9f6a62170b929 /x11-misc/bubblemon
parentreally stable it and RESTRICT=test (diff)
downloadgentoo-2-c16ba5eaa735af7294d947d89d2f18f91870f0d6.tar.gz
gentoo-2-c16ba5eaa735af7294d947d89d2f18f91870f0d6.tar.bz2
gentoo-2-c16ba5eaa735af7294d947d89d2f18f91870f0d6.zip
Thanks to 6thpink and Bernard Cafarelli for porting bubblemon to GTK+-2.0 in bug 175730.
(Portage version: 2.1.2.7)
Diffstat (limited to 'x11-misc/bubblemon')
-rw-r--r--x11-misc/bubblemon/ChangeLog9
-rw-r--r--x11-misc/bubblemon/bubblemon-1.46-r1.ebuild41
-rw-r--r--x11-misc/bubblemon/files/bubblemon-1.46-gtk.patch125
-rw-r--r--x11-misc/bubblemon/files/digest-bubblemon-1.46-r13
4 files changed, 177 insertions, 1 deletions
diff --git a/x11-misc/bubblemon/ChangeLog b/x11-misc/bubblemon/ChangeLog
index c54b1399b2b4..33c28129716d 100644
--- a/x11-misc/bubblemon/ChangeLog
+++ b/x11-misc/bubblemon/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for x11-misc/bubblemon
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/bubblemon/ChangeLog,v 1.22 2007/02/21 23:34:01 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/bubblemon/ChangeLog,v 1.23 2007/05/28 14:56:32 drac Exp $
+
+*bubblemon-1.46-r1 (28 May 2007)
+
+ 28 May 2007; Samuli Suominen <drac@gentoo.org>
+ +files/bubblemon-1.46-gtk.patch, +bubblemon-1.46-r1.ebuild:
+ Thanks to 6thpink and Bernard Cafarelli for porting bubblemon to GTK+-2.0 in
+ bug 175730.
21 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
Redigest for Manifest2
diff --git a/x11-misc/bubblemon/bubblemon-1.46-r1.ebuild b/x11-misc/bubblemon/bubblemon-1.46-r1.ebuild
new file mode 100644
index 000000000000..b745a5dca26e
--- /dev/null
+++ b/x11-misc/bubblemon/bubblemon-1.46-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/bubblemon/bubblemon-1.46-r1.ebuild,v 1.1 2007/05/28 14:56:32 drac Exp $
+
+inherit eutils
+
+DESCRIPTION="A fun monitoring applet for your desktop, complete with swimming duck"
+HOMEPAGE="http://www.ne.jp/asahi/linux/timecop"
+SRC_URI="http://www.ne.jp/asahi/linux/timecop/software/${PN}-dockapp-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=x11-libs/gtk+-2"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${PN}-dockapp-${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gtk.patch
+}
+
+src_compile() {
+ emake GENTOO_CFLAGS="${CFLAGS}" || die "emake failed."
+}
+
+src_install () {
+ dobin bubblemon
+
+ dodoc ChangeLog README doc/Xdefaults.sample
+
+ insinto /usr/share/${PN}
+ doins misc/{*.xcf,*.wav}
+
+ exeinto /usr/share/${PN}
+ doexe misc/wakwak.sh
+}
diff --git a/x11-misc/bubblemon/files/bubblemon-1.46-gtk.patch b/x11-misc/bubblemon/files/bubblemon-1.46-gtk.patch
new file mode 100644
index 000000000000..e86111c924ac
--- /dev/null
+++ b/x11-misc/bubblemon/files/bubblemon-1.46-gtk.patch
@@ -0,0 +1,125 @@
+diff -Naur bubblemon-dockapp-1.46.orig/bubblemon.c bubblemon-dockapp-1.46/bubblemon.c
+--- bubblemon-dockapp-1.46.orig/bubblemon.c 2003-10-01 02:37:32.000000000 +0200
++++ bubblemon-dockapp-1.46/bubblemon.c 2007-05-28 16:11:57.000000000 +0200
+@@ -58,6 +58,7 @@
+ #include <gdk/gdk.h>
+ #include <gdk/gdkx.h>
+ #include <X11/Xresource.h>
++#include <gtk/gtk.h>
+
+ #include "include/master.xpm"
+ #include "include/bubblemon.h"
+@@ -575,7 +576,7 @@
+ attri.colormap = gdk_colormap_get_system();
+ attri.wmclass_name = "bubblemon";
+ attri.wmclass_class = "bubblemon";
+- attri.window_type = GDK_WINDOW_TOPLEVEL;
++ attri.window_type = GDK_WINDOW_CHILD;
+
+ bm.iconwin = gdk_window_new(bm.win, &attri,
+ GDK_WA_TITLE | GDK_WA_WMCLASS);
+@@ -593,7 +594,6 @@
+ wmhints.window_group = win;
+ wmhints.flags =
+ StateHint | IconWindowHint | IconPositionHint | WindowGroupHint;
+- XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
+
+ bm.gc = gdk_gc_new(bm.win);
+
+@@ -606,6 +606,7 @@
+ gdk_window_set_back_pixmap(bm.iconwin, bm.pixmap, False);
+
+ gdk_window_show(bm.win);
++ XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
+ #ifdef KDE_DOCKAPP
+ /* makes the dockapp visible inside KDE wm */
+ gdk_window_show(bm.iconwin);
+diff -Naur bubblemon-dockapp-1.46.orig/Makefile bubblemon-dockapp-1.46/Makefile
+--- bubblemon-dockapp-1.46.orig/Makefile 2003-10-04 02:22:07.000000000 +0200
++++ bubblemon-dockapp-1.46/Makefile 2007-05-28 16:12:26.000000000 +0200
+@@ -11,30 +11,49 @@
+
+ # no user serviceable parts below
+ EXTRA += $(WMAN)
++# gtk cflags and gtk lib flags
++GTK2_CFLAGS = $(shell pkg-config gtk+-2.0 --cflags)
++GTK2_LIBS = $(shell pkg-config gtk+-2.0 --libs)
++
++
+ # optimization cflags
+-CFLAGS = -O3 -ansi -Wall `gtk-config --cflags` ${EXTRA}
++#CFLAGS = -O3 -Wall ${EXTRA}
++CFLAGS = ${GENTOO_CFLAGS} ${EXTRA}
++
+ # profiling cflags
+-# CFLAGS = -ansi -Wall -pg -O3 `gtk-config --cflags` ${EXTRA} -DPRO
++# CFLAGS = -ansi -Wall -pg -O3 ${EXTRA} -DPRO
+ # test coverage cflags
+-# CFLAGS = -fprofile-arcs -ftest-coverage -Wall -ansi -g `gtk-config --cflags` ${EXTRA} -DPRO
++# CFLAGS = -fprofile-arcs -ftest-coverage -Wall -ansi -g ${EXTRA} -DPRO
+
+
+-SHELL=sh
++SHELL = sh
+ OS = $(shell uname -s)
++SRCS = bubblemon.c
+ OBJS = bubblemon.o
++BUBBLEMON = bubblemon
++
++LDFLAGS = -shared -Wl
++
++STRIP = strip
++
+ CC = gcc
++INSTALLMAN = -m 644
++
++
+
+ # special things for Linux
+ ifeq ($(OS), Linux)
+- OBJS += sys_linux.o
+- LIBS = `gtk-config --libs | sed "s/-lgtk//g"`
+- INSTALL = -m 755
++ SRCS += sys_linux.c
++ OBJS += sys_linux.o
++ INSTALL = -m 755
++ INSTALLMAN = -m 644
+ endif
+
+ # special things for FreeBSD
+ ifeq ($(OS), FreeBSD)
++ SRCS += sys_freebsd.c
+ OBJS += sys_freebsd.o
+- LIBS = `gtk-config --libs | sed "s/-lgtk//g"` -lkvm
++ LIBS = -lkvm
+ INSTALL = -c -g kmem -m 2755 -o root
+ endif
+
+@@ -62,17 +81,22 @@
+ ifeq ($(COMPILER), gcc)
+ CFLAGS=-O3 -Wall
+ endif
+- CFLAGS +=`gtk-config --cflags` ${EXTRA}
++ CFLAGS += ${EXTRA}
++ SRCS += sys_sunos.c
+ OBJS += sys_sunos.o
+- LIBS = `gtk-config --libs` -lkstat -lm
++ LIBS = -lkstat -lm
+ INSTALL = -m 755
+ endif
+
++all: $(BUBBLEMON)
+
+-all: bubblemon
++bubblemon: clean_obj
++ $(CC) $(GTK2_CFLAGS) $(CFLAGS) -o $(BUBBLEMON) \
++ $(LIBS) $(GTK2_LIBS) $(SRCS)
++ $(STRIP) $(BUBBLEMON)
+
+-bubblemon: $(OBJS)
+- $(CC) $(CFLAGS) -o bubblemon $(OBJS) $(LIBS)
++clean_obj:
++ rm -rf *.o
+
+ clean:
+ rm -f bubblemon *.o *.bb* *.gcov gmon.* *.da *~
diff --git a/x11-misc/bubblemon/files/digest-bubblemon-1.46-r1 b/x11-misc/bubblemon/files/digest-bubblemon-1.46-r1
new file mode 100644
index 000000000000..f90255b28757
--- /dev/null
+++ b/x11-misc/bubblemon/files/digest-bubblemon-1.46-r1
@@ -0,0 +1,3 @@
+MD5 f1f86fe5c725bf3a6f5fef8709992931 bubblemon-dockapp-1.46.tar.gz 40001
+RMD160 79e8be36cd11a2c6f4998cd747b6125696603a81 bubblemon-dockapp-1.46.tar.gz 40001
+SHA256 f928073d3c69b2668e89b93cdcca5f390437831aab3eac3aa2129f8713e79dbf bubblemon-dockapp-1.46.tar.gz 40001