blob: 36694a314439568809d01ade9c21ac5356d5dba8 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdeutils/kdeutils-3.5.8.ebuild,v 1.1 2007/10/19 22:47:05 philantrop Exp $
inherit kde-dist eutils
SRC_URI="${SRC_URI}
mirror://gentoo/kdeutils-3.5-patchset-02.tar.bz2"
DESCRIPTION="KDE utilities."
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="crypt kdehiddenvisibility pbbuttonsd snmp xscreensaver"
BOTH_DEPEND="~kde-base/kdebase-${PV}
snmp? ( net-analyzer/net-snmp )
pbbuttonsd? ( app-laptop/pbbuttonsd )
dev-lang/python
dev-libs/gmp
x11-libs/libXtst"
RDEPEND="${BOTH_DEPEND}
crypt? ( app-crypt/gnupg )"
DEPEND="${BOTH_DEPEND}
xscreensaver? ( x11-libs/libXScrnSaver )
x11-libs/libX11
x11-proto/xproto
virtual/os-headers"
PATCHES="${FILESDIR}/superkaramba-3.5.7-network_sensor.patch
${FILESDIR}/klaptopdaemon-3.5.7-has_acpi_sleep.patch"
EPATCH_EXCLUDE="klaptopdaemon-3.5-suspend2+xsession-errors.diff
klaptopdaemon-3.5-lock-and-hibernate.diff"
src_unpack() {
kde_src_unpack
# Fix some desktop files
sed -i -e "s:Hidden=true:Hidden=false:" "${S}/ksim/ksim.desktop" \
|| die "sed (ksim) failed"
sed -i -e "s:\(^Type=\)Service:\1Application:" "${S}/kdelirc/irkick/irkick.desktop" \
|| die "sed (irkick) failed"
sed -i -e "s:\(^Init=.*\):X-\1:" "${S}/klaptopdaemon/applnk/laptop.desktop" \
|| die "sed (laptop) failed"
}
src_compile() {
local myconf="$(use_with snmp)
$(use_with pbbuttonsd powerbook)
$(use_with xscreensaver)
--without-xmms"
use crypt || export DO_NOT_COMPILE="${DO_NOT_COMPILE} kgpg"
kde_src_compile
}
|