Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/gkrelltop/
Date: Sat, 20 Feb 2016 17:14:13
Message-Id: 1455988438.266bcc4a5846b6de969f23daa8bddb2b9911bd64.pacho@gentoo
1 commit: 266bcc4a5846b6de969f23daa8bddb2b9911bd64
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 20 17:13:11 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 20 17:13:58 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=266bcc4a
7
8 x11-plugins/gkrelltop: Fix RDEPEND (#528852)
9
10 Package-Manager: portage-2.2.27
11
12 x11-plugins/gkrelltop/gkrelltop-2.2.13-r1.ebuild | 45 ++++++++++++++++++++++++
13 1 file changed, 45 insertions(+)
14
15 diff --git a/x11-plugins/gkrelltop/gkrelltop-2.2.13-r1.ebuild b/x11-plugins/gkrelltop/gkrelltop-2.2.13-r1.ebuild
16 new file mode 100644
17 index 0000000..cedc475
18 --- /dev/null
19 +++ b/x11-plugins/gkrelltop/gkrelltop-2.2.13-r1.ebuild
20 @@ -0,0 +1,45 @@
21 +# Copyright 1999-2012 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +inherit gkrellm-plugin toolchain-funcs
27 +
28 +DESCRIPTION="a GKrellM2 plugin which displays the top three processes"
29 +SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz"
30 +HOMEPAGE="http://sourceforge.net/projects/gkrelltop"
31 +
32 +SLOT="0"
33 +LICENSE="GPL-2"
34 +KEYWORDS="~amd64 ~ppc ~x86"
35 +IUSE="X"
36 +
37 +PLUGIN_SERVER_SO=gkrelltopd.so
38 +PLUGIN_SO=gkrelltop.so
39 +
40 +S="${WORKDIR}/${P}.orig"
41 +
42 +RDEPEND="
43 + dev-libs/glib:2
44 + x11-libs/gtk+:2
45 +"
46 +DEPEND="${RDEPEND}"
47 +
48 +src_prepare() {
49 + sed -i \
50 + -e "s:/usr/bin/gcc:$(tc-getCC) \$(CFLAGS):" \
51 + -e 's/-shared/$(LDFLAGS) &/' \
52 + Makefile || die
53 + default
54 +}
55 +
56 +src_compile() {
57 + use X || TARGET="server"
58 + emake ${TARGET}
59 +}
60 +
61 +pkg_postinst() {
62 + einfo "To enable the gkrelltopd server plugin, you must add the following"
63 + einfo "line to /etc/gkrellmd.conf:"
64 + einfo "\tplugin-enable gkrelltopd"
65 +}