summaryrefslogtreecommitdiff
blob: 10df3b0d4a0de066e0987e40470445f96911fb32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils 

DESCRIPTION="Input event scripting utility that has special support for fancy keyboards and mice, USB dials, LIRC and USB 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"
RDEPEND="x11-libs/libX11
        dev-lang/python
        media-libs/alsa-lib
        dev-libs/boost
        libvisual? ( >=media-libs/libvisual-0.4.0 )"
DEPEND="${RDEPEND}
        x11-proto/xproto"

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() {
        econf --with-boost $(use_enable libvisual visplugin) || die "econf failed."
        emake || die "emake failed."
}
  
src_install() {
        emake DESTDIR="${D}" install || die "emake install failed."
}