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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Jul 3 21:32:49 2010 UTC (9 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
ppc64 stable wrt #318209
(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.2.5.ebuild,v 1.10 2010/06/23 11:55:02 ssuominen Exp $
4
5 EAPI=2
6 inherit autotools eutils
7
8 DESCRIPTION="Suspend and hibernation utilities for HAL"
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="ppc64"
15 IUSE="alsa debug networkmanager ntp video_cards_intel video_cards_radeon"
16
17 RDEPEND=">=sys-apps/hal-0.5.10
18 >=sys-apps/dbus-1.0.0
19 !sys-power/powermgmt-base
20 >=sys-apps/util-linux-2.13
21 alsa? ( media-sound/alsa-utils )
22 networkmanager? ( net-misc/networkmanager )
23 ntp? ( net-misc/ntp )
24 !ppc? (
25 !ppc64? (
26 !video_cards_intel? ( sys-apps/vbetool )
27 video_cards_radeon? ( app-laptop/radeontool )
28 )
29 )"
30 DEPEND="!sys-power/powermgmt-base"
31 # XXX: app-text/xmlto usage is automagic
32
33 src_prepare() {
34 local ignore="01grub"
35 use networkmanager || ignore="${ignore} 55NetworkManager"
36 use ntp || ignore="${ignore} 90clock"
37
38 touch "${S}/gentoo"
39 use debug && echo 'PM_DEBUG="true"' >> "${S}/gentoo"
40 echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${S}/gentoo"
41
42 # Be a bit more future proof, bug #260943
43 sed "s/-Werror//" -i configure.ac || die "sed failed"
44
45 eautoreconf
46 }
47
48 src_configure() {
49 econf --docdir=/usr/share/doc/${P}
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install || die "emake install failed"
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