/[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.9 - (hide annotations) (download)
Sat Nov 8 18:57:13 2014 UTC (5 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 eva 1.8 # Copyright 1999-2013 Gentoo Foundation
2 scarabeus 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.9 # $Header: /var/cvsroot/gentoo-x86/sys-power/pm-utils/pm-utils-1.4.1-r2.ebuild,v 1.8 2013/09/01 10:43:25 eva Exp $
4 scarabeus 1.1
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 blueness 1.7 KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sparc x86"
16 scarabeus 1.1 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 eva 1.8 # Remove duplicate documentation install
56     rm -r "${D}/usr/share/doc/${PN}"
57    
58 scarabeus 1.1 insinto /etc/pm/config.d
59     doins "${T}"/gentoo
60    
61     # NetworkManager 0.8.2 is handling suspend/resume on it's own with UPower
62     find "${D}" -type f -name 55NetworkManager -exec rm -f '{}' +
63     }

  ViewVC Help
Powered by ViewVC 1.1.20