blob: bd2bafec447b75c9cb28adc32caea6c958769bb3 (
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
58
59
60
61
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/pm-utils/pm-utils-1.2.3-r1.ebuild,v 1.4 2009/02/16 14:20:36 chainsaw Exp $
inherit eutils
DESCRIPTION="Suspend and hibernation utilties for HAL"
HOMEPAGE="http://pm-utils.freedesktop.org/"
SRC_URI="http://pm-utils.freedesktop.org/releases/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="alsa debug networkmanager ntp video_cards_intel video_cards_radeon"
RDEPEND=">=sys-apps/hal-0.5.10
>=sys-apps/dbus-1.0.0
!sys-power/powermgmt-base
>=sys-apps/util-linux-2.13
alsa? ( media-sound/alsa-utils )
networkmanager? ( net-misc/networkmanager )
ntp? ( net-misc/ntp )
!ppc? (
!video_cards_intel? ( sys-apps/vbetool )
video_cards_radeon? ( app-laptop/radeontool )
)"
DEPEND="!sys-power/powermgmt-base
app-text/xmlto"
src_unpack() {
unpack ${A}
cd "${S}"
# fix status detection, bug #255431
epatch "${FILESDIR}/${P}-service-status.patch"
# fix pkg-config file, bug #254492
sed -e 's:${pm_libdir):${pm_libdir}:' -i pm-utils.pc.in || die "sed failed"
local ignore="01grub"
use networkmanager || ignore="${ignore} 55NetworkManager"
use ntp || ignore="${ignore} 90clock"
touch "${S}/gentoo"
use debug && echo 'PM_DEBUG="true"' >> "${S}/gentoo"
echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${S}/gentoo"
}
src_compile() {
econf
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README* TODO || die "dodoc failed"
insinto /etc/pm/config.d/
doins "${S}/gentoo"
}
|