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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Apr 21 15:03:19 2011 UTC (8 years, 9 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Backport some patches to fix issues with bluetooth/sata/... Per bug #336654.

(Portage version: 2.2.0_alpha30/cvs/Linux x86_64)

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-r1.ebuild,v 1.3 2010/12/12 16:50: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 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 ntp? ( || ( net-misc/ntp net-misc/openntpd ) )
27 amd64? ( ${vbetool} )
28 x86? ( ${vbetool} )
29 video_cards_radeon? ( app-laptop/radeontool )"
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
39 src_configure() {
40 econf \
41 --docdir=/usr/share/doc/${PF} \
42 --disable-dependency-tracking \
43 --disable-doc
44 }
45
46 src_install() {
47 emake DESTDIR="${D}" install || die
48 dodoc AUTHORS ChangeLog NEWS pm/HOWTO* README* TODO || die
49 doman man/*.{1,8} || die
50
51 insinto /etc/pm/config.d
52 doins "${T}"/gentoo || die
53
54 # NetworkManager 0.8.2 is handling suspend/resume on it's own with UPower
55 find "${D}" -type f -name 55NetworkManager -exec rm -f '{}' +
56 }

  ViewVC Help
Powered by ViewVC 1.1.20