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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jun 23 14:11:07 2014 UTC (5 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

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

1 # Copyright 1999-2014 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-r3.ebuild,v 1.2 2014/06/04 20:02:07 ssuominen Exp $
4
5 EAPI=5
6 inherit eutils 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 ~mips ~ppc ~ppc64 ~sparc ~x86"
15 IUSE="alsa debug ntp video_cards_intel video_cards_radeon"
16
17 vbetool="!video_cards_intel? ( sys-apps/vbetool )"
18 RDEPEND="!<app-laptop/laptop-mode-tools-1.55-r1
19 !sys-power/powermgmt-base[-pm-utils(+)]
20 sys-apps/dbus
21 >=sys-apps/util-linux-2.13
22 sys-power/pm-quirks
23 alsa? ( media-sound/alsa-utils )
24 ntp? ( || ( net-misc/ntp net-misc/openntpd ) )
25 amd64? ( ${vbetool} )
26 x86? ( ${vbetool} )
27 video_cards_radeon? ( app-laptop/radeontool )"
28 DEPEND="${RDEPEND}"
29
30 DOCS="AUTHORS ChangeLog NEWS pm/HOWTO* README* TODO"
31
32 src_prepare() {
33 local ignore="01grub"
34 use ntp || ignore+=" 90clock"
35
36 use debug && echo 'PM_DEBUG="true"' > "${T}"/gentoo
37 echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${T}"/gentoo
38
39 epatch \
40 "${FILESDIR}"/${PV}-bluetooth-sync.patch \
41 "${FILESDIR}"/${PV}-disable-sata-alpm.patch \
42 "${FILESDIR}"/${PV}-fix-intel-audio-powersave-hook.patch \
43 "${FILESDIR}"/${PV}-logging-append.patch \
44 "${FILESDIR}"/${PV}-inhibit-on-right-status.patch
45
46 }
47
48 src_configure() {
49 econf --disable-doc
50 }
51
52 src_install() {
53 default
54 doman man/*.{1,8}
55
56 # Remove duplicate documentation install
57 rm -r "${D}"/usr/share/doc/${PN}
58
59 insinto /etc/pm/config.d
60 doins "${T}"/gentoo
61
62 # NetworkManager 0.8.2 is handling suspend/resume on it's own with UPower
63 find "${D}" -type f -name 55NetworkManager -exec rm -f '{}' +
64
65 # Punt HAL related file wrt #401257 with `rm -f` copied from what Debian does
66 rm -f "${D}"/usr/$(get_libdir)/${PN}/power.d/hal-cd-polling
67 }

  ViewVC Help
Powered by ViewVC 1.1.20