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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jun 23 11:55:02 2010 UTC (9 years, 7 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old
(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-r3.ebuild,v 1.3 2010/06/05 19:06:35 armin76 Exp $
4
5 EAPI=2
6 inherit autotools 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="~amd64 ~arm ~ppc ~ppc64 ~x86"
15 IUSE="alsa debug networkmanager ntp video_cards_intel video_cards_radeon"
16
17 vbetool="!video_cards_intel? ( sys-apps/vbetool )"
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 amd64? ( ${vbetool} )
27 x86? ( ${vbetool} )
28 video_cards_radeon? ( app-laptop/radeontool )"
29 DEPEND=""
30
31 src_prepare() {
32 local ignore="01grub"
33 use networkmanager || ignore+=" 55NetworkManager"
34 use ntp || ignore+=" 90clock"
35
36 use debug && echo 'PM_DEBUG="true"' > "${S}/gentoo"
37 echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${S}/gentoo"
38
39 epatch "${FILESDIR}"/${PV}-fix_autotools.patch \
40 "${FILESDIR}"/${PV}-fix_autotools-2.patch \
41 "${FILESDIR}"/${PV}-on_ac_power-upower.patch
42
43 sed -i \
44 -e "s:/usr/local/lib:/usr/$(get_libdir):" \
45 src/import-fdi-quirkdb || die
46
47 eautoreconf
48 }
49
50 src_configure() {
51 econf \
52 --docdir=/usr/share/doc/${PF} \
53 --disable-manpages
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" install || die
58 dodoc AUTHORS ChangeLog NEWS pm/HOWTO* README* TODO || die
59
60 insinto /etc/pm/config.d
61 doins gentoo || die
62 }

  ViewVC Help
Powered by ViewVC 1.1.20