# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_SINGLE_IMPL=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8..11} ) inherit distutils-r1 multiprocessing xdg if [[ ${PV} == *9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/qutebrowser/qutebrowser.git" EGIT_BRANCH="qt6-v2" else SRC_URI="https://github.com/qutebrowser/qutebrowser/releases/download/v${PV}/${P}.tar.gz" KEYWORDS="~amd64" fi DESCRIPTION="Keyboard-driven, vim-like browser based on Python and Qt" HOMEPAGE="https://www.qutebrowser.org/" LICENSE="GPL-3+" SLOT="0" IUSE="+adblock pdf +qt6 widevine" RDEPEND=" $(python_gen_cond_dep ' dev-python/importlib_resources[${PYTHON_USEDEP}]' 3.8) $(python_gen_cond_dep ' dev-python/colorama[${PYTHON_USEDEP}] >=dev-python/jinja-3.1.2[${PYTHON_USEDEP}] >=dev-python/markupsafe-2.1.1[${PYTHON_USEDEP}] dev-python/pygments[${PYTHON_USEDEP}] >=dev-python/pyyaml-6[${PYTHON_USEDEP}] dev-python/zipp[${PYTHON_USEDEP}] adblock? ( dev-python/adblock[${PYTHON_USEDEP}] )') qt6? ( dev-qt/qtbase:6[icu] $(python_gen_cond_dep ' dev-python/PyQt6[${PYTHON_USEDEP},dbus,gui,network,opengl,printsupport,qml,sql,widgets] dev-python/PyQt6-WebEngine[${PYTHON_USEDEP},widgets]') pdf? ( www-plugins/pdfjs ) ) !qt6? ( dev-qt/qtcore:5[icu] dev-qt/qtgui:5[png] $(python_gen_cond_dep ' dev-python/PyQt5[${PYTHON_USEDEP},dbus,declarative,gui,network,opengl,printsupport,sql,widgets] dev-python/PyQtWebEngine[${PYTHON_USEDEP}]') pdf? (