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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon May 3 19:19:55 2010 UTC (9 years, 9 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 eva 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-power/pm-utils/pm-utils-1.2.6.1.ebuild,v 1.1 2010/01/24 21:49:56 eva Exp $
4 eva 1.1
5     EAPI="2"
6    
7     inherit autotools eutils
8    
9     DESCRIPTION="Suspend and hibernation utilities 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 ~ppc64 ~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
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     !ppc64? (
27     !video_cards_intel? ( sys-apps/vbetool )
28     video_cards_radeon? ( app-laptop/radeontool )
29     )
30     )"
31     DEPEND="!sys-power/powermgmt-base"
32     # XXX: app-text/xmlto usage is automagic
33    
34     src_prepare() {
35     local ignore="01grub"
36     use networkmanager || ignore="${ignore} 55NetworkManager"
37     use ntp || ignore="${ignore} 90clock"
38    
39     touch "${S}/gentoo"
40     use debug && echo 'PM_DEBUG="true"' >> "${S}/gentoo"
41     echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${S}/gentoo"
42    
43     # Be a bit more future proof, bug #260943
44     sed "s/-Werror//" -i configure.ac || die "sed failed"
45    
46     eautoreconf
47     }
48    
49     src_configure() {
50     econf --docdir=/usr/share/doc/${P}
51     }
52    
53     src_install() {
54     emake DESTDIR="${D}" install || die "emake install failed"
55    
56     dodoc AUTHORS ChangeLog NEWS README* TODO ||┬ádie "dodoc failed"
57    
58     insinto /etc/pm/config.d/
59     doins "${S}/gentoo" || die "doins failed"
60     }

  ViewVC Help
Powered by ViewVC 1.1.20