| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrelltop/gkrelltop-2.2.11-r1.ebuild,v 1.5 2012/08/30 00:28:32 lack Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit gkrellm-plugin toolchain-funcs
|
| 7 |
|
| 8 |
DESCRIPTION="a GKrellM2 plugin which displays the top three processes"
|
| 9 |
SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}.orig.tar.gz"
|
| 10 |
HOMEPAGE="http://sourceforge.net/projects/gkrelltop"
|
| 11 |
|
| 12 |
SLOT="0"
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
KEYWORDS="amd64 ppc x86"
|
| 15 |
IUSE="X"
|
| 16 |
|
| 17 |
PLUGIN_SERVER_SO=gkrelltopd.so
|
| 18 |
PLUGIN_SO=gkrelltop.so
|
| 19 |
|
| 20 |
S="${WORKDIR}/${P}.orig"
|
| 21 |
|
| 22 |
RDEPEND="dev-libs/glib:2"
|
| 23 |
DEPEND="${RDEPEND}"
|
| 24 |
|
| 25 |
src_prepare() {
|
| 26 |
sed -i \
|
| 27 |
-e "s:/usr/bin/gcc:$(tc-getCC) \$(CFLAGS):" \
|
| 28 |
-e 's/-shared/$(LDFLAGS) &/' \
|
| 29 |
Makefile || die
|
| 30 |
}
|
| 31 |
|
| 32 |
src_compile() {
|
| 33 |
use X || TARGET="server"
|
| 34 |
emake ${TARGET}
|
| 35 |
}
|
| 36 |
|
| 37 |
pkg_postinst() {
|
| 38 |
einfo "To enable the gkrelltopd server plugin, you must add the following"
|
| 39 |
einfo "line to /etc/gkrellmd.conf:"
|
| 40 |
einfo "\tplugin-enable gkrelltopd"
|
| 41 |
}
|