# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

RESTRICT="nomirror"
IUSE="lv2 gnome-canvas no-help"
DESCRIPTION="Seismix-gtk is a front-end for the Ayyi modular music production system."
HOMEPAGE="http://ayyi.org/"
SRC_URI="http://ayyi.org/files/${P}.tar.gz"
RESTRICT="nomirror"

LICENSE="GPL-2"
KEYWORDS="x86"
SLOT="0"

DEPEND=">=media-sound/jack-audio-connection-kit-0.99
	>=media-libs/libsndfile-1.0.10
	>=media-video/ffmpeg-2.8.0
	>=x11-libs/gtk+-2.6
	gnome-canvas? ( >=gnome-base/libgnomecanvas-2.0.0 >=gnome-base/librsvg-2 )
	sys-apps/dbus
	dev-libs/dbus-glib
	media-sound/ardourd
	dev-libs/libyaml
	lv2? ( media-libs/lv2 )
	!no-help? ( >=gnome-extra/gtkhtml-3 )"

src_compile() {
	local myconf

	if use lv2 ; then
		myconf="${myconf} --enable-lv2"
	fi

	if use gnome-canvas ; then
		myconf="${myconf} --enable-gnomecanvas"
	fi

	econf \
		${myconf} \
		$(use_enable lv2) \
		|| die
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc NEWS ChangeLog
}

