# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Gizmo Daemon is a powerful input event scripting utility that has special support for fancy keyboards and mice, USB dials, remotes, and more!" HOMEPAGE="http://gizmod.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="x86 amd64" IUSE="libvisual" DEPEND="virtual/x11 dev-lang/python media-libs/alsa-lib dev-libs/boost libvisual? ( >=media-libs/libvisual-0.4.0 )" pkg_setup() { if ! built_with_use dev-libs/boost threads ; then eerror "boost was not merged with the threads" eerror "USE flag. Gizmo Daemon requires boost be" eerror "built with this flag" die "boost missing threads support" fi } src_compile() { local myconf myconf="${myconf} --with-boost" if use libvisual ; then myconf="${myconf} --enable-visplugin" fi econf \ ${myconf} \ || die "configure failed" emake || die "make failed" } src_install() { make DESTDIR=${D} install || die }