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

EAPI="5"

EGIT_REPO_URI="git://github.com/mcallegari/${PN}.git"

if [[ ${PV} = 9999* ]]; then
        GIT_ECLASS="git-2"
fi

inherit qt4-r2 eutils $GIT_ECLASS

DESCRIPTION="QLC+ - Q Light Controller Plus to control DMX interfaces"
HOMEPAGE="http://qlcplus.sourceforge.net/index.shtml https://github.com/mcallegari/qlcplus"

if [[ $PV = 9999* ]]; then
        SRC_URI=""
else
#        SRC_URI="https://github.com/mcallegari/${PN}/archive/QLC+_${PV}.tar.gz mirror://sourceforge/qlcplus/qlcplus_${PV}.tar.gz"
	SRC_URI="mirror://sourceforge/qlcplus/qlcplus_${PV}.tar.gz"
#	S="${WORKDIR}/${PN}-QLC-_${PV}"
	S="${WORKDIR}/${PN}-GIT"
fi

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS=""
IUSE="debug"

DEPEND="dev-qt/qtgui:4
	dev-qt/qttest:4
        media-libs/alsa-lib
        dev-libs/glib:2"

DOCS="README COPYING TODO"

# Parallel builds can fail with this software :(
MAKEOPTS="-j1"