freebsd-ports/finance/electrum2/Makefile
Antoine Brodin 38308bbce8 - Add explicit FLAVOR to a few dependencies
- Remove FLAVOR from py-docutils dependency in comms/uhd, in this case
  it needs the rst2html command, not the docutils module
- Mark some ports as not compatible with python3
2017-12-03 08:25:31 +00:00

64 lines
2.1 KiB
Makefile

# Created by: Neil Booth
# $FreeBSD$
PORTNAME= electrum
PORTVERSION= 2.9.3
PORTREVISION= 2
CATEGORIES= finance python
MASTER_SITES= https://download.electrum.org/${PORTVERSION}/ \
http://download.electrum.org/${PORTVERSION}/
PKGNAMESUFFIX= 2
DISTNAME= Electrum-${PORTVERSION}
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Easy to use Bitcoin client (legacy version)
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENCE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ecdsa>0:security/py-ecdsa@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}jsonrpclib>0:devel/py-jsonrpclib@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pbkdf2>=1.3:security/py-pbkdf2@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}protobuf>=2.6.0:devel/py-protobuf@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyaes>0:security/py-pyaes@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.4.3:www/py-requests@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}qrcode>=5.1:textproc/py-qrcode@${FLAVOR}
CONFLICTS_INSTALL= electrum-3.*
USES= desktop-file-utils pyqt:4 python:-2.7
USE_PYQT= gui_run
USE_PYTHON= autoplist distutils
PYDISTUTILS_PKGNAME= Electrum
NO_ARCH= yes
OPTIONS_SUB= yes
OPTIONS_DEFINE= LEDGER TREZOR
OPTIONS_DEFAULT=LEDGER TREZOR
LEDGER_DESC= Enable LEDGER Bitcoin hardware wallet support
TREZOR_DESC= Enable TREZOR Bitcoin hardware wallet support
LEDGER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}btchip-python>0:security/py-btchip-python@${FLAVOR}
TREZOR_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}trezor>0:security/py-trezor@${FLAVOR}
LEDGER_PLIST_FILES= "@sample etc/devd/ledger_wallet.conf.sample"
TREZOR_PLIST_FILES= "@sample etc/devd/trezor_wallet.conf.sample"
LEDGER_SUB_FILES= pkg-message-hwwallet
TREZOR_SUB_FILES= pkg-message-hwwallet
post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/setup.py
post-install-LEDGER-on:
${INSTALL_DATA} ${FILESDIR}/ledger_wallet.conf.sample \
${STAGEDIR}${PREFIX}/etc/devd
post-install-TREZOR-on:
${INSTALL_DATA} ${FILESDIR}/trezor_wallet.conf.sample \
${STAGEDIR}${PREFIX}/etc/devd
.include <bsd.port.mk>