git: 6b003a5e7cf7 - main - www/onionshare: update 2.2_8 to 2.6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Dec 2022 13:12:01 UTC
The branch main has been updated by egypcio: URL: https://cgit.FreeBSD.org/ports/commit/?id=6b003a5e7cf7ecfba10932845c83b4443131570f commit 6b003a5e7cf7ecfba10932845c83b4443131570f Author: Vinícius Zavam <egypcio@FreeBSD.org> AuthorDate: 2022-12-30 13:04:31 +0000 Commit: Vinícius Zavam <egypcio@FreeBSD.org> CommitDate: 2022-12-30 13:04:31 +0000 www/onionshare: update 2.2_8 to 2.6 * github.com/onionshare/onionshare/blob/v2.6/CHANGELOG.md * github.com/onionshare/onionshare/compare/v2.2...v2.6 PR: 265955 Sponsored by: TorBSD Diversity Project, TDP Sponsored by: The Tor Project --- www/onionshare/Makefile | 56 ++++++++++++++++++++++++++++++++++++++++--------- www/onionshare/distinfo | 6 +++--- 2 files changed, 49 insertions(+), 13 deletions(-) diff --git a/www/onionshare/Makefile b/www/onionshare/Makefile index 3ce3c3440a5f..8d3c74a60d05 100644 --- a/www/onionshare/Makefile +++ b/www/onionshare/Makefile @@ -1,8 +1,8 @@ PORTNAME= onionshare DISTVERSIONPREFIX=v -DISTVERSION= 2.2 -PORTREVISION= 8 -CATEGORIES= www python security +DISTVERSION= 2.6 +CATEGORIES= www security python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= egypcio@FreeBSD.org COMMENT= Secure and anonymous file sharing via Tor @@ -15,21 +15,57 @@ RUN_DEPENDS= meek-client:security/meek \ obfs4proxy:security/obfs4proxy-tor \ snowflake-client:security/snowflake-tor \ tor:security/tor \ - ${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Flask-HTTPAuth>=0:security/py-flask-httpauth@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}atomicwrites>=0:devel/py-atomicwrites@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cepa>=0:net/py-cepa@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}colorama>=0:devel/py-colorama@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}eventlet>=0:net/py-eventlet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flask-socketio>=0:www/py-flask-socketio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}gevent-websocket>=0:www/py-gevent-websocket@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}onionshare-cli>=0:www/onionshare-cli@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pynacl>=0:security/py-pynacl@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyside2>=0:devel/pyside2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}qrcode>=0:textproc/py-qrcode@${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} + ${PYTHON_PKGNAMEPREFIX}shiboken2>=0:devel/shiboken2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}unidecode>=0:converters/py-unidecode@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}urllib3>=0:net/py-urllib3@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-qt>=0:devel/py-pytest-qt@${PY_FLAVOR} -USES= cpe python:3.6+ pyqt:5 +USES= cpe python:3.6+ pyqt:5 qt:5 shebangfix xorg USE_GITHUB= yes USE_PYQT= pyqt5 sip -USE_PYTHON= distutils autoplist noflavors +USE_PYTHON= distutils autoplist +USE_XORG= x11 xcb + +PYSETUP= ${WRKSRC}/desktop/setup.py +SHEBANG_FILES= ${WRKSRC}/cli/*.py \ + ${WRKSRC}/cli/onionshare_cli/*.py \ + ${WRKSRC}/cli/tests/*.py \ + ${WRKSRC}/desktop/*.py \ + ${WRKSRC}/desktop/scripts/*.py \ + ${WRKSRC}/desktop/tests/*.py post-patch: - @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/onionshare/common.py + ${RLN} ${WRKSRC}/cli/onionshare_cli ${WRKSRC}/onionshare-cli + ${RLN} ${WRKSRC}/desktop/onionshare ${WRKSRC}/onionshare + ${REINPLACE_CMD} 's|"onionshare-cli = onionshare_cli:main",||' ${PYSETUP} + ${RM} ${WRKSRC}/desktop/package/onionshare-cli.py + +# https://github.com/onionshare/onionshare/blob/main/desktop/tests/run.sh +do-test: + cd ${WRKSRC}/desktop \ + && ${PYTHON_CMD} -m pytest -v tests/test_gui_tabs.py \ + && ${PYTHON_CMD} -m pytest -v tests/test_gui_share.py \ + && ${PYTHON_CMD} -m pytest -v tests/test_gui_receive.py \ + && ${PYTHON_CMD} -m pytest -v tests/test_gui_website.py \ + && ${PYTHON_CMD} -m pytest -v tests/test_gui_chat.py .include <bsd.port.mk> diff --git a/www/onionshare/distinfo b/www/onionshare/distinfo index e4662e4fea02..b7e5b197c795 100644 --- a/www/onionshare/distinfo +++ b/www/onionshare/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1659784168 -SHA256 (onionshare-onionshare-v2.2_GH0.tar.gz) = 7173863d7582b05aa8fd0d2207236e3cbbb38d854aad65e3b98ec5baad521fc2 -SIZE (onionshare-onionshare-v2.2_GH0.tar.gz) = 3319589 +TIMESTAMP = 1672155861 +SHA256 (onionshare-onionshare-v2.6_GH0.tar.gz) = 40006a612a90bf31df697936c26e8dca16384bc8c7ef084ef7b1a21651c84304 +SIZE (onionshare-onionshare-v2.6_GH0.tar.gz) = 8106401