Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/bubblemon/files: bubblemon-1.46-gtk.patch bubblemon-1.46-no_display.patch bubblemon-1.46-asneeded.patch
Date: Sat, 03 Dec 2011 16:02:08
Message-Id: 20111203160152.164E52005C@flycatcher.gentoo.org
1 ssuominen 11/12/03 16:01:52
2
3 Added: bubblemon-1.46-gtk.patch
4 bubblemon-1.46-no_display.patch
5 bubblemon-1.46-asneeded.patch
6 Log:
7 Move from x11-misc to x11-plugins. Delete the SLOT with dependency of (conflicting) libpanelapplet-2.0.
8
9 (Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.1 x11-plugins/bubblemon/files/bubblemon-1.46-gtk.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/bubblemon/files/bubblemon-1.46-gtk.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/bubblemon/files/bubblemon-1.46-gtk.patch?rev=1.1&content-type=text/plain
16
17 Index: bubblemon-1.46-gtk.patch
18 ===================================================================
19 --- bubblemon.c
20 +++ bubblemon.c
21 @@ -58,6 +58,7 @@
22 #include <gdk/gdk.h>
23 #include <gdk/gdkx.h>
24 #include <X11/Xresource.h>
25 +#include <gtk/gtk.h>
26
27 #include "include/master.xpm"
28 #include "include/bubblemon.h"
29 @@ -575,7 +576,7 @@
30 attri.colormap = gdk_colormap_get_system();
31 attri.wmclass_name = "bubblemon";
32 attri.wmclass_class = "bubblemon";
33 - attri.window_type = GDK_WINDOW_TOPLEVEL;
34 + attri.window_type = GDK_WINDOW_CHILD;
35
36 bm.iconwin = gdk_window_new(bm.win, &attri,
37 GDK_WA_TITLE | GDK_WA_WMCLASS);
38 @@ -593,7 +594,6 @@
39 wmhints.window_group = win;
40 wmhints.flags =
41 StateHint | IconWindowHint | IconPositionHint | WindowGroupHint;
42 - XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
43
44 bm.gc = gdk_gc_new(bm.win);
45
46 @@ -606,6 +606,7 @@
47 gdk_window_set_back_pixmap(bm.iconwin, bm.pixmap, False);
48
49 gdk_window_show(bm.win);
50 + XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
51 #ifdef KDE_DOCKAPP
52 /* makes the dockapp visible inside KDE wm */
53 gdk_window_show(bm.iconwin);
54 --- Makefile
55 +++ Makefile
56 @@ -11,30 +11,49 @@
57
58 # no user serviceable parts below
59 EXTRA += $(WMAN)
60 +# gtk cflags and gtk lib flags
61 +GTK2_CFLAGS = $(shell pkg-config gtk+-2.0 --cflags)
62 +GTK2_LIBS = $(shell pkg-config gtk+-2.0 --libs)
63 +
64 +
65 # optimization cflags
66 -CFLAGS = -O3 -ansi -Wall `gtk-config --cflags` ${EXTRA}
67 +#CFLAGS = -O3 -Wall ${EXTRA}
68 +CFLAGS = ${GENTOO_CFLAGS} ${EXTRA}
69 +
70 # profiling cflags
71 -# CFLAGS = -ansi -Wall -pg -O3 `gtk-config --cflags` ${EXTRA} -DPRO
72 +# CFLAGS = -ansi -Wall -pg -O3 ${EXTRA} -DPRO
73 # test coverage cflags
74 -# CFLAGS = -fprofile-arcs -ftest-coverage -Wall -ansi -g `gtk-config --cflags` ${EXTRA} -DPRO
75 +# CFLAGS = -fprofile-arcs -ftest-coverage -Wall -ansi -g ${EXTRA} -DPRO
76
77
78 -SHELL=sh
79 +SHELL = sh
80 OS = $(shell uname -s)
81 +SRCS = bubblemon.c
82 OBJS = bubblemon.o
83 +BUBBLEMON = bubblemon
84 +
85 +LDFLAGS = -shared -Wl
86 +
87 +STRIP = strip
88 +
89 CC = gcc
90 +INSTALLMAN = -m 644
91 +
92 +
93
94 # special things for Linux
95 ifeq ($(OS), Linux)
96 - OBJS += sys_linux.o
97 - LIBS = `gtk-config --libs | sed "s/-lgtk//g"`
98 - INSTALL = -m 755
99 + SRCS += sys_linux.c
100 + OBJS += sys_linux.o
101 + INSTALL = -m 755
102 + INSTALLMAN = -m 644
103 endif
104
105 # special things for FreeBSD
106 ifeq ($(OS), FreeBSD)
107 + SRCS += sys_freebsd.c
108 OBJS += sys_freebsd.o
109 - LIBS = `gtk-config --libs | sed "s/-lgtk//g"` -lkvm
110 + LIBS = -lkvm
111 INSTALL = -c -g kmem -m 2755 -o root
112 endif
113
114 @@ -62,17 +81,21 @@
115 ifeq ($(COMPILER), gcc)
116 CFLAGS=-O3 -Wall
117 endif
118 - CFLAGS +=`gtk-config --cflags` ${EXTRA}
119 + CFLAGS += ${EXTRA}
120 + SRCS += sys_sunos.c
121 OBJS += sys_sunos.o
122 - LIBS = `gtk-config --libs` -lkstat -lm
123 + LIBS = -lkstat -lm
124 INSTALL = -m 755
125 endif
126
127 +all: $(BUBBLEMON)
128
129 -all: bubblemon
130 +bubblemon: clean_obj
131 + $(CC) $(GTK2_CFLAGS) $(CFLAGS) -o $(BUBBLEMON) \
132 + $(LIBS) $(GTK2_LIBS) $(SRCS)
133
134 -bubblemon: $(OBJS)
135 - $(CC) $(CFLAGS) -o bubblemon $(OBJS) $(LIBS)
136 +clean_obj:
137 + rm -rf *.o
138
139 clean:
140 rm -f bubblemon *.o *.bb* *.gcov gmon.* *.da *~
141
142
143
144 1.1 x11-plugins/bubblemon/files/bubblemon-1.46-no_display.patch
145
146 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/bubblemon/files/bubblemon-1.46-no_display.patch?rev=1.1&view=markup
147 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/bubblemon/files/bubblemon-1.46-no_display.patch?rev=1.1&content-type=text/plain
148
149 Index: bubblemon-1.46-no_display.patch
150 ===================================================================
151 http://bugs.gentoo.org/310399
152
153 --- bubblemon.c
154 +++ bubblemon.c
155 @@ -44,7 +44,7 @@
156 */
157 #define _GNU_SOURCE
158
159 -#define VERSION "1.41"
160 +#define VERSION "1.46"
161
162 /* general includes */
163 #include <stdio.h>
164 @@ -276,6 +276,8 @@
165
166 int main(int argc, char **argv)
167 {
168 + /* This is needed to proper dockapp work on >=GTK+-2.18 */
169 + setenv("GDK_NATIVE_WINDOWS", "1", 0);
170 char execute[256];
171 int proximity = 0;
172 int ch;
173 @@ -607,10 +609,7 @@
174
175 gdk_window_show(bm.win);
176 XSetWMHints(GDK_WINDOW_XDISPLAY(bm.win), win, &wmhints);
177 -#ifdef KDE_DOCKAPP
178 - /* makes the dockapp visible inside KDE wm */
179 gdk_window_show(bm.iconwin);
180 -#endif
181
182 /* We begin with zero bubbles */
183 bm.n_bubbles = 0;
184
185
186
187 1.1 x11-plugins/bubblemon/files/bubblemon-1.46-asneeded.patch
188
189 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/bubblemon/files/bubblemon-1.46-asneeded.patch?rev=1.1&view=markup
190 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/bubblemon/files/bubblemon-1.46-asneeded.patch?rev=1.1&content-type=text/plain
191
192 Index: bubblemon-1.46-asneeded.patch
193 ===================================================================
194 --- Makefile
195 +++ Makefile
196 @@ -32,14 +32,12 @@
197 OBJS = bubblemon.o
198 BUBBLEMON = bubblemon
199
200 -LDFLAGS = -shared -Wl
201 -
202 STRIP = strip
203
204 -CC = gcc
205 +CC ?= gcc
206 INSTALLMAN = -m 644
207
208 -
209 +LIBS = -lX11
210
211 # special things for Linux
212 ifeq ($(OS), Linux)
213 @@ -91,8 +89,8 @@
214 all: $(BUBBLEMON)
215
216 bubblemon: clean_obj
217 - $(CC) $(GTK2_CFLAGS) $(CFLAGS) -o $(BUBBLEMON) \
218 - $(LIBS) $(GTK2_LIBS) $(SRCS)
219 + $(CC) $(LDFLAGS) $(GTK2_CFLAGS) $(CFLAGS) -o $(BUBBLEMON) \
220 + $(SRCS) $(LIBS) $(GTK2_LIBS)
221
222 clean_obj:
223 rm -rf *.o