11PORTNAME = qbittorrent
22DISTVERSION = 4.5.5
3+ PORTREVISION = 1
34CATEGORIES = net-p2p
45MASTER_SITES = SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
56
@@ -21,24 +22,21 @@ FLAVOR?= ${FLAVORS:[1]}
2122nox_PKGNAMESUFFIX = -nox
2223nox_PLIST = ${MASTERDIR}/pkg-plist-nox
2324
24- USES = compiler:c++14-lang cpe pkgconfig qmake:no_env qt:5 ssl tar:xz
25- GNU_CONFIGURE = yes
26- USE_QT = core network sql xml buildtools:build linguisttools:build qmake:build
27- DESTDIRNAME = INSTALL_ROOT
28- CONFIGURE_ENV+ = openssl_CFLAGS="-I${OPENSSLINC}" openssl_LIBS="-L${OPENSSLLIB} -lssl"
29-
25+ USES = compiler:c++14-lang cpe pkgconfig cmake qt:6 ssl tar:xz
26+ USE_QT = base svg translations
3027USE_CXXSTD = c++17 # prevent boost-related SEGV, see bug#264278
3128
29+ CMAKE_ON = QT6
30+
3231.if ${FLAVOR} == default
3332USES+ = desktop-file-utils gl
34- USE_QT+ = concurrent gui svg widgets
3533USE_GL = gl
3634.endif
3735
3836.if ${FLAVOR} == nox
3937SUFFIX = -nox
4038COMMENT+ = (web UI version)
41- CONFIGURE_ARGS = --disable-gui
39+ CMAKE_OFF = GUI
4240USERS = qbittorrent
4341GROUPS = qbittorrent
4442USE_RC_SUBR = qbittorrent
@@ -56,9 +54,8 @@ LIBTORRENT_DESC= libtorrent version number to use
5654LIBTORRENT1_DESC = Version 1.x (default)
5755LIBTORRENT2_DESC = Version 2.x (experimental)
5856
59- DEBUG_CONFIGURE_ENABLE = debug
60- DBUS_CONFIGURE_ENABLE = qt-dbus
61- DBUS_USE = qt=dbus
57+ DEBUG_CMAKE_BOOL = debug
58+ DBUS_CMAKE_BOOL = DBUS
6259
6360LIBTORRENT1_BUILD_DEPENDS = libtorrent-rasterbar>0:net-p2p/libtorrent-rasterbar
6461LIBTORRENT1_RUN_DEPENDS = libtorrent-rasterbar>0:net-p2p/libtorrent-rasterbar
@@ -68,15 +65,9 @@ LIBTORRENT2_EXTRA_PATCHES= ${FILESDIR}/extrapatch-libtorrent-rasterbar2-settings
6865
6966PYTHON_DESC = Install Python to support some plugin functionality
7067PYTHON_USES = python:run
71-
72- post-patch-PYTHON-on :
73- @${REINPLACE_CMD} -e ' s|"python3"|"${PYTHON_CMD}"|' ${WRKSRC} /src/base/utils/foreignapps.cpp
68+ PYTHON_BINARY_ALIAS = python3=${PYTHON_CMD}
7469
7570post-install :
76- @${STRIP_CMD} ${STAGEDIR}${PREFIX} /bin/qbittorrent${SUFFIX}
77- ${INSTALL_MAN} ${WRKSRC} /doc/qbittorrent${SUFFIX} .1 \
78- ${STAGEDIR}${MAN1PREFIX} /man/man1/
79- @${RM} -r ${STAGEDIR}${PREFIX} /share/man
8071.if ${FLAVOR} == nox
8172 @${MKDIR} ${STAGEDIR}/var/db/qbittorrent/conf ${STAGEDIR}/var/db/qbittorrent/Downloads
8273.endif
0 commit comments