EAPI=7
-QT_MINIMAL=5.12.1
-inherit kde5
+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"
-SRC_URI="https://github.com/kotelnik/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2+"
-KEYWORDS="~amd64 ~arm64"
+SLOT="5"
IUSE=""
DEPEND="
- $(add_frameworks_dep plasma)
- $(add_qt_dep qtxmlpatterns 'qml(+)' 5.12.1-r1)
+ >=dev-qt/qtxmlpatterns-5.12.1-r1:5[qml(+)]
+ >=kde-frameworks/plasma-5.60.0:5
"
RDEPEND="${DEPEND}"