freebsd-ports/finance/electrum/Makefile
Loïc Bartoletti 4f0a5e1540 PyQt: Update sip to 6.5.0, reintroduce sip4 and simplify PyQt framework.
SIP:
As mentioned in the update from sip to sip5, this is a transitional version
to remove what is deprecated in sip4.
Sip6 completely removes the deprecated parts.
Unfortunately, some ports — mostly cura things — can not use sip6, so we
reintroduce sip4.

PyQt:
At the same time, we took the opportunity to simplify PyQT and propose only one
package as for devel/pyside2. */py-qt5-* have been merged — excepted chart,
networkauth and webengine — into devel/py-qt5-pyqt.

This allows us to be in adequacy with the packages that the author of these
libraries proposes, namely:

PyQt - devel/py-qt5-pyqt
PyQt-Charts - x11-toolkits/py-qt5-chart
PyQt-NetworkAuth – net/py-qt5-networkauth
PyQt-WebEngine – www/py-qt5-webengine
SIP – devel/py-sip
py-sip - devel/py-qt5-sip
PyQt-builder - devel/py-qtbuilder
Qscintilla - devel/py-qt5-qscintilla2

Reviewed by:	diizzy, kde
Tested by:	kai, rhurlin, arrowd, madpilot
Approved by:	makc, tcberner, kde
Differential Revision:	https://reviews.freebsd.org/D33237
Exp-run by:	antoine
2022-01-27 07:12:26 +01:00

71 lines
2.8 KiB
Makefile

# Created by: Neil Booth
PORTNAME= electrum
PORTVERSION= 4.1.5
PORTREVISION= 1
CATEGORIES= finance python
MASTER_SITES= https://download.electrum.org/${PORTVERSION}/ \
http://download.electrum.org/${PORTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Electrum-${PORTVERSION}
MAINTAINER= ehaupt@FreeBSD.org
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}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} \
${PYTHON_PKGNAMEPREFIX}cryptography>=2.6:security/py-cryptography@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dnspython>=2.0:dns/py-dnspython@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}httplib2>=0:www/py-httplib2@${PY_FLAVOR} \
${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}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
USE_PYTHON= autoplist concurrent distutils
PYDISTUTILS_PKGNAME= Electrum
SHEBANG_FILES= electrum/electrum
SHEBANG_GLOB= *.py
NO_ARCH= yes
OPTIONS_DEFINE= GUI HARDWARE
OPTIONS_DEFAULT= GUI HARDWARE
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} \
${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}
HARDWARE_USE= PYTHON=cython
HARDWARE_SUB_FILES= pkg-message-hwwallet
HARDWARE_PLIST_FILES= "@sample etc/devd/hardware_wallet.conf.sample"
post-patch-GUI-off:
@${REINPLACE_CMD} -e '/electrum\.desktop/d' ${WRKSRC}/setup.py
post-install-HARDWARE-on:
${INSTALL_DATA} ${FILESDIR}/hardware_wallet.conf.sample \
${STAGEDIR}${PREFIX}/etc/devd
.include <bsd.port.mk>