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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jun 23 14:11:07 2014 UTC (5 years, 8 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +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-r4.ebuild,v 1.1 2014/06/04 20:46:47 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}-fix-alpm-typo.patch \
45 "${FILESDIR}"/${PV}-inhibit-on-right-status.patch \
46 "${FILESDIR}"/${PV}-ignore-led-failure.patch \
47 "${FILESDIR}"/${PV}-run-hook-logging.patch \
48 "${FILESDIR}"/${PV}-suspend-hybrid.patch \
49 "${FILESDIR}"/${PV}-uswsusp-hibernate-mode.patch \
50 "${FILESDIR}"/${PV}-xfs_buffer_arguments.patch
51 }
52
53 src_configure() {
54 econf --disable-doc
55 }
56
57 src_install() {
58 default
59 doman man/*.{1,8}
60
61 # Remove duplicate documentation install
62 rm -r "${D}"/usr/share/doc/${PN}
63
64 insinto /etc/pm/config.d
65 doins "${T}"/gentoo
66
67 insinto /usr/$(get_libdir)/pm-utils/sleep.d
68 doins "${FILESDIR}"/sleep.d/50unload_alx
69
70 insinto /usr/$(get_libdir)/pm-utils/power.d
71 doins "${FILESDIR}"/power.d/{pci_devices,usb_bluetooth}
72
73 # No longer required with current networkmanager (rm -f from debian/rules)
74 rm -f "${D}"/usr/$(get_libdir)/${PN}/sleep.d/55NetworkManager
75
76 # No longer required with current kernels (rm -f from debian/rules)
77 rm -f "${D}"/usr/$(get_libdir)/${PN}/sleep.d/49bluetooth
78
79 # Punt HAL related file wrt #401257 (rm -f from debian/rules)
80 rm -f "${D}"/usr/$(get_libdir)/${PN}/power.d/hal-cd-polling
81 }

  ViewVC Help
Powered by ViewVC 1.1.20