diff options
author | Hayley Hughes <hayley@foxes.systems> | 2021-12-02 11:11:50 +1100 |
---|---|---|
committer | Hayley Hughes <hayley@foxes.systems> | 2021-12-02 11:11:50 +1100 |
commit | 806afb23899e7adf46335fdbe627ab8ebc5b77bc (patch) | |
tree | 7af2e669e07edc6d8c093d9f45d8682eb29e15db /www-client | |
parent | net-misc/wsdd: add 'die' call to commands (diff) | |
download | guru-806afb23899e7adf46335fdbe627ab8ebc5b77bc.tar.gz guru-806afb23899e7adf46335fdbe627ab8ebc5b77bc.tar.bz2 guru-806afb23899e7adf46335fdbe627ab8ebc5b77bc.zip |
www-client/torbrowser-launcher: bump to python 10
* Remove exteranous messages from postinst
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Hayley Hughes <hayley@foxes.systems>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/torbrowser-launcher/torbrowser-launcher-0.3.5-r2.ebuild | 51 | ||||
-rw-r--r-- | www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild | 4 |
2 files changed, 52 insertions, 3 deletions
diff --git a/www-client/torbrowser-launcher/torbrowser-launcher-0.3.5-r2.ebuild b/www-client/torbrowser-launcher/torbrowser-launcher-0.3.5-r2.ebuild new file mode 100644 index 000000000..7030cf051 --- /dev/null +++ b/www-client/torbrowser-launcher/torbrowser-launcher-0.3.5-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 optfeature xdg + +DESCRIPTION="A program to download, updated, and run the Tor Browser Bundle" +HOMEPAGE="https://github.com/micahflee/torbrowser-launcher" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/micahflee/${PN}.git" +else + SRC_URI="https://github.com/micahflee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="test" +LICENSE="MIT" +SLOT="0" +IUSE="apparmor" + +RDEPEND=" + app-crypt/gpgme[python,${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}] + apparmor? ( sys-libs/libapparmor ) +" + +python_install_all() { + distutils-r1_python_install_all + + # delete apparmor profiles + if ! use apparmor; then + rm -r "${D}/etc/apparmor.d" || die "Failed to remove apparmor profiles" + rmdir "${D}/etc" || die "Failed to remove empty directory" + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "updating over system TOR" net-vpn/tor dev-python/txsocksx +} diff --git a/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild b/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild index a17dee1ae..7030cf051 100644 --- a/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild +++ b/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python3_{8..9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 optfeature xdg @@ -47,7 +47,5 @@ python_install_all() { pkg_postinst() { xdg_pkg_postinst - elog "To get additional features, some optional runtime dependencies" - elog "may be installed:" optfeature "updating over system TOR" net-vpn/tor dev-python/txsocksx } |