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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jan 24 21:49:56 2010 UTC (10 years, 1 month ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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-2008 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.2.1.ebuild,v 1.2 2008/10/23 15:08:51 remi 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 app-text/xmlto"
27
28 src_unpack() {
29 local ignore="01grub"
30
31 unpack ${A}
32 cd "${S}"
33
34 touch "${S}/gentoo"
35
36 use debug && echo 'PM_DEBUG="true"' > "${S}/gentoo"
37
38 use alsa || ignore="${ignore} 60alsa"
39 use networkmanager || ignore="${ignore} 10NetworkManager"
40 use ntp || ignore="${ignore} 90clock"
41
42 echo "HOOK_BLACKLIST=\"${ignore}\"" > "${S}/gentoo"
43 }
44
45 src_compile() {
46 econf || die "econf failed"
47 emake || die "emake failed"
48 }
49
50 src_install() {
51 emake DESTDIR="${D}" install || die "emake install failed"
52
53 insinto /etc/pm/config.d/
54 doins "${S}/gentoo"
55 }

  ViewVC Help
Powered by ViewVC 1.1.20