/[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.3 - (hide annotations) (download)
Thu Apr 23 18:47:47 2009 UTC (10 years, 10 months ago) by maekke
Branch: MAIN
Changes since 1.2: +2 -2 lines
amd64/x86 stable, bug #266698
(Portage version: 2.1.6.11/cvs/Linux x86_64)

1 eva 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 maekke 1.3 # $Header: /var/cvsroot/gentoo-x86/sys-power/pm-utils/pm-utils-1.2.4.ebuild,v 1.2 2009/03/22 12:34:52 eva Exp $
4 eva 1.2
5 eva 1.1 EAPI="2"
6    
7 eva 1.2 inherit autotools eutils
8 eva 1.1
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 maekke 1.3 KEYWORDS="amd64 ~ppc x86"
16 eva 1.1 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 eva 1.2
41     # Be a bit more future proof, bug #260943
42     sed "s/-Werror//" -i configure.ac || die "sed failed"
43    
44     eautoreconf
45 eva 1.1 }
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