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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Dec 12 16:50:12 2010 UTC (3 years, 8 months ago) by armin76
Branch: MAIN
Changes since 1.9: +2 -2 lines
sparc stable

(Portage version: 2.1.9.24/cvs/Linux ia64)

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.4.1.ebuild,v 1.9 2010/11/13 17:40:12 armin76 Exp $
4
5 EAPI=2
6 inherit multilib
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="alpha amd64 arm ia64 ppc ppc64 sparc x86"
15 IUSE="alsa debug networkmanager ntp video_cards_intel video_cards_radeon"
16
17 vbetool="!video_cards_intel? ( sys-apps/vbetool )"
18 DEPEND="!<app-laptop/laptop-mode-tools-1.55-r1
19 !<sys-power/powermgmt-base-1.31
20 !>=sys-power/powermgmt-base-1.31[-pm-utils]"
21 RDEPEND="${DEPEND}
22 sys-apps/dbus
23 >=sys-apps/util-linux-2.13
24 sys-power/pm-quirks
25 alsa? ( media-sound/alsa-utils )
26 networkmanager? ( net-misc/networkmanager )
27 ntp? ( || ( net-misc/ntp net-misc/openntpd ) )
28 amd64? ( ${vbetool} )
29 x86? ( ${vbetool} )
30 video_cards_radeon? ( app-laptop/radeontool )"
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"' > "${T}"/gentoo
38 echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${T}"/gentoo
39 }
40
41 src_configure() {
42 econf \
43 --docdir=/usr/share/doc/${PF} \
44 --disable-dependency-tracking \
45 --disable-doc
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" install || die
50 dodoc AUTHORS ChangeLog NEWS pm/HOWTO* README* TODO || die
51 doman man/*.{1,8} || die
52
53 insinto /etc/pm/config.d
54 doins "${T}"/gentoo || die
55 }

  ViewVC Help
Powered by ViewVC 1.1.20