# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit ecm

if [[ ${PV} = *9999* ]] ; then
	EGIT_REPO_URI="https://github.com/kotelnik/${PN}.git"
	inherit git-r3
else
	SRC_URI="https://github.com/kotelnik/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~arm64"
fi

DESCRIPTION="Plasma 5 applet for weather forecasts"
HOMEPAGE="https://store.kde.org/p/998917/
https://github.com/kotelnik/plasma-applet-weather-widget"

LICENSE="GPL-2+"
SLOT="5"
IUSE=""

DEPEND="
	dev-qt/qtxmlpatterns:5[qml]
	kde-frameworks/plasma:5
"
RDEPEND="${DEPEND}"