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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat May 19 12:04:50 2012 UTC (2 years, 6 months ago) by blueness
Branch: MAIN
Changes since 1.6: +2 -2 lines
Keyword mips

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 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-r2.ebuild,v 1.6 2012/01/15 16:05:43 armin76 Exp $
4
5 EAPI=4
6
7 inherit eutils
8
9 DESCRIPTION="Suspend and hibernation utilities"
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="alpha amd64 arm ia64 ~mips ppc ppc64 sparc x86"
16 IUSE="alsa debug ntp video_cards_intel video_cards_radeon"
17
18 vbetool="!video_cards_intel? ( sys-apps/vbetool )"
19 RDEPEND="!<app-laptop/laptop-mode-tools-1.55-r1
20 !sys-power/powermgmt-base[-pm-utils(+)]
21 sys-apps/dbus
22 >=sys-apps/util-linux-2.13
23 sys-power/pm-quirks
24 alsa? ( media-sound/alsa-utils )
25 ntp? ( || ( net-misc/ntp net-misc/openntpd ) )
26 amd64? ( ${vbetool} )
27 x86? ( ${vbetool} )
28 video_cards_radeon? ( app-laptop/radeontool )"
29 DEPEND="${RDEPEND}"
30
31 src_prepare() {
32 local ignore="01grub"
33 use ntp || ignore+=" 90clock"
34
35 use debug && echo 'PM_DEBUG="true"' > "${T}"/gentoo
36 echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${T}"/gentoo
37
38 epatch "${FILESDIR}"/${PV}-bluetooth-sync.patch \
39 "${FILESDIR}"/${PV}-disable-sata-alpm.patch \
40 "${FILESDIR}"/${PV}-fix-intel-audio-powersave-hook.patch \
41 "${FILESDIR}"/${PV}-logging-append.patch
42
43 }
44
45 src_configure() {
46 econf \
47 --disable-doc
48 }
49
50 src_install() {
51 emake DESTDIR="${D}" install
52 dodoc AUTHORS ChangeLog NEWS pm/HOWTO* README* TODO
53 doman man/*.{1,8}
54
55 insinto /etc/pm/config.d
56 doins "${T}"/gentoo
57
58 # NetworkManager 0.8.2 is handling suspend/resume on it's own with UPower
59 find "${D}" -type f -name 55NetworkManager -exec rm -f '{}' +
60 }

  ViewVC Help
Powered by ViewVC 1.1.20