openbsd-ports/net/deluge/Makefile
sthen d858b7cc2a Ports built with setuptools on python 3.10 don't need a RUN_DEPENDS on
setuptools (it's used as a package locator but importlib.metadata in
newer Python core or the external importlib_metadata are preferred).
So drop the RDEP in that case (it's still kept for py27) and bump
revisions.
2022-11-26 23:28:11 +00:00

51 lines
1.4 KiB
Makefile

COMMENT = bittorrent client
DISTNAME = deluge-${MODPY_EGG_VERSION}
MODPY_EGG_VERSION = 2.0.5
REVISION = 1
CATEGORIES = net
HOMEPAGE = https://www.deluge-torrent.org/
# GPLv3+
PERMIT_PACKAGE = Yes
MASTER_SITES = https://ftp.osuosl.org/pub/deluge/source/2.0/
EXTRACT_SUFX = .tar.xz
MODULES = lang/python \
textproc/intltool
MODPY_PYTEST = Yes
# skip some tests which segfault (seem to be most/all Gtk-related)
MODPY_PYTEST_ARGS = -v \
--ignore deluge/plugins/Stats/deluge_stats/tests/test_stats.py \
--ignore deluge/tests/test_files_tab.py \
--ignore deluge/tests/test_torrentview.py \
--ignore deluge/tests/test_ui_entry.py
# needs fixing up for MODPY_PYBUILD; doesn't install
# share/appdata/deluge.appdata.xml
# share/applications/deluge.desktop
MODPY_SETUPTOOLS = Yes
BUILD_DEPENDS = devel/py-wheel${MODPY_FLAVOR} \
devel/py-xdg${MODPY_FLAVOR} \
net/libtorrent-rasterbar \
textproc/py-chardet${MODPY_FLAVOR}
RUN_DEPENDS = devel/desktop-file-utils \
devel/py-gobject3${MODPY_FLAVOR} \
devel/py-rencode${MODPY_FLAVOR} \
devel/py-setproctitle${MODPY_FLAVOR} \
devel/py-twisted${MODPY_FLAVOR} \
devel/py-xdg${MODPY_FLAVOR} \
graphics/py-Pillow${MODPY_FLAVOR} \
net/libtorrent-rasterbar \
textproc/py-chardet${MODPY_FLAVOR} \
www/py-mako${MODPY_FLAVOR} \
x11/gtk+3 \
x11/gtk+3,-guic
PORTHOME= ${WRKSRC}
.include <bsd.port.mk>