diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2008-05-12 20:24:40 -0700 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2008-05-12 20:32:14 -0700 |
commit | c76e7fa3f523f368c65c235fa310bb962b3b2a4a (patch) | |
tree | 378f3b62fbee171478f93ee2d760aec8eac324eb /sys-power/pm-utils/pm-utils-1.1.1.ebuild | |
parent | version bump from upstream ... with new goodies (diff) | |
download | gentopia-c76e7fa3f523f368c65c235fa310bb962b3b2a4a.tar.gz gentopia-c76e7fa3f523f368c65c235fa310bb962b3b2a4a.tar.bz2 gentopia-c76e7fa3f523f368c65c235fa310bb962b3b2a4a.zip |
version bump from upstream
Diffstat (limited to 'sys-power/pm-utils/pm-utils-1.1.1.ebuild')
-rw-r--r-- | sys-power/pm-utils/pm-utils-1.1.1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sys-power/pm-utils/pm-utils-1.1.1.ebuild b/sys-power/pm-utils/pm-utils-1.1.1.ebuild new file mode 100644 index 0000000..e9062e0 --- /dev/null +++ b/sys-power/pm-utils/pm-utils-1.1.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +inherit autotools eutils + +DESCRIPTION="Suspend and hibernation utilties for HAL" +HOMEPAGE="http://pm-utils.freedesktop.org/" +SRC_URI="http://pm-utils.freedesktop.org/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa debug networkmanager ntp video_cards_intel video_cards_i810 video_cards_radeon" + +RDEPEND=">=sys-apps/hal-0.5.10 + >=sys-apps/dbus-1.0.0 + !sys-power/powermgmt-base + >=sys-apps/util-linux-2.13 + alsa? ( media-sound/alsa-utils ) + networkmanager? ( net-misc/networkmanager ) + ntp? ( net-misc/ntp ) + !video_cards_i810? ( sys-apps/vbetool ) + !video_cards_intel? ( sys-apps/vbetool ) + video_cards_radeon? ( app-laptop/radeontool )" +DEPEND="!sys-power/powermgmt-base" + +src_unpack() { + local ignore="01grub" + + unpack ${A} + cd "${S}" + + touch "${S}/gentoo" + + use debug && echo 'PM_DEBUG="true"' > "${S}/gentoo" + + use alsa || ignore="${ignore} 60alsa" + use networkmanager || ignore="${ignore} 10NetworkManager" + use ntp || ignore="${ignore} 90clock" + + echo "HOOK_BLACKLIST=\"${ignore}\"" > "${S}/gentoo" +} + +src_compile() { + econf || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + insinto /etc/pm/config.d/ + doins "${S}/gentoo" +} |