summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/pm-utils')
-rw-r--r--sys-power/pm-utils/Manifest2
-rw-r--r--sys-power/pm-utils/pm-utils-1.1.0.ebuild57
2 files changed, 59 insertions, 0 deletions
diff --git a/sys-power/pm-utils/Manifest b/sys-power/pm-utils/Manifest
new file mode 100644
index 0000000..a1290a9
--- /dev/null
+++ b/sys-power/pm-utils/Manifest
@@ -0,0 +1,2 @@
+DIST pm-utils-1.1.0.tar.gz 136802 RMD160 89aee0a9069fcebc82695ed2343776ac33014a64 SHA1 e1845a7552e2b2802848afed4849f4ae93bda621 SHA256 aab83b1a04cd129ee077c936bfd472084170de1222ecf2535524544ba58c749d
+EBUILD pm-utils-1.1.0.ebuild 1534 RMD160 a7bcb23e8013ed64947c5b7d034fc40b203fbf20 SHA1 2370318a490ed67b99ac77322ed870a445b74cfb SHA256 489d32c9e1447c1dd6c295d3fe4225727463cde6fbeee51bb4bbd47926f2b1da
diff --git a/sys-power/pm-utils/pm-utils-1.1.0.ebuild b/sys-power/pm-utils/pm-utils-1.1.0.ebuild
new file mode 100644
index 0000000..9e514de
--- /dev/null
+++ b/sys-power/pm-utils/pm-utils-1.1.0.ebuild
@@ -0,0 +1,57 @@
+# 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/pm-utils-1.1.0.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"
+
+ eautoreconf
+}
+
+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"
+}