summaryrefslogtreecommitdiff
blob: 9ba8bf37bc6aa892204e7fc792f70ca0d9525f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/xfce-extra/xfce4-systemload-plugin/xfce4-systemload-plugin-0.4.2-r1.ebuild,v 1.9 2011/02/04 18:01:05 ssuominen Exp $

EAPI=3
EAUTORECONF=yes
EINTLTOOLIZE=yes
inherit xfconf

DESCRIPTION="System load monitor panel plugin"
HOMEPAGE="http://www.xfce.org/"
SRC_URI="http://www.us.xfce.org/archive/src/panel-plugins/xfce4-systemload-plugin/0.4/xfce4-systemload-plugin-0.4.2.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
IUSE="debug"

RDEPEND=">=x11-libs/gtk+-2.6:2
	>=xfce-base/xfce4-panel-4.3.99.1
	>=xfce-base/libxfcegui4-4.3.99.1
	>=xfce-base/libxfce4util-4.3.99.1"
DEPEND="${RDEPEND}
	dev-util/pkgconfig
	dev-util/intltool"

pkg_setup() {
	PATCHES=(
		"${FILESDIR}"/${P}-libtool.patch
		"${FILESDIR}"/${P}-fix-tooltip-gtk2.12.patch
		)
	DOCS="AUTHORS ChangeLog NEWS README"
	XFCONF=(
		--disable-dependency-tracking
		$(use_enable debug)
		)
}

src_prepare() {
	sed -i -e "/^AC_INIT/s/systemload_version()/systemload_version/" \
		configure.in || die
	xfconf_src_prepare
}