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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Apr 5 13:22:45 2010 UTC (9 years, 9 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Add wrongly removed deps for video_cards. Revbump for that. Per bug #313211.
(Portage version: 2.2_rc67/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.3.0.ebuild,v 1.1 2010/04/04 16:10:25 scarabeus Exp $
4
5 EAPI="2"
6
7 inherit autotools base
8
9 DESCRIPTION="Suspend and hibernation utilities for HAL"
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 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
16 IUSE="alsa debug doc networkmanager ntp video_cards_intel video_cards_radeon"
17
18 RDEPEND="
19 !sys-power/powermgmt-base
20 sys-apps/dbus
21 >=sys-apps/util-linux-2.13
22 sys-power/pm-quirks
23 alsa? ( media-sound/alsa-utils )
24 networkmanager? ( net-misc/networkmanager )
25 ntp? ( net-misc/ntp )
26 "
27 DEPEND="doc? ( app-text/xmlto )"
28
29 PATCHES=(
30 "${FILESDIR}/${PV}-fix_autotools.patch"
31 )
32
33 src_prepare() {
34 local ignore="01grub"
35 use networkmanager || ignore+=" 55NetworkManager"
36 use ntp || ignore+=" 90clock"
37
38 use debug && echo 'PM_DEBUG="true"' > "${S}/gentoo"
39 echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${S}/gentoo"
40
41 # write makefile patch
42 base_src_prepare
43
44 eautoreconf
45 }
46
47 src_configure() {
48 econf \
49 $(use_enable doc)
50 }
51
52 src_install() {
53 base_src_install
54
55 dodoc AUTHORS ChangeLog NEWS README* TODO || die "dodoc failed"
56
57 insinto /etc/pm/config.d/
58 doins "${S}/gentoo" || die "doins failed"
59 }

  ViewVC Help
Powered by ViewVC 1.1.20