/[gentoo-x86]/x11-plugins/gkrelltop/gkrelltop-2.2.13.ebuild
Gentoo

Contents of /x11-plugins/gkrelltop/gkrelltop-2.2.13.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 2 18:19:00 2012 UTC (22 months, 2 weeks ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Drop alpha/sparc keywords

(Portage version: 2.1.11.9/cvs/Linux x86_64)

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.13.ebuild,v 1.1 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 }

  ViewVC Help
Powered by ViewVC 1.1.20