1 |
commit: 254a25431ac601a33b8470bc92894fbe2ad1908f |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jun 20 19:31:19 2018 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 26 21:53:05 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=254a2543 |
7 |
|
8 |
x11-plugins/bubblemon: EAPI7, improve ebuild |
9 |
|
10 |
x11-plugins/bubblemon/bubblemon-1.46-r3.ebuild | 39 ++++++++++++++++++++++ |
11 |
.../bubblemon/files/bubblemon-1.46-asneeded.patch | 4 +-- |
12 |
.../bubblemon/files/bubblemon-1.46-gtk.patch | 8 ++--- |
13 |
.../files/bubblemon-1.46-no_display.patch | 4 +-- |
14 |
4 files changed, 47 insertions(+), 8 deletions(-) |
15 |
|
16 |
diff --git a/x11-plugins/bubblemon/bubblemon-1.46-r3.ebuild b/x11-plugins/bubblemon/bubblemon-1.46-r3.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..7650a4f7fe6 |
19 |
--- /dev/null |
20 |
+++ b/x11-plugins/bubblemon/bubblemon-1.46-r3.ebuild |
21 |
@@ -0,0 +1,39 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+inherit toolchain-funcs |
27 |
+ |
28 |
+DESCRIPTION="A fun monitoring applet for your desktop, complete with swimming duck" |
29 |
+HOMEPAGE="http://www.ne.jp/asahi/linux/timecop" |
30 |
+SRC_URI="http://www.ne.jp/asahi/linux/timecop/software/${PN}-dockapp-${PV}.tar.gz" |
31 |
+ |
32 |
+LICENSE="GPL-2" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris" |
35 |
+IUSE="" |
36 |
+ |
37 |
+RDEPEND="x11-libs/gtk+:2" |
38 |
+DEPEND="${RDEPEND} |
39 |
+ virtual/pkgconfig" |
40 |
+ |
41 |
+S=${WORKDIR}/${PN}-dockapp-${PV} |
42 |
+ |
43 |
+PATCHES=( "${FILESDIR}"/${P}-gtk.patch |
44 |
+ "${FILESDIR}"/${P}-asneeded.patch |
45 |
+ "${FILESDIR}"/${P}-no_display.patch ) |
46 |
+ |
47 |
+src_compile() { |
48 |
+ tc-export CC |
49 |
+ emake GENTOO_CFLAGS="${CFLAGS}" |
50 |
+} |
51 |
+ |
52 |
+src_install() { |
53 |
+ dobin bubblemon |
54 |
+ dodoc ChangeLog README doc/Xdefaults.sample |
55 |
+ |
56 |
+ insinto /usr/share/${PN} |
57 |
+ doins misc/*.{xcf,wav} |
58 |
+ exeinto /usr/share/${PN} |
59 |
+ doexe misc/wakwak.sh |
60 |
+} |
61 |
|
62 |
diff --git a/x11-plugins/bubblemon/files/bubblemon-1.46-asneeded.patch b/x11-plugins/bubblemon/files/bubblemon-1.46-asneeded.patch |
63 |
index 3988f379696..15f323fc471 100644 |
64 |
--- a/x11-plugins/bubblemon/files/bubblemon-1.46-asneeded.patch |
65 |
+++ b/x11-plugins/bubblemon/files/bubblemon-1.46-asneeded.patch |
66 |
@@ -1,5 +1,5 @@ |
67 |
---- Makefile |
68 |
-+++ Makefile |
69 |
+--- a/Makefile |
70 |
++++ b/Makefile |
71 |
@@ -32,14 +32,12 @@ |
72 |
OBJS = bubblemon.o |
73 |
BUBBLEMON = bubblemon |
74 |
|
75 |
diff --git a/x11-plugins/bubblemon/files/bubblemon-1.46-gtk.patch b/x11-plugins/bubblemon/files/bubblemon-1.46-gtk.patch |
76 |
index 3383c9f5bae..5a57624061c 100644 |
77 |
--- a/x11-plugins/bubblemon/files/bubblemon-1.46-gtk.patch |
78 |
+++ b/x11-plugins/bubblemon/files/bubblemon-1.46-gtk.patch |
79 |
@@ -1,5 +1,5 @@ |
80 |
---- bubblemon.c |
81 |
-+++ bubblemon.c |
82 |
+--- a/bubblemon.c |
83 |
++++ b/bubblemon.c |
84 |
@@ -58,6 +58,7 @@ |
85 |
#include <gdk/gdk.h> |
86 |
#include <gdk/gdkx.h> |
87 |
@@ -33,8 +33,8 @@ |
88 |
#ifdef KDE_DOCKAPP |
89 |
/* makes the dockapp visible inside KDE wm */ |
90 |
gdk_window_show(bm.iconwin); |
91 |
---- Makefile |
92 |
-+++ Makefile |
93 |
+--- a/Makefile |
94 |
++++ b/Makefile |
95 |
@@ -11,30 +11,49 @@ |
96 |
|
97 |
# no user serviceable parts below |
98 |
|
99 |
diff --git a/x11-plugins/bubblemon/files/bubblemon-1.46-no_display.patch b/x11-plugins/bubblemon/files/bubblemon-1.46-no_display.patch |
100 |
index f50d4f50d5e..3d52cbb43c0 100644 |
101 |
--- a/x11-plugins/bubblemon/files/bubblemon-1.46-no_display.patch |
102 |
+++ b/x11-plugins/bubblemon/files/bubblemon-1.46-no_display.patch |
103 |
@@ -1,7 +1,7 @@ |
104 |
http://bugs.gentoo.org/310399 |
105 |
|
106 |
---- bubblemon.c |
107 |
-+++ bubblemon.c |
108 |
+--- a/bubblemon.c |
109 |
++++ b/bubblemon.c |
110 |
@@ -44,7 +44,7 @@ |
111 |
*/ |
112 |
#define _GNU_SOURCE |