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

EAPI=6

inherit meson
[ "${PV}" = 9999 ] && inherit git-r3

# RESTRICT="mirror"

DESCRIPTION="Feature rich terminal emulator using the Enlightenment Foundation Libraries"
HOMEPAGE="https://www.enlightenment.org/p.php?p=about/terminology"
EGIT_REPO_URI="https://github.com/flatpak/libportal"
[ "${PV}" = 9999 ] || SRC_URI="https://github.com/flatpak/libportal/releases/download/${PV}/${P}.tar.xz"

LICENSE="BSD-2"
[ "${PV}" = 9999 ] || KEYWORDS="~amd64 ~x86"
SLOT="0"

IUSE="doc test"

RDEPEND=""
DEPEND="${RDEPEND}
	doc? ( dev-util/gtk-doc )"

# S="${WORKDIR}/${P/_/-}"

src_configure() {
	local emesonargs=(
		$(usex doc "-Dgtk_doc=true" "" )
		$(usex test "-Dbuild-portal-test=true" "" )
	)
	meson_src_configure
}

src_install() {
	meson_src_install
}