Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmfishtime/files/, x11-plugins/wmfishtime/
Date: Thu, 26 Jul 2018 20:33:29
Message-Id: 1532637052.84b538f61550bf925d55d0b89b346746642f344a.voyageur@gentoo
1 commit: 84b538f61550bf925d55d0b89b346746642f344a
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Jul 22 12:28:25 2018 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 26 20:30:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84b538f6
7
8 x11-plugins/wmfishtime: EAPI7, improve ebuild
9
10 .../files/wmfishtime-1.24-no_display.patch | 4 +--
11 x11-plugins/wmfishtime/wmfishtime-1.24-r3.ebuild | 38 ++++++++++++++++++++++
12 2 files changed, 40 insertions(+), 2 deletions(-)
13
14 diff --git a/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch b/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch
15 index a991cdab934..8ae99b049f6 100644
16 --- a/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch
17 +++ b/x11-plugins/wmfishtime/files/wmfishtime-1.24-no_display.patch
18 @@ -1,5 +1,5 @@
19 ---- fishmon.c.orig 2010-06-27 18:38:42.000000000 +0200
20 -+++ fishmon.c 2010-06-27 18:40:56.000000000 +0200
21 +--- a/fishmon.c 2010-06-27 18:38:42.000000000 +0200
22 ++++ b/fishmon.c 2010-06-27 18:40:56.000000000 +0200
23 @@ -152,6 +152,8 @@
24
25 int main(int argc, char **argv)
26
27 diff --git a/x11-plugins/wmfishtime/wmfishtime-1.24-r3.ebuild b/x11-plugins/wmfishtime/wmfishtime-1.24-r3.ebuild
28 new file mode 100644
29 index 00000000000..05564bfd188
30 --- /dev/null
31 +++ b/x11-plugins/wmfishtime/wmfishtime-1.24-r3.ebuild
32 @@ -0,0 +1,38 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit toolchain-funcs
38 +
39 +DESCRIPTION="A fun clock applet for your desktop featuring swimming fish"
40 +HOMEPAGE="http://www.ne.jp/asahi/linux/timecop"
41 +SRC_URI="http://www.ne.jp/asahi/linux/timecop/software/${P}.tar.gz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
46 +
47 +RDEPEND="x11-libs/gtk+:2
48 + x11-libs/libX11"
49 +DEPEND="${RDEPEND}"
50 +BDEPEND="virtual/pkgconfig"
51 +
52 +PATCHES=( "${FILESDIR}"/${P}-gtk.patch
53 + "${FILESDIR}"/${P}-no_display.patch )
54 +
55 +DOCS=( ALL_I_GET_IS_A_GRAY_BOX AUTHORS ChangeLog CODING README )
56 +
57 +src_prepare() {
58 + default
59 + sed -i -e "s/\$(CC)/& \$(LDFLAGS)/" Makefile || die #331891
60 +}
61 +
62 +src_compile() {
63 + emake CC="$(tc-getCC)"
64 +}
65 +
66 +src_install() {
67 + dobin ${PN}
68 + doman ${PN}.1
69 + einstalldocs
70 +}