# Copyright 2021 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit gnome2 meson vala

DESCRIPTION="Video player and library app designed for elementary OS"
HOMEPAGE="https://github.com/elementary/videos"
SRC_URI="https://github.com/elementary/videos/archive/${PV}.tar.gz -> ${P}.tar.gz"

S=${WORKDIR}/videos-${PV}

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

DEPEND="
	$(vala_depend)
	sys-devel/gettext
	virtual/pkgconfig
"

RDEPEND="${DEPEND}
	dev-libs/glib:2
	dev-libs/granite:7
	dev-libs/libgee:0.8
	media-plugins/gst-plugins-meta:1.0
	media-libs/gstreamer:1.0
	gui-libs/gtk:4
	gui-libs/libadwaita:1
	x11-libs/gdk-pixbuf:2
"

src_prepare() {
	eapply_user
	vala_setup
}