2023-01-20 19:56:37 +01:00
|
|
|
# Copyright 2023 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
2023-05-03 02:11:00 +02:00
|
|
|
PYTHON_COMPAT=( python3_{10..11} )
|
2023-01-20 19:56:37 +01:00
|
|
|
inherit python-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Tooltips for Waybar"
|
|
|
|
HOMEPAGE="https://github.com/TheChymera/waybar-tooltips/"
|
|
|
|
SRC_URI="https://github.com/TheChymera/waybar-tooltips/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
IUSE="khal +weather"
|
|
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
|
|
SLOT="0"
|
|
|
|
|
2023-05-03 02:11:00 +02:00
|
|
|
# Khal is not used via python, hence no python coherence needed
|
2023-01-20 19:56:37 +01:00
|
|
|
RDEPEND="
|
|
|
|
${PYTHON_DEPS}
|
|
|
|
media-fonts/fontawesome
|
|
|
|
khal? (
|
2023-05-03 02:11:00 +02:00
|
|
|
app-misc/khal
|
2023-01-20 19:56:37 +01:00
|
|
|
)
|
|
|
|
weather? (
|
|
|
|
app-misc/ansiweather
|
|
|
|
)
|
|
|
|
"
|
|
|
|
|
|
|
|
khal_python_install() {
|
|
|
|
python_doscript "${S}/bin/waybar-tooltip-khal.py"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin "${S}/bin/waybar-tooltip-checkapp"
|
|
|
|
if use khal; then
|
|
|
|
python_foreach_impl khal_python_install
|
|
|
|
fi
|
|
|
|
if use weather; then
|
|
|
|
dobin "${S}/bin/waybar-tooltip-weather"
|
|
|
|
fi
|
|
|
|
}
|