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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu May 29 02:33:56 2008 UTC (11 years, 8 months ago) by compnerd
Branch: MAIN
version bump from upstream
(Portage version: 2.1.5.2)

1 compnerd 1.1 # Copyright 1999-2008 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-0.99.4.ebuild,v 1.2 2007/11/23 09:10:40 compnerd Exp $
4    
5     inherit autotools eutils
6    
7     DESCRIPTION="Suspend and hibernation utilties for HAL"
8     HOMEPAGE="http://pm-utils.freedesktop.org/"
9     SRC_URI="http://pm-utils.freedesktop.org/releases/${P}.tar.gz"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13     KEYWORDS="~amd64 ~x86"
14     IUSE="alsa debug networkmanager ntp video_cards_i810 video_cards_radeon"
15    
16     RDEPEND=">=sys-apps/hal-0.5.10
17     >=sys-apps/dbus-1.0.0
18     !sys-power/powermgmt-base
19     >=sys-apps/util-linux-2.13
20     alsa? ( media-sound/alsa-utils )
21     networkmanager? ( net-misc/networkmanager )
22     ntp? ( net-misc/ntp )
23     !video_cards_i810? ( sys-apps/vbetool )
24     video_cards_radeon? ( app-laptop/radeontool )"
25     DEPEND="!sys-power/powermgmt-base
26     app-text/xmlto"
27    
28     src_unpack() {
29     local ignore="01grub"
30    
31     unpack ${A}
32     cd "${S}"
33    
34     touch "${S}/gentoo"
35    
36     use debug && echo 'PM_DEBUG="true"' > "${S}/gentoo"
37    
38     use alsa || ignore="${ignore} 60alsa"
39     use networkmanager || ignore="${ignore} 10NetworkManager"
40     use ntp || ignore="${ignore} 90clock"
41    
42     echo "HOOK_BLACKLIST=\"${ignore}\"" > "${S}/gentoo"
43     }
44    
45     src_compile() {
46     econf || die "econf failed"
47     emake || die "emake failed"
48     }
49    
50     src_install() {
51     emake DESTDIR="${D}" install || die "emake install failed"
52    
53     insinto /etc/pm/config.d/
54     doins "${S}/gentoo"
55     }

  ViewVC Help
Powered by ViewVC 1.1.20