torbrowser-launcher-0.3.6-r1menelkir
download
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1 optfeature xdg
DESCRIPTION="A program to download, updated, and run the Tor Browser Bundle"
HOMEPAGE="https://github.com/micahflee/torbrowser-launcher"
SRC_URI="https://github.com/micahflee/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${PF}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
FIREFOX_BIN="app-accessibility/at-spi2-core
dev-libs/dbus-glib
>=dev-libs/glib-2.26:2
media-libs/fontconfig
>=media-libs/freetype-2.4.10
sys-apps/dbus
virtual/freedesktop-icon-theme
>=x11-libs/cairo-1.10[X]
x11-libs/gdk-pixbuf
>=x11-libs/gtk+-3.11:3[wayland,X]
x11-libs/libX11
x11-libs/libxcb
x11-libs/libXcomposite
x11-libs/libXcursor
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXrender
x11-libs/libXt
>=x11-libs/pango-1.22.0"
DEPEND="${PYTHON_DEPS}
dev-python/distro[${PYTHON_USEDEP}]"
RDEPEND="${PYTHON_DEPS}
${FIREFOX_BIN}
app-crypt/gpgme[python,${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/PyQt5[${PYTHON_USEDEP},widgets]
dev-python/PySocks[${PYTHON_USEDEP}]
dev-python/distro[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
!www-client/torbrowser"
pkg_postinst() {
xdg_pkg_postinst
optfeature "updating over system Tor" net-vpn/tor dev-python/txsocksx
}