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

EAPI=8

VALA_MIN_API_VERSION=0.40

inherit gnome2 meson vala

DESCRIPTION="The terminal of the 21st century"
HOMEPAGE="https://github.com/elementary/terminal"
SRC_URI="https://github.com/elementary/terminal/archive/${PV}.tar.gz -> ${P}.tar.gz"

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

RDEPEND="
	dev-libs/libgee:0.8
	dev-libs/glib:2
	dev-libs/granite:0
	dev-libs/libpcre
	gui-libs/libhandy
	x11-libs/gtk+:3
	x11-libs/vte:2.91[vala]
"
DEPEND="${RDEPEND}
	$(vala_depend)
	virtual/pkgconfig
"

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

pkg_setup() {
	vala_setup
}

src_prepare() {
	eapply "${FILESDIR}/drop-tests.patch"
	eapply_user
}