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

EAPI=8

inherit gnome2 meson vala

DESCRIPTION="Elementary OS mail reader"
HOMEPAGE="https://github.com/elementary/mail"
SRC_URI="https://github.com/elementary/mail/archive/${PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/mail-${PV}"

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

RDEPEND="
	dev-libs/glib:2
	dev-libs/granite:0
	dev-libs/folks
	dev-libs/libgee:0.8
	gui-libs/libhandy:1
	dev-libs/libportal[gtk]
	net-libs/webkit-gtk:4.1
	gnome-extra/evolution-data-server[vala]
	x11-libs/gtk+:3"
DEPEND="${RDEPEND}
	$(vala_depend)"

src_prepare() {
	eapply_user
	vala_setup
}