# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Id: pmud-0.10.1-r1.ebuild,v 1.5 2002/07/20 18:52:35 gerk Exp $ S=${WORKDIR}/${P} DESCRIPTION="PowerMac power management utilities" SRC_URI="http://linuxppc.jvc.nl/${P}.tar.gz" HOMEPAGE="http://penguinppc.org/" KEYWORDS="ppc -x86 -sparc -sparc64" SLOT="0" LICENSE="GPL-2" DEPEND="sys-kernel/linux-headers X? ( x11-base/xfree )" RDEPEND="sys-apps/util-linux" src_unpack() { cd ${WORKDIR} unpack ${P}.tar.gz mv pmud-0.10 ${P} cd ${S} patch -p1 < ${FILESDIR}/pmud-file-locations.patch use X || patch -p1 <${FILESDIR}/pmud-makefile-x-gentoo.diff } src_compile() { emake CFLAGS="${CFLAGS}" || die } src_install () { doman pmud.8 snooze.8 fblevel.8 batmon.8 xmouse.8 exeinto /sbin doexe pmud wakebay snooze fblevel exeinto /usr/bin doexe Batmon exeinto /usr/X11R6/bin doexe xmouse exeinto /etc/power doexe ${FILESDIR}/pwrctl{,-local} exeinto /etc/init.d newexe ${FILESDIR}/pmud.start pmud insinto /etc doins ${FILESDIR}/power.conf }