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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Apr 17 11:37:20 2010 UTC (9 years, 10 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Try UPower for on_ac_power before DeviceKit-power and HAL wrt #315663.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 scarabeus 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.3 # $Header: /var/cvsroot/gentoo-x86/sys-power/pm-utils/pm-utils-1.3.0-r1.ebuild,v 1.2 2010/04/07 21:55:11 scarabeus Exp $
4 scarabeus 1.1
5     EAPI="2"
6    
7     inherit autotools base
8    
9 scarabeus 1.2 DESCRIPTION="Suspend and hibernation utilities"
10 scarabeus 1.1 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="~amd64 ~ppc ~ppc64 ~x86"
16     IUSE="alsa debug doc networkmanager ntp video_cards_intel video_cards_radeon"
17    
18     vbetool="!video_cards_intel? ( sys-apps/vbetool )"
19     RDEPEND="
20     !sys-power/powermgmt-base
21     sys-apps/dbus
22     >=sys-apps/util-linux-2.13
23     sys-power/pm-quirks
24     alsa? ( media-sound/alsa-utils )
25     networkmanager? ( net-misc/networkmanager )
26     ntp? ( net-misc/ntp )
27     amd64? ( ${vbetool} )
28     x86? ( ${vbetool} )
29     video_cards_radeon? ( app-laptop/radeontool )
30     "
31     DEPEND="doc? ( app-text/xmlto )"
32    
33     PATCHES=(
34     "${FILESDIR}/${PV}-fix_autotools.patch"
35     )
36    
37     src_prepare() {
38     local ignore="01grub"
39     use networkmanager || ignore+=" 55NetworkManager"
40     use ntp || ignore+=" 90clock"
41    
42     use debug && echo 'PM_DEBUG="true"' > "${S}/gentoo"
43     echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${S}/gentoo"
44    
45     # write makefile patch
46     base_src_prepare
47    
48     eautoreconf
49     }
50    
51     src_configure() {
52     econf \
53     $(use_enable doc)
54     }
55    
56     src_install() {
57     base_src_install
58    
59     dodoc AUTHORS ChangeLog NEWS README* TODO ||┬ádie "dodoc failed"
60    
61     insinto /etc/pm/config.d/
62     doins "${S}/gentoo" || die "doins failed"
63     }

  ViewVC Help
Powered by ViewVC 1.1.20