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

Contents of /sys-power/pm-utils/pm-utils-1.2.4.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.4.ebuild,v 1.4 2009/04/26 19:19:31 ranger Exp $
4
5 EAPI="2"
6
7 inherit autotools eutils
8
9 DESCRIPTION="Suspend and hibernation utilties for HAL"
10 HOMEPAGE="http://pm-utils.freedesktop.org/"
11 SRC_URI="http://pm-utils.freedesktop.org/releases/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16 IUSE="alsa debug networkmanager ntp video_cards_intel video_cards_radeon"
17
18 RDEPEND=">=sys-apps/hal-0.5.10
19 >=sys-apps/dbus-1.0.0
20 !sys-power/powermgmt-base
21 >=sys-apps/util-linux-2.13
22 alsa? ( media-sound/alsa-utils )
23 networkmanager? ( net-misc/networkmanager )
24 ntp? ( net-misc/ntp )
25 !ppc? (
26 !video_cards_intel? ( sys-apps/vbetool )
27 video_cards_radeon? ( app-laptop/radeontool )
28 )"
29 DEPEND="!sys-power/powermgmt-base
30 app-text/xmlto"
31
32 src_prepare() {
33 local ignore="01grub"
34 use networkmanager || ignore="${ignore} 55NetworkManager"
35 use ntp || ignore="${ignore} 90clock"
36
37 touch "${S}/gentoo"
38 use debug && echo 'PM_DEBUG="true"' >> "${S}/gentoo"
39 echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${S}/gentoo"
40
41 # Be a bit more future proof, bug #260943
42 sed "s/-Werror//" -i configure.ac || die "sed failed"
43
44 eautoreconf
45 }
46
47 src_install() {
48 emake DESTDIR="${D}" install || die "emake install failed"
49
50 dodoc AUTHORS ChangeLog NEWS README* TODO || die "dodoc failed"
51
52 insinto /etc/pm/config.d/
53 doins "${S}/gentoo" || die "doins failed"
54 }

  ViewVC Help
Powered by ViewVC 1.1.20