From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1657010-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 0E467159C96
	for <garchives@archives.gentoo.org>; Sun, 28 Jul 2024 21:21:09 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 25DBEE2A90;
	Sun, 28 Jul 2024 21:21:07 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 02D63E2A90
	for <gentoo-commits@lists.gentoo.org>; Sun, 28 Jul 2024 21:21:07 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 9FD61343012
	for <gentoo-commits@lists.gentoo.org>; Sun, 28 Jul 2024 21:21:05 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 0ABC91E86
	for <gentoo-commits@lists.gentoo.org>; Sun, 28 Jul 2024 21:21:03 +0000 (UTC)
From: "Lucio Sauer" <watermanpaint@posteo.net>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Lucio Sauer" <watermanpaint@posteo.net>
Message-ID: <1722200812.7f1048b0c59b677c7de988b1a7cdb39147d2737d.watermanpaint@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-admin/rbw/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: app-admin/rbw/rbw-1.11.1-r1.ebuild app-admin/rbw/rbw-9999.ebuild
X-VCS-Directories: app-admin/rbw/
X-VCS-Committer: watermanpaint
X-VCS-Committer-Name: Lucio Sauer
X-VCS-Revision: 7f1048b0c59b677c7de988b1a7cdb39147d2737d
X-VCS-Branch: master
Date: Sun, 28 Jul 2024 21:21:03 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 3f53059a-187e-4f98-98fe-e0d1877ec947
X-Archives-Hash: 070d2210b9b73e52b6f939b6141ba896
Message-ID: <20240728212103.9hxkg9ZJJP4PckrwZV8sWtuVktJgnmYmuguIq_j6fEI@z>

commit:     7f1048b0c59b677c7de988b1a7cdb39147d2737d
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sun Jul 28 21:06:52 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sun Jul 28 21:06:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7f1048b0

app-admin/rbw: advertise optional Wayland clipboard support

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 app-admin/rbw/rbw-1.11.1-r1.ebuild | 10 +++++++---
 app-admin/rbw/rbw-9999.ebuild      | 10 +++++++---
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/app-admin/rbw/rbw-1.11.1-r1.ebuild b/app-admin/rbw/rbw-1.11.1-r1.ebuild
index a1405bed3..8b12bc7e4 100644
--- a/app-admin/rbw/rbw-1.11.1-r1.ebuild
+++ b/app-admin/rbw/rbw-1.11.1-r1.ebuild
@@ -300,7 +300,7 @@ CRATES="
 	zeroize@1.8.1
 "
 
-inherit cargo shell-completion
+inherit cargo optfeature shell-completion
 
 DESCRIPTION="Unofficial Bitwarden CLI"
 HOMEPAGE="https://git.tozt.net/rbw"
@@ -321,8 +321,6 @@ LICENSE+=" Apache-2.0 BSD Boost-1.0 ISC MIT Unicode-DFS-2016"
 LICENSE+=" openssl"
 SLOT="0"
 
-# copypasta crate provides wayland clipboard support via dlopen calls against
-# libwayland-client.so
 RDEPEND="app-crypt/pinentry"
 BDEPEND=">=virtual/rust-1.74"
 
@@ -361,3 +359,9 @@ src_install() {
 	newzshcomp rbw.zsh _rbw
 	einstalldocs
 }
+
+pkg_postinst() {
+	# copypasta crate provides wayland clipboard support via dlopen calls against
+	# libwayland-client.so
+	optfeature "Wayland clipboard support" dev-libs/wayland
+}

diff --git a/app-admin/rbw/rbw-9999.ebuild b/app-admin/rbw/rbw-9999.ebuild
index d884f0d3b..2e93ac20b 100644
--- a/app-admin/rbw/rbw-9999.ebuild
+++ b/app-admin/rbw/rbw-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cargo shell-completion
+inherit cargo optfeature shell-completion
 
 DESCRIPTION="Unofficial Bitwarden CLI"
 HOMEPAGE="https://git.tozt.net/rbw"
@@ -24,8 +24,6 @@ LICENSE+=" Apache-2.0 BSD Boost-1.0 ISC MIT Unicode-DFS-2016"
 LICENSE+=" openssl"
 SLOT="0"
 
-# copypasta crate provides wayland clipboard support via dlopen calls against
-# libwayland-client.so
 RDEPEND="app-crypt/pinentry"
 BDEPEND=">=virtual/rust-1.74"
 
@@ -64,3 +62,9 @@ src_install() {
 	newzshcomp rbw.zsh _rbw
 	einstalldocs
 }
+
+pkg_postinst() {
+	# copypasta crate provides wayland clipboard support via dlopen calls against
+	# libwayland-client.so
+	optfeature "Wayland clipboard support" dev-libs/wayland
+}