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

EAPI=4
inherit autotools git-2

DESCRIPTION="a documentation generator for Vala source code"
HOMEPAGE="https://live.gnome.org/Valadoc"
EGIT_REPO_URI="git://git.gnome.org/valadoc"
EGIT_BOOTSTRAP="eautoreconf"

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

RDEPEND="dev-lang/vala
	>=dev-libs/glib-2.12
	>=dev-libs/libgee-0.5
	>=media-gfx/graphviz-2.16
	x11-libs/gdk-pixbuf
	>=x11-libs/gtk+-2.10"
DEPEND="${RDEPEND}
	virtual/pkgconfig"

DOCS=( AUTHORS MAINTAINERS THANKS )

src_configure() {
	VALAC="$(type -p valac)" econf --disable-static
}

src_install() {
	default
	find "${ED}" -name "*.la" -type f -exec rm -rf {} + || die
}
