View | Details | Raw Unified | Return to bug 265955 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/onionshare/Makefile (-10 / +46 lines)
Lines 1-8 Link Here
1
PORTNAME=	onionshare
1
PORTNAME=	onionshare
2
DISTVERSIONPREFIX=v
2
DISTVERSIONPREFIX=v
3
DISTVERSION=	2.2
3
DISTVERSION=	2.6
4
PORTREVISION=	8
4
CATEGORIES=	www security python
5
CATEGORIES=	www python security
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
6
7
MAINTAINER=	egypcio@FreeBSD.org
7
MAINTAINER=	egypcio@FreeBSD.org
8
COMMENT=	Secure and anonymous file sharing via Tor
8
COMMENT=	Secure and anonymous file sharing via Tor
Lines 15-35 RUN_DEPENDS= meek-client:security/meek \ Link Here
15
		obfs4proxy:security/obfs4proxy-tor \
15
		obfs4proxy:security/obfs4proxy-tor \
16
		snowflake-client:security/snowflake-tor \
16
		snowflake-client:security/snowflake-tor \
17
		tor:security/tor \
17
		tor:security/tor \
18
		${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}Flask-HTTPAuth>=0:security/py-flask-httpauth@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}Flask-HTTPAuth>=0:security/py-flask-httpauth@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}atomicwrites>=0:devel/py-atomicwrites@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}cepa>=0:net/py-cepa@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}colorama>=0:devel/py-colorama@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}eventlet>=0:net/py-eventlet@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}flask-socketio>=0:www/py-flask-socketio@${PY_FLAVOR} \
27
		${PYTHON_PKGNAMEPREFIX}gevent-websocket>=0:www/py-gevent-websocket@${PY_FLAVOR} \
28
		${PYTHON_PKGNAMEPREFIX}onionshare-cli>=0:www/onionshare-cli@${PY_FLAVOR} \
29
		${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR} \
30
		${PYTHON_PKGNAMEPREFIX}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR} \
31
		${PYTHON_PKGNAMEPREFIX}pynacl>=0:security/py-pynacl@${PY_FLAVOR} \
32
		${PYTHON_PKGNAMEPREFIX}pyside2>=0:devel/pyside2@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks@${PY_FLAVOR} \
33
		${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks@${PY_FLAVOR} \
34
		${PYTHON_PKGNAMEPREFIX}qrcode>=0:textproc/py-qrcode@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
35
		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}stem>=0:security/py-stem@${PY_FLAVOR}
36
		${PYTHON_PKGNAMEPREFIX}shiboken2>=0:devel/shiboken2@${PY_FLAVOR} \
24
37
		${PYTHON_PKGNAMEPREFIX}unidecode>=0:converters/py-unidecode@${PY_FLAVOR} \
25
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
38
		${PYTHON_PKGNAMEPREFIX}urllib3>=0:net/py-urllib3@${PY_FLAVOR}
39
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
40
		${PYTHON_PKGNAMEPREFIX}pytest-qt>=0:devel/py-pytest-qt@${PY_FLAVOR}
26
41
27
USES=		cpe python:3.6+ pyqt:5
42
USES=		cpe python:3.6+ pyqt:5 qt:5 shebangfix xorg
28
USE_GITHUB=	yes
43
USE_GITHUB=	yes
29
USE_PYQT=	pyqt5 sip
44
USE_PYQT=	pyqt5 sip
30
USE_PYTHON=	distutils autoplist noflavors
45
USE_PYTHON=	distutils autoplist
46
USE_XORG=	x11 xcb
47
48
PYSETUP=	${WRKSRC}/desktop/setup.py
49
SHEBANG_FILES=	${WRKSRC}/cli/*.py \
50
		${WRKSRC}/cli/onionshare_cli/*.py \
51
		${WRKSRC}/cli/tests/*.py \
52
		${WRKSRC}/desktop/*.py \
53
		${WRKSRC}/desktop/scripts/*.py \
54
		${WRKSRC}/desktop/tests/*.py
31
55
32
post-patch:
56
post-patch:
33
	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/onionshare/common.py
57
	${RLN} ${WRKSRC}/cli/onionshare_cli ${WRKSRC}/onionshare-cli
58
	${RLN} ${WRKSRC}/desktop/onionshare ${WRKSRC}/onionshare
59
	${REINPLACE_CMD} 's|"onionshare-cli = onionshare_cli:main",||' ${PYSETUP}
60
	${RM} ${WRKSRC}/desktop/package/onionshare-cli.py
61
62
# https://github.com/onionshare/onionshare/blob/main/desktop/tests/run.sh
63
do-test:
64
	cd ${WRKSRC}/desktop \
65
	&& ${PYTHON_CMD} -m pytest -v tests/test_gui_tabs.py \
66
	&& ${PYTHON_CMD} -m pytest -v tests/test_gui_share.py \
67
	&& ${PYTHON_CMD} -m pytest -v tests/test_gui_receive.py \
68
	&& ${PYTHON_CMD} -m pytest -v tests/test_gui_website.py \
69
	&& ${PYTHON_CMD} -m pytest -v tests/test_gui_chat.py
34
70
35
.include <bsd.port.mk>
71
.include <bsd.port.mk>
(-)b/www/onionshare/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1659784168
1
TIMESTAMP = 1672155861
2
SHA256 (onionshare-onionshare-v2.2_GH0.tar.gz) = 7173863d7582b05aa8fd0d2207236e3cbbb38d854aad65e3b98ec5baad521fc2
2
SHA256 (onionshare-onionshare-v2.6_GH0.tar.gz) = 40006a612a90bf31df697936c26e8dca16384bc8c7ef084ef7b1a21651c84304
3
SIZE (onionshare-onionshare-v2.2_GH0.tar.gz) = 3319589
3
SIZE (onionshare-onionshare-v2.6_GH0.tar.gz) = 8106401

Return to bug 265955