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

EAPI="7"

DEADBEEF_GUI="yes"

inherit deadbeef-plugins

BITBUCKET_COMMIT="9ffd6d6dfb14"

DESCRIPTION="DeaDBeeF podcast subscription plugin"
HOMEPAGE="https://bitbucket.org/thesame/decast"
SRC_URI="https://bitbucket.org/thesame/decast/get/${BITBUCKET_COMMIT}.tar.gz \
		-> ${P}.tar.gz"

LICENSE="ZLIB"
KEYWORDS="~amd64 ~x86"

RDEPEND+=" dev-libs/libxml2:2"

DEPEND="${RDEPEND}"

S="${WORKDIR}/thesame-decast-${BITBUCKET_COMMIT}"

src_compile() {
	use gtk2 && GTKVER=2 emake
	use gtk3 && GTKVER=3 emake
}
