/[gentoo-x86]/sys-power/pm-utils/pm-utils-1.2.3-r1.ebuild
Gentoo

Contents of /sys-power/pm-utils/pm-utils-1.2.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jan 24 21:49:56 2010 UTC (9 years, 11 months ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump, bug #295867. Clean up old revisions.
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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 $
4
5 inherit eutils
6
7 DESCRIPTION="Suspend and hibernation utilties for HAL"
8 HOMEPAGE="http://pm-utils.freedesktop.org/"
9 SRC_URI="http://pm-utils.freedesktop.org/releases/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ppc x86"
14 IUSE="alsa debug networkmanager ntp video_cards_intel video_cards_radeon"
15
16 RDEPEND=">=sys-apps/hal-0.5.10
17 >=sys-apps/dbus-1.0.0
18 !sys-power/powermgmt-base
19 >=sys-apps/util-linux-2.13
20 alsa? ( media-sound/alsa-utils )
21 networkmanager? ( net-misc/networkmanager )
22 ntp? ( net-misc/ntp )
23 !ppc? (
24 !video_cards_intel? ( sys-apps/vbetool )
25 video_cards_radeon? ( app-laptop/radeontool )
26 )"
27 DEPEND="!sys-power/powermgmt-base
28 app-text/xmlto"
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33
34 # fix status detection, bug #255431
35 epatch "${FILESDIR}/${P}-service-status.patch"
36
37 # fix pkg-config file, bug #254492
38 sed -e 's:${pm_libdir):${pm_libdir}:' -i pm-utils.pc.in || die "sed failed"
39
40 local ignore="01grub"
41 use networkmanager || ignore="${ignore} 55NetworkManager"
42 use ntp || ignore="${ignore} 90clock"
43
44 touch "${S}/gentoo"
45 use debug && echo 'PM_DEBUG="true"' >> "${S}/gentoo"
46 echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${S}/gentoo"
47 }
48
49 src_compile() {
50 econf
51 emake || die "emake failed"
52 }
53
54 src_install() {
55 emake DESTDIR="${D}" install || die "emake install failed"
56
57 dodoc AUTHORS ChangeLog NEWS README* TODO || die "dodoc failed"
58
59 insinto /etc/pm/config.d/
60 doins "${S}/gentoo"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20