git: 2402ee90eaaf - main - finance/electrum: Update to 4.2.0

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Mon, 21 Mar 2022 06:16:18 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2402ee90eaafe2e4e104b74c9335d5431372f1ad

commit 2402ee90eaafe2e4e104b74c9335d5431372f1ad
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2022-03-21 06:16:03 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2022-03-21 06:16:12 +0000

    finance/electrum: Update to 4.2.0
---
 finance/electrum/Makefile | 19 ++++++++++---------
 finance/electrum/distinfo |  6 +++---
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/finance/electrum/Makefile b/finance/electrum/Makefile
index 3f295b5d3309..9ebd863eb9ee 100644
--- a/finance/electrum/Makefile
+++ b/finance/electrum/Makefile
@@ -1,8 +1,7 @@
 # Created by: Neil Booth
 
 PORTNAME=	electrum
-PORTVERSION=	4.1.5
-PORTREVISION=	4
+PORTVERSION=	4.2.0
 CATEGORIES=	finance python
 MASTER_SITES=	https://download.electrum.org/${PORTVERSION}/ \
 		http://download.electrum.org/${PORTVERSION}/
@@ -15,10 +14,9 @@ COMMENT=	Easy to use Bitcoin client
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENCE
 
-# RuntimeError: aiorpcX version (0, 22, 1) does not match required: 0.18.7<=ver<0.19
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiohttp-socks>=0.3:net/py-aiohttp-socks@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}aiohttp>=3.3.0:www/py-aiohttp@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}aiorpcX-legacy<=0.19:devel/py-aiorpcX-legacy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}aiorpcX>=0.22.0:devel/py-aiorpcX@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}attrs>=19.2.0:devel/py-attrs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}bitstring>0:devel/py-bitstring@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}certifi>0:security/py-certifi@${PY_FLAVOR} \
@@ -28,13 +26,13 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiohttp-socks>=0.3:net/py-aiohttp-socks@${PY
 		${PYTHON_PKGNAMEPREFIX}jsonrpclib-pelix>0:devel/py-jsonrpclib-pelix@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pbkdf2>=1.3:security/py-pbkdf2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}protobuf>=3.12:devel/py-protobuf@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}QDarkStyle>=2.8.1:textproc/py-QDarkStyle@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}QDarkStyle>=2.7:textproc/py-QDarkStyle@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}qrcode>0:textproc/py-qrcode@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.4.3:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}secp256k1>0:math/py-secp256k1@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sqlite3>=3.7.9:databases/py-sqlite3@${PY_FLAVOR}
 
-USES=		cpe python:3.6+ shebangfix
+USES=		cpe python:3.8+ shebangfix
 USE_PYTHON=	autoplist concurrent distutils
 
 PYDISTUTILS_PKGNAME=	Electrum
@@ -51,12 +49,15 @@ OPTIONS_SUB=		yes
 HARDWARE_DESC=	Enable Bitcoin hardware wallet support
 
 GUI_USES=		desktop-file-utils pyqt:5
-GUI_USE=		PYQT=sip,pyqt5
-HARDWARE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}btchip-python>=0.1.30:security/py-btchip-python@${PY_FLAVOR} \
+GUI_USE=		PYQT=pyqt5,sip
+# Consider portinting, hw wallets:
+#  safet>=0.1.5
+#  bitbox02>=6.0.0
+HARDWARE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}btchip-python>=0.1.32:security/py-btchip-python@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}ckcc-protocol>=0.7.7:security/py-ckcc-protocol@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}hidapi>=0:comms/py-hidapi@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}keepkey>=6.3.1:security/py-keepkey@${PY_FLAVOR} \
-			${PYTHON_PKGNAMEPREFIX}trezor>=0.12.0:security/py-trezor@${PY_FLAVOR}
+			${PYTHON_PKGNAMEPREFIX}trezor>=0.13.0:security/py-trezor@${PY_FLAVOR}
 HARDWARE_USE=		PYTHON=cython
 HARDWARE_SUB_FILES=	pkg-message-hwwallet
 HARDWARE_PLIST_FILES=	"@sample etc/devd/hardware_wallet.conf.sample"
diff --git a/finance/electrum/distinfo b/finance/electrum/distinfo
index b56a3f594884..6bd4da0cf43b 100644
--- a/finance/electrum/distinfo
+++ b/finance/electrum/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1626796456
-SHA256 (Electrum-4.1.5.tar.gz) = 91472e281f604a7a687faa4b339bf5e484bd2bec82a495ea45bfa014e52719a1
-SIZE (Electrum-4.1.5.tar.gz) = 12066769
+TIMESTAMP = 1647799342
+SHA256 (Electrum-4.2.0.tar.gz) = 96ced60060faf0070f39c38e577708f72fe904889ec2a6ea2df8d29deddda31d
+SIZE (Electrum-4.2.0.tar.gz) = 12855502