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

Contents of /sys-power/pm-utils/pm-utils-1.3.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Sep 28 05:24:35 2010 UTC (9 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2_rc87/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.3.0-r2.ebuild,v 1.9 2010/07/03 21:32:49 ssuominen Exp $
4
5 EAPI=2
6 inherit autotools eutils
7
8 DESCRIPTION="Suspend and hibernation utilities"
9 HOMEPAGE="http://pm-utils.freedesktop.org/"
10 SRC_URI="http://pm-utils.freedesktop.org/releases/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~arm ppc ppc64 x86"
15 IUSE="alsa debug networkmanager ntp video_cards_intel video_cards_radeon"
16
17 vbetool="!video_cards_intel? ( sys-apps/vbetool )"
18 RDEPEND="
19 !sys-power/powermgmt-base
20 sys-apps/dbus
21 >=sys-apps/util-linux-2.13
22 sys-power/pm-quirks
23 alsa? ( media-sound/alsa-utils )
24 networkmanager? ( net-misc/networkmanager )
25 ntp? ( net-misc/ntp )
26 amd64? ( ${vbetool} )
27 x86? ( ${vbetool} )
28 video_cards_radeon? ( app-laptop/radeontool )"
29 DEPEND="app-text/xmlto
30 app-text/docbook-xml-dtd:4.5"
31
32 src_prepare() {
33 local ignore="01grub"
34 use networkmanager || ignore+=" 55NetworkManager"
35 use ntp || ignore+=" 90clock"
36
37 use debug && echo 'PM_DEBUG="true"' > "${S}/gentoo"
38 echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${S}/gentoo"
39
40 epatch "${FILESDIR}"/${PV}-fix_autotools.patch \
41 "${FILESDIR}"/${PV}-on_ac_power-upower.patch
42
43 eautoreconf
44 }
45
46 src_configure() {
47 econf \
48 --docdir=/usr/share/doc/${PF}
49 }
50
51 src_install() {
52 emake DESTDIR="${D}" install || die
53 dodoc AUTHORS ChangeLog NEWS pm/HOWTO* README* TODO || die
54
55 insinto /etc/pm/config.d
56 doins gentoo || die
57 }

  ViewVC Help
Powered by ViewVC 1.1.20