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

Contents of /sys-power/pm-utils/pm-utils-1.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Jan 24 21:49:56 2010 UTC (10 years ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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.1.1.ebuild,v 1.3 2009/01/15 22:06:51 maekke Exp $
4
5 inherit autotools 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 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 !video_cards_intel? ( sys-apps/vbetool )
24 video_cards_radeon? ( app-laptop/radeontool )"
25 DEPEND="!sys-power/powermgmt-base"
26
27 src_unpack() {
28 local ignore="01grub"
29
30 unpack ${A}
31 cd "${S}"
32
33 touch "${S}/gentoo"
34
35 use debug && echo 'PM_DEBUG="true"' > "${S}/gentoo"
36
37 use alsa || ignore="${ignore} 60alsa"
38 use networkmanager || ignore="${ignore} 10NetworkManager"
39 use ntp || ignore="${ignore} 90clock"
40
41 echo "HOOK_BLACKLIST=\"${ignore}\"" > "${S}/gentoo"
42 }
43
44 src_compile() {
45 econf || die "econf failed"
46 emake || die "emake failed"
47 }
48
49 src_install() {
50 emake DESTDIR="${D}" install || die "emake install failed"
51
52 insinto /etc/pm/config.d/
53 doins "${S}/gentoo"
54 }

  ViewVC Help
Powered by ViewVC 1.1.20