public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ben Kohler" <bkohler@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/i3blocks-contrib/
Date: Tue, 16 Feb 2021 17:05:50 +0000 (UTC)	[thread overview]
Message-ID: <1613495135.b7da5719890b5456a0e18121116b7af23de885c6.bkohler@gentoo> (raw)

commit:     b7da5719890b5456a0e18121116b7af23de885c6
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 16 17:05:10 2021 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Tue Feb 16 17:05:35 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7da5719

x11-misc/i3blocks-contrib: use optfeature to suggest optional deps

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 .../i3blocks-contrib-1.4.0_p20201127.ebuild          | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/x11-misc/i3blocks-contrib/i3blocks-contrib-1.4.0_p20201127.ebuild b/x11-misc/i3blocks-contrib/i3blocks-contrib-1.4.0_p20201127.ebuild
index 701962eefc8..5977a9b1339 100644
--- a/x11-misc/i3blocks-contrib/i3blocks-contrib-1.4.0_p20201127.ebuild
+++ b/x11-misc/i3blocks-contrib/i3blocks-contrib-1.4.0_p20201127.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit vcs-snapshot
+inherit optfeature vcs-snapshot
 
 COMMIT=154001e5713c26c70063446022919225b6f916f0
 
@@ -29,3 +29,21 @@ src_prepare() {
 src_install() {
 	emake DESTDIR="${D}" PREFIX=/usr install
 }
+
+pkg_postinst() {
+	elog "The following deps may be required for certain ${PN} scripts:"
+	optfeature "backlight" sys-power/acpilight x11-apps/xbacklight
+	optfeature "battery{,2,bar}" sys-power/acpi
+	optfeature "cpu_usage" app-admin/sysstat
+	optfeature "disk-io" app-admin/sysstat
+	optfeature "email" dev-python/keyring gnome-base/gnome-keyring
+	optfeature "gpu-load" x11-drivers/nvidia-drivers app-misc/radeontop
+	optfeature "kbdd_layout" x11-misc/kbdd
+	optfeature "key_light" sys-power/upower
+	optfeature "kubernetes" sys-cluster/kubectl
+	optfeature "monitor_manager" "dev-lang/python[tk] media-fonts/fontawesome x11-apps/xrandr"
+	optfeature "rofi-calendar" x11-misc/rofi
+	optfeature "ssid and wlan-dbm" net-wireless/iw
+	optfeature "temperature" sys-apps/lm-sensors
+	optfeature "ytdl-mpv" "media-fonts/fontawesome media-video/mpv x11-misc/xclip net-misc/youtube-dl"
+}


             reply	other threads:[~2021-02-16 17:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 17:05 Ben Kohler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-10 15:28 [gentoo-commits] repo/gentoo:master commit in: x11-misc/i3blocks-contrib/ Ben Kohler
2023-01-24 13:32 Ionen Wolkens
2021-07-14  6:22 Agostino Sarubbo
2021-07-13 20:05 Sam James
2021-04-04 18:55 Andreas Sturmlechner
2021-01-27 14:41 Ben Kohler
2021-01-20 15:17 Ben Kohler
2021-01-20 15:17 Ben Kohler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1613495135.b7da5719890b5456a0e18121116b7af23de885c6.bkohler@gentoo \
    --to=bkohler@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox