1 |
commit: ceb61b5e41f5917e79d8cfc940e619e107afdfd7 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jul 24 18:06:07 2018 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 2 20:21:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceb61b5e |
7 |
|
8 |
x11-plugins/wmsystray: EAPI7, improve ebuild |
9 |
|
10 |
.../wmsystray/files/wmsystray-0.1.1-gcc-3.4.patch | 4 +- |
11 |
x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild | 46 ++++++++++++++++++++++ |
12 |
2 files changed, 48 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/x11-plugins/wmsystray/files/wmsystray-0.1.1-gcc-3.4.patch b/x11-plugins/wmsystray/files/wmsystray-0.1.1-gcc-3.4.patch |
15 |
index 538a7ce0aa6..74f11a5ce73 100644 |
16 |
--- a/x11-plugins/wmsystray/files/wmsystray-0.1.1-gcc-3.4.patch |
17 |
+++ b/x11-plugins/wmsystray/files/wmsystray-0.1.1-gcc-3.4.patch |
18 |
@@ -1,5 +1,5 @@ |
19 |
---- wmsystray/ui.c.orig 2004-08-25 11:14:51.265675224 +0000 |
20 |
-+++ wmsystray/ui.c 2004-08-25 11:09:56.676459592 +0000 |
21 |
+--- a/wmsystray/ui.c 2004-08-25 11:14:51.265675224 +0000 |
22 |
++++ b/wmsystray/ui.c 2004-08-25 11:09:56.676459592 +0000 |
23 |
@@ -28,6 +28,7 @@ |
24 |
int width, height, pos_x, pos_y; |
25 |
Pixmap bg_pixmap; |
26 |
|
27 |
diff --git a/x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild b/x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..d48af6dcae9 |
30 |
--- /dev/null |
31 |
+++ b/x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild |
32 |
@@ -0,0 +1,46 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit desktop |
39 |
+ |
40 |
+DESCRIPTION="Window Maker dock app that provides a system tray for GNOME/KDE applications" |
41 |
+HOMEPAGE="https://github.com/bbidulock/wmsystray" |
42 |
+SRC_URI="https://github.com/bbidulock/wmsystray/releases/download/${PV}/${P}.tar.bz2" |
43 |
+ |
44 |
+RDEPEND="x11-libs/libX11 |
45 |
+ x11-libs/libXpm" |
46 |
+DEPEND="${RDEPEND}" |
47 |
+ |
48 |
+SLOT="0" |
49 |
+LICENSE="GPL-2" |
50 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
51 |
+ |
52 |
+# Let's honour Gentoo CFLAGS and use correct install program |
53 |
+# Fix for #61704, cannot compile with gcc 3.4.1: |
54 |
+# it's a trivial change and does not affect other compilers... |
55 |
+PATCHES=( "${FILESDIR}/${P}-Makefile.patch" |
56 |
+ "${FILESDIR}/${P}-gcc-3.4.patch" ) |
57 |
+ |
58 |
+DOCS=( README HACKING AUTHORS ) |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ # Fix parallel compilation |
63 |
+ sed -ie "s/make EXTRACFLAGS/make \${MAKEOPTS} EXTRACFLAGS/" Makefile || die |
64 |
+ |
65 |
+ # Honour Gentoo LDFLAGS, see bug #336296 |
66 |
+ sed -ie "s/-o wmsystray/${LDFLAGS} -o wmsystray/" wmsystray/Makefile || die |
67 |
+} |
68 |
+ |
69 |
+src_compile() { |
70 |
+ emake EXTRACFLAGS="${CFLAGS}" |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ dobin ${PN}/${PN} |
75 |
+ doman doc/${PN}.1 |
76 |
+ domenu "${FILESDIR}/${PN}.desktop" |
77 |
+ einstalldocs |
78 |
+} |