summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Charles Campbell <warpzero@gentoo.org>2004-03-16 04:52:22 +0000
committerJoshua Charles Campbell <warpzero@gentoo.org>2004-03-16 04:52:22 +0000
commit5d4a397ab6101e7b39b4cb4bebce07dc2ae28eee (patch)
treea50cd494ac2934bc45368d23ef6daaf34137efc1 /app-laptop/pmud/pmud-0.10.1-r3.ebuild
parentAdded ~mips keyword. (diff)
downloadhistorical-5d4a397ab6101e7b39b4cb4bebce07dc2ae28eee.tar.gz
historical-5d4a397ab6101e7b39b4cb4bebce07dc2ae28eee.tar.bz2
historical-5d4a397ab6101e7b39b4cb4bebce07dc2ae28eee.zip
app-laptop moves for ppc
Diffstat (limited to 'app-laptop/pmud/pmud-0.10.1-r3.ebuild')
-rw-r--r--app-laptop/pmud/pmud-0.10.1-r3.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/app-laptop/pmud/pmud-0.10.1-r3.ebuild b/app-laptop/pmud/pmud-0.10.1-r3.ebuild
new file mode 100644
index 000000000000..439fcafd6c35
--- /dev/null
+++ b/app-laptop/pmud/pmud-0.10.1-r3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/pmud/pmud-0.10.1-r3.ebuild,v 1.1 2004/03/16 04:50:41 warpzero Exp $
+
+inherit eutils
+
+DESCRIPTION="PowerMac power management utilities"
+HOMEPAGE="http://penguinppc.org/"
+SRC_URI="http://linuxppc.jvc.nl/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~ppc"
+IUSE="X"
+
+DEPEND="sys-kernel/linux-headers
+ X? ( virtual/x11 )"
+RDEPEND="sys-apps/util-linux"
+
+S=${WORKDIR}/${PN}-0.10
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-deb-fcntl.patch
+ epatch ${FILESDIR}/pmud-file-locations.patch
+ use X || epatch ${FILESDIR}/pmud-makefile-x-gentoo.diff
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ doman pmud.8 snooze.8 fblevel.8
+ into /
+ dosbin pmud wakebay snooze fblevel || die "dosbin failed"
+ exeinto /etc/power
+ doexe ${FILESDIR}/pwrctl{,-local}
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/pmud.start pmud
+ insinto /etc
+ doins ${FILESDIR}/power.conf
+ if use X ; then
+ doman batmon.8 xmouse.8
+ into /usr
+ dobin Batmon || die "Batmon failed"
+ exeinto /usr/X11R6/bin
+ doexe xmouse || die "xmouse failed"
+ fi
+}