Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2021 01:33:25 +0000 (UTC)
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568225 - head/www/qutebrowser
Message-ID:  <202103130133.12D1XPWC077578@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: novel
Date: Sat Mar 13 01:33:25 2021
New Revision: 568225
URL: https://svnweb.freebsd.org/changeset/ports/568225

Log:
  www/qutebrowser: add adblock support
  
   - Introduce ADBLOCK option that adds adblock support via www/py-adblock.
     As py-adblock is currently available only for amd64, limit the option
     to amd64 too,
   - Reorder some Makefile variables based on portclippy suggestions.
  
  PR:		254131
  Submitted by:	Adam Jimerson

Modified:
  head/www/qutebrowser/Makefile

Modified: head/www/qutebrowser/Makefile
==============================================================================
--- head/www/qutebrowser/Makefile	Sat Mar 13 01:04:46 2021	(r568224)
+++ head/www/qutebrowser/Makefile	Sat Mar 13 01:33:25 2021	(r568225)
@@ -2,7 +2,7 @@
 
 PORTNAME=	qutebrowser
 DISTVERSION=	2.0.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 MASTER_SITES=	CHEESESHOP
 
@@ -22,25 +22,27 @@ RUN_DEPENDS=	\
 
 USES=		desktop-file-utils python:3.6+ pyqt:5 qt:5
 USE_PYQT=	core opengl printsupport sql widgets qml
-USE_QT=		sql-sqlite3
 USE_PYTHON=	distutils autoplist noflavors
+USE_QT=		sql-sqlite3
 
+# Upstream archive contains files with UTF-8 names
+EXTRACT_CMD=	${SETENV} LC_ALL=en_US.UTF-8 /usr/bin/bsdtar
 NO_ARCH=	yes
 PLIST_FILES=	share/applications/${PORTNAME}-${PYTHON_VER}.desktop
 
-# Upstream archive contains files with UTF-8 names
-EXTRACT_CMD=	${SETENV} LC_ALL=en_US.UTF-8 /usr/bin/bsdtar
-
-OPTIONS_MULTI=	BACKEND
-OPTIONS_MULTI_BACKEND=	WEBKIT WEBENGINE
+OPTIONS_DEFINE_amd64=	ADBLOCK
 OPTIONS_DEFAULT=	WEBKIT
-OPTIONS_DEFAULT_amd64=	WEBENGINE
+OPTIONS_DEFAULT_amd64=	WEBENGINE ADBLOCK
 OPTIONS_DEFAULT_i386=	WEBENGINE
+OPTIONS_MULTI=	BACKEND
+OPTIONS_MULTI_BACKEND=	WEBKIT WEBENGINE
 
+ADBLOCK_DESC=		Enable the newer adblocking support
 WEBENGINE_DESC=		WebEngine webpage renderer support
 
-WEBKIT_USE=	PYQT=webkit,webkitwidgets
+ADBLOCK_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}adblock>=0.4.2:www/py-adblock@${PY_FLAVOR}
 WEBENGINE_USE=	PYQT=webengine,webchannel
+WEBKIT_USE=	PYQT=webkit,webkitwidgets
 
 .include <bsd.port.pre.mk>
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103130133.12D1XPWC077578>