diff options
author | Stefan Strogin <steils@gentoo.org> | 2021-06-27 06:50:19 +0300 |
---|---|---|
committer | Stefan Strogin <steils@gentoo.org> | 2021-06-27 04:18:33 +0000 |
commit | 429d211b13cfd976895270e875e506d0194c719d (patch) | |
tree | 869841a072aceb153c90788fe54541c9d468a048 /www-client/qutebrowser | |
parent | metadata/install-qa-check.d: link wiki (developer guidance) in 60libcrypt-deps (diff) | |
download | gentoo-429d211b13cfd976895270e875e506d0194c719d.tar.gz gentoo-429d211b13cfd976895270e875e506d0194c719d.tar.bz2 gentoo-429d211b13cfd976895270e875e506d0194c719d.zip |
www-client/qutebrowser: add USE=adblock, other improvements
- Add USE=adblock, enable it by default.
- Mask adblock on x86 and arm64, as dev-python/adblock is not
keyworded there yet.
- Drop scripts flag from IUSE. There is no reason not to install
userscripts. Let's always install them.
- Install scripts from "scripts" directory (not just "userscripts").
Closes: https://bugs.gentoo.org/773643
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Stefan Strogin <steils@gentoo.org>
Diffstat (limited to 'www-client/qutebrowser')
-rw-r--r-- | www-client/qutebrowser/metadata.xml | 2 | ||||
-rw-r--r-- | www-client/qutebrowser/qutebrowser-2.2.3-r1.ebuild (renamed from www-client/qutebrowser/qutebrowser-2.2.3.ebuild) | 62 |
2 files changed, 33 insertions, 31 deletions
diff --git a/www-client/qutebrowser/metadata.xml b/www-client/qutebrowser/metadata.xml index c915949c2ca1..8eb60f40da24 100644 --- a/www-client/qutebrowser/metadata.xml +++ b/www-client/qutebrowser/metadata.xml @@ -17,6 +17,8 @@ <remote-id type="github">qutebrowser/qutebrowser</remote-id> </upstream> <use> + <flag name="adblock">Enable Brave's ABP-style adblocker library + for improved adblocking</flag> <flag name="scripts">Installs userscripts from the misc/userscripts directory to /usr/share/qutebrowser/userscripts.</flag> </use> diff --git a/www-client/qutebrowser/qutebrowser-2.2.3.ebuild b/www-client/qutebrowser/qutebrowser-2.2.3-r1.ebuild index ab48622e1e25..a546f877c3da 100644 --- a/www-client/qutebrowser/qutebrowser-2.2.3.ebuild +++ b/www-client/qutebrowser/qutebrowser-2.2.3-r1.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="scripts test" +IUSE="+adblock test" BDEPEND="app-text/asciidoc" RDEPEND="dev-python/colorama[${PYTHON_USEDEP}] @@ -26,7 +26,8 @@ RDEPEND="dev-python/colorama[${PYTHON_USEDEP}] dev-python/PyQtWebEngine[${PYTHON_USEDEP}] >=dev-python/pyyaml-5.4.1[${PYTHON_USEDEP},libyaml] dev-python/typing-extensions[${PYTHON_USEDEP}] - dev-python/zipp[${PYTHON_USEDEP}]" + dev-python/zipp[${PYTHON_USEDEP}] + adblock? ( dev-python/adblock[${PYTHON_USEDEP}] )" distutils_enable_tests setup.py @@ -39,39 +40,38 @@ python_compile_all() { } python_install_all() { + insinto /usr/share/metainfo + doins misc/org.qutebrowser.qutebrowser.appdata.xml doman doc/${PN}.1 domenu misc/org.${PN}.${PN}.desktop + for s in 16 24 32 48 64 128 256 512; do + doicon -s ${s} icons/qutebrowser-${s}x${s}.png + done doicon -s scalable icons/${PN}.svg - if use scripts; then - insinto /usr/share/qutebrowser/userscripts/ - doins misc/userscripts/README.md - exeinto /usr/share/qutebrowser/userscripts/ - doexe misc/userscripts/add-nextcloud-bookmarks \ - misc/userscripts/add-nextcloud-cookbook \ - misc/userscripts/cast \ - misc/userscripts/dmenu_qutebrowser \ - misc/userscripts/format_json \ - misc/userscripts/getbib \ - misc/userscripts/kodi \ - misc/userscripts/open_download \ - misc/userscripts/openfeeds \ - misc/userscripts/password_fill \ - misc/userscripts/qr \ - misc/userscripts/qute-bitwarden \ - misc/userscripts/qutedmenu \ - misc/userscripts/qute-keepass \ - misc/userscripts/qute-keepassxc \ - misc/userscripts/qute-lastpass \ - misc/userscripts/qute-pass \ - misc/userscripts/readability \ - misc/userscripts/readability-js \ - misc/userscripts/ripbang \ - misc/userscripts/rss \ - misc/userscripts/taskadd \ - misc/userscripts/tor_identity \ - misc/userscripts/view_in_mpv - fi + insinto /usr/share/qutebrowser/userscripts + doins misc/userscripts/README.md + exeinto /usr/share/qutebrowser/userscripts + for f in misc/userscripts/*; do + if [[ "${f}" == "__pycache__" ]]; then + continue + fi + doexe "${f}" + done + + exeinto /usr/share/qutebrowser/scripts + for f in scripts/*; do + if [[ "${f}" == "scripts/__init__.py" || \ + "${f}" == "scripts/__pycache__" || \ + "${f}" == "scripts/dev" || \ + "${f}" == "scripts/testbrowser" || \ + "${f}" == "scripts/asciidoc2html.py" || \ + "${f}" == "scripts/setupcommon.py" || \ + "${f}" == "scripts/link_pyqt.py" ]]; then + continue + fi + doexe "${f}" + done distutils-r1_python_install_all } |