blob: 70686be8a84e077045cd31327ad0c014ad7b2c78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $FreeBSD$
PORTNAME= onionshare
DISTVERSIONPREFIX= v
DISTVERSION= 2.2
PORTREVISION= 4
CATEGORIES= www python security
MAINTAINER= egypcio@FreeBSD.org
COMMENT= Secure and anonymous file sharing via Tor
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= tor:security/tor \
obfs4proxy:security/obfs4proxy-tor \
${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}Flask-HTTPAuth>=0:security/py-flask-httpauth@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycrypto>=0:security/py-pycrypto@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}stem>=0:security/py-stem@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
USES= python:3.5+ pyqt:5
USE_GITHUB= yes
GH_ACCOUNT= micahflee
USE_PYQT= core gui sip widgets # "sip" should be "sip_build", but "import PyQt5.QtCore" wants "sip". See bug#225040
USE_PYTHON= distutils autoplist noflavors
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/onionshare/common.py
.include <bsd.port.mk>
|