# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Stacey Keast NAME="hotkeys" S=${WORKDIR}/${P} DESCRIPTION="Make use of extra buttons on newer keyboards." SRC_URI="http://ypwong.org/hotkeys/hotkeys_0.5.4.tar.gz" HOMEPAGE="http://ypwong.org/hotkeys/" DEPEND="virtual/x11 virtual/glibc dev-libs/libxml2 >=sys-libs/db-3.2.3 xosd? ( x11-libs/xosd )" src_unpack() { unpack ${A} cd ${S} zcat ${FILESDIR}/${P}-gentoo.diff.gz | patch -p0 } src_compile() { local myconf="" use xosd || myconf="--disable-xosd" ./configure --host=${CHOST} \ --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ ${myconf} || die "./configure failed" emake || die } src_install () { make DESTDIR=${D} install || die dodoc AUTHORS BUGS ChangeLog COPYING README TODO }