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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Feb 15 22:56:59 2009 UTC (11 years ago) by eva
Branch: MAIN
Bump to 1.2.4. Integrate service status patch and pkg-config fix.
(Portage version: 2.2_rc23/cvs/Linux x86_64)

1 eva 1.1 # Copyright 1999-2009 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.3-r1.ebuild,v 1.3 2009/02/15 11:58:00 maekke Exp $
4     EAPI="2"
5    
6     inherit eutils
7    
8     DESCRIPTION="Suspend and hibernation utilties 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="~amd64 ~ppc ~x86"
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     !video_cards_intel? ( sys-apps/vbetool )
26     video_cards_radeon? ( app-laptop/radeontool )
27     )"
28     DEPEND="!sys-power/powermgmt-base
29     app-text/xmlto"
30    
31     src_prepare() {
32     local ignore="01grub"
33     use networkmanager || ignore="${ignore} 55NetworkManager"
34     use ntp || ignore="${ignore} 90clock"
35    
36     touch "${S}/gentoo"
37     use debug && echo 'PM_DEBUG="true"' >> "${S}/gentoo"
38     echo "HOOK_BLACKLIST=\"${ignore}\"" >> "${S}/gentoo"
39     }
40    
41     src_install() {
42     emake DESTDIR="${D}" install || die "emake install failed"
43    
44     dodoc AUTHORS ChangeLog NEWS README* TODO ||┬ádie "dodoc failed"
45    
46     insinto /etc/pm/config.d/
47     doins "${S}/gentoo" || die "doins failed"
48     }

  ViewVC Help
Powered by ViewVC 1.1.20