www-client/torbrowser-launcher: new package; add version 0.3.2 and live 9999
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
parent
471f819240
commit
7b1b98cc20
1
www-client/torbrowser-launcher/Manifest
Normal file
1
www-client/torbrowser-launcher/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST torbrowser-launcher-0.3.2.tar.gz 227363 BLAKE2B b3e35f546ef84aec02a3b75068b08a6d60f9f41f6194d1bf25862c48780f77d72e4443e594add04c5a0d44cf01bcfc8c04d6d7d67c767c2cc75cc8b4a9c42f9c SHA512 26c5517723c730591ea5c4b81e30728e9db7323afcafc99d17a178d4300bad3df8731ffb063cc53fe189a3b5e2872395c913b9eea6595acac7f31ff4a1c5f105
|
7
www-client/torbrowser-launcher/metadata.xml
Normal file
7
www-client/torbrowser-launcher/metadata.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<upstream>
|
||||
<remote-id type="github">micahflee/torbrowser-launcher</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1 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"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/micahflee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
RESTRICT="mirror"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
app-crypt/gpgme[python,${PYTHON_USEDEP}]
|
||||
dev-python/PyQt5[${PYTHON_USEDEP},widgets]
|
||||
dev-python/PySocks[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
# delete apparmor profiles
|
||||
rm -r "${D}/etc/apparmor.d" || die "Failed to remove apparmor profiles"
|
||||
rmdir "${D}/etc" || die "Failed to remove empty directory"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
|
||||
elog "For updating over system TOR install net-vpn/tor and dev-python/txsocksx"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1 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"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/micahflee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
RESTRICT="mirror"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
app-crypt/gpgme[python,${PYTHON_USEDEP}]
|
||||
dev-python/PyQt5[${PYTHON_USEDEP},widgets]
|
||||
dev-python/PySocks[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
# delete apparmor profiles
|
||||
rm -r "${D}/etc/apparmor.d" || die "Failed to remove apparmor profiles"
|
||||
rmdir "${D}/etc" || die "Failed to remove empty directory"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
|
||||
elog "For updating over system TOR install net-vpn/tor and dev-python/txsocksx"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
Loading…
Reference in New Issue
Block a user