From 830447900fa55cc38f60e6746ac18272ecb8b71b Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Wed, 31 Aug 2022 16:33:20 -0400 Subject: [PATCH] gui-apps/waybar-tooltips: new package, add 0.0.1 Signed-off-by: Horea Christian --- gui-apps/waybar-tooltips/Manifest | 1 + gui-apps/waybar-tooltips/metadata.xml | 15 +++++++ .../waybar-tooltips-0.0.1.ebuild | 40 +++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 gui-apps/waybar-tooltips/Manifest create mode 100644 gui-apps/waybar-tooltips/metadata.xml create mode 100644 gui-apps/waybar-tooltips/waybar-tooltips-0.0.1.ebuild diff --git a/gui-apps/waybar-tooltips/Manifest b/gui-apps/waybar-tooltips/Manifest new file mode 100644 index 0000000..482987b --- /dev/null +++ b/gui-apps/waybar-tooltips/Manifest @@ -0,0 +1 @@ +DIST waybar-tooltips-0.0.1.tar.gz 14442 BLAKE2B 655f70dab366993074c07579ccb4cef9dbb4e84b0facc3870a76695c49f92f10d9bc2c36e3a333eeab778e1bd185c111ec3c1682e82506d3684d9cc49d0bce4b SHA512 5605b6a57b97c039945b4d2acce20e767117c07a6dfec9c68717c0a6968ad098ad5888a7a84cb3188fd3c2767515a08134a1689336a7bd9018e9444e49260d53 diff --git a/gui-apps/waybar-tooltips/metadata.xml b/gui-apps/waybar-tooltips/metadata.xml new file mode 100644 index 0000000..304840e --- /dev/null +++ b/gui-apps/waybar-tooltips/metadata.xml @@ -0,0 +1,15 @@ + + + + + gentoo@chymera.eu + Horea Christian + + + TheChymera/waybar-tooltips + + + Calendar tooltip via khal + Weather tooltip via wttr.in and ansiweather fallback + + diff --git a/gui-apps/waybar-tooltips/waybar-tooltips-0.0.1.ebuild b/gui-apps/waybar-tooltips/waybar-tooltips-0.0.1.ebuild new file mode 100644 index 0000000..a26a4c0 --- /dev/null +++ b/gui-apps/waybar-tooltips/waybar-tooltips-0.0.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +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/0.0.1.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +LICENSE="GPL-3" +IUSE="khal weather" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +SLOT="0" + +RDEPEND=" + ${PYTHON_DEPS} + khal? ( + app-misc/khal[${PYTHON_USEDEP}] + ) + weather? ( + app-misc/ansiweather + ) +" + +khal_python_install() { + python_doscript "${S}/bin/waybar-tooltip-khal.py" +} + +src_install() { + if use khal; then + python_foreach_impl khal_python_install + fi + if use weather; then + dobin "${S}/bin/waybar-tooltip-weather" + fi +}