svn commit: r566898 - head/net-p2p/qbittorrent

Yuri Victorovich yuri at FreeBSD.org
Mon Mar 1 19:32:24 UTC 2021


Author: yuri
Date: Mon Mar  1 19:32:23 2021
New Revision: 566898
URL: https://svnweb.freebsd.org/changeset/ports/566898

Log:
  net-p2p/qbittorrent: Add the PYTHON option to support some optional plugin functionality
  
  PR:		253943
  Reported by:	Dries Michiels <driesm.michiels at gmail.com>

Modified:
  head/net-p2p/qbittorrent/Makefile

Modified: head/net-p2p/qbittorrent/Makefile
==============================================================================
--- head/net-p2p/qbittorrent/Makefile	Mon Mar  1 19:25:06 2021	(r566897)
+++ head/net-p2p/qbittorrent/Makefile	Mon Mar  1 19:32:23 2021	(r566898)
@@ -3,7 +3,7 @@
 
 PORTNAME=	qbittorrent
 DISTVERSION=	4.3.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-p2p
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
@@ -47,12 +47,18 @@ PLIST_SUB=		USER=${USERS} GROUP=${GROUPS}
 OPTIONS_EXCLUDE=	DBUS
 .endif
 
-OPTIONS_DEFINE=		DBUS DEBUG
+OPTIONS_DEFINE=		DBUS PYTHON DEBUG
 OPTIONS_DEFAULT=	DBUS
 
 DEBUG_CONFIGURE_ENABLE=	debug
 DBUS_CONFIGURE_ENABLE=	qt-dbus
 DBUS_USE=		qt=dbus
+
+PYTHON_DESC=		Install Python to support some plugin functionality
+PYTHON_USES=		python:3.6+,run
+
+post-patch-PYTHON-on:
+	@${REINPLACE_CMD} -e 's|"python3"|"${PYTHON_CMD}"|' ${WRKSRC}/src/base/utils/foreignapps.cpp
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qbittorrent${SUFFIX}


More information about the svn-ports-head mailing list