# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit git-r3 vala gnome2-utils fdo-mime autotools

DESCRIPTION="A GTK+ 3 app for finding and listening to internet radio stations"
HOMEPAGE="https://github.com/haecker-felix/gradio"
EGIT_REPO_URI="git://github.com/haecker-felix/gradio.git"

LICENSE="GPL-3"
SLOT="0"

RDEPEND="
	dev-libs/glib:2
	>=dev-libs/json-glib-1.0
	media-libs/gstreamer:1.0
	>=net-libs/libsoup-2.4
	>=x11-libs/gtk+-3.14
"

DEPEND="${RDEPEND}
	$(vala_depend)
"

src_prepare() {
	vala_src_prepare
	eautoreconf
	default
}

pkg_preinst() {
	gnome2_schemas_savelist
	gnome2_icon_savelist
}

pkg_postinst() {
	gnome2_schemas_update
	gnome2_icon_cache_update
	fdo-mime_desktop_database_update
}

pkg_postrm() {
	gnome2_schemas_update
	gnome2_icon_cache_update
	fdo-mime_desktop_database_update
}