From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1572662-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 76597158099
	for <garchives@archives.gentoo.org>; Thu, 23 Nov 2023 17:46:48 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id A7A492BC014;
	Thu, 23 Nov 2023 17:46:47 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.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 824112BC014
	for <gentoo-commits@lists.gentoo.org>; Thu, 23 Nov 2023 17:46:46 +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 716DB335D55
	for <gentoo-commits@lists.gentoo.org>; Thu, 23 Nov 2023 17:46:45 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id E2EC4AB9
	for <gentoo-commits@lists.gentoo.org>; Thu, 23 Nov 2023 17:46:43 +0000 (UTC)
From: "Alfred Persson Forsberg" <cat@catcream.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Alfred Persson Forsberg" <cat@catcream.org>
Message-ID: <1700761445.a644a1dc4961991a4f4a25fe3cf32238f736342b.cat@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/monero/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: net-p2p/monero/monero-0.18.3.1.ebuild
X-VCS-Directories: net-p2p/monero/
X-VCS-Committer: cat
X-VCS-Committer-Name: Alfred Persson Forsberg
X-VCS-Revision: a644a1dc4961991a4f4a25fe3cf32238f736342b
X-VCS-Branch: dev
Date: Thu, 23 Nov 2023 17:46:43 +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: 98a9390c-cbec-4c91-8b31-8aa88d472b07
X-Archives-Hash: ef084ba90da499ba2589d37ae540d0c2

commit:     a644a1dc4961991a4f4a25fe3cf32238f736342b
Author:     Alfred Persson Forsberg <cat <AT> catcream <DOT> org>
AuthorDate: Thu Nov 23 15:53:25 2023 +0000
Commit:     Alfred Persson Forsberg <cat <AT> catcream <DOT> org>
CommitDate: Thu Nov 23 17:44:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a644a1dc

net-p2p/monero: add USE=hw-wallet

Signed-off-by: Alfred Persson Forsberg <cat <AT> catcream.org>

 net-p2p/monero/monero-0.18.3.1.ebuild | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/net-p2p/monero/monero-0.18.3.1.ebuild b/net-p2p/monero/monero-0.18.3.1.ebuild
index 6c810793ce..567c589b39 100644
--- a/net-p2p/monero/monero-0.18.3.1.ebuild
+++ b/net-p2p/monero/monero-0.18.3.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -19,7 +19,7 @@ fi
 
 LICENSE="BSD MIT"
 SLOT="0"
-IUSE="+daemon readline +tools +wallet-cli +wallet-rpc"
+IUSE="+daemon hw-wallet readline +tools +wallet-cli +wallet-rpc"
 REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )"
 RESTRICT="test"
 
@@ -36,6 +36,11 @@ DEPEND="
 	net-libs/czmq:=
 	net-libs/miniupnpc
 	readline? ( sys-libs/readline:0= )
+	hw-wallet? (
+		dev-libs/hidapi
+		dev-libs/protobuf:=
+		virtual/libusb:1
+	)
 "
 RDEPEND="${DEPEND}"
 BDEPEND="virtual/pkgconfig"
@@ -49,7 +54,7 @@ src_configure() {
 		# TODO: Update CMake to install built libraries (help wanted)
 		-DBUILD_SHARED_LIBS=OFF
 		-DMANUAL_SUBMODULES=ON
-		-DUSE_DEVICE_TREZOR=OFF
+		-DUSE_DEVICE_TREZOR=$(usex hw-wallet ON OFF)
 	)
 
 	use elibc_musl && mycmakeargs+=( -DSTACK_TRACE=OFF )