aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@protonmail.com>2020-11-15 22:42:51 +0100
committerMaciej Barć <xgqt@protonmail.com>2020-11-15 22:42:51 +0100
commit1b494db89297daa883047bcecf9e06cd70413a61 (patch)
treef48932e0a1a29971728465f6bfdc8ddcb31a5288 /www-client
parentgames-emulation/melonds: add 0.8.3, 0.9, 9999; move from src_prepare (diff)
downloadguru-1b494db89297daa883047bcecf9e06cd70413a61.tar.gz
guru-1b494db89297daa883047bcecf9e06cd70413a61.tar.bz2
guru-1b494db89297daa883047bcecf9e06cd70413a61.zip
www-client/torbrowser-launcher: 0.3.2, 0.3.3, 9999 from src_prepare
Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/torbrowser-launcher/Manifest2
-rw-r--r--www-client/torbrowser-launcher/files/torbrowser-launcher-distro.patch11
-rw-r--r--www-client/torbrowser-launcher/metadata.xml14
-rw-r--r--www-client/torbrowser-launcher/torbrowser-launcher-0.3.2.ebuild58
-rw-r--r--www-client/torbrowser-launcher/torbrowser-launcher-0.3.3.ebuild58
-rw-r--r--www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild58
6 files changed, 201 insertions, 0 deletions
diff --git a/www-client/torbrowser-launcher/Manifest b/www-client/torbrowser-launcher/Manifest
new file mode 100644
index 00000000..f757cedb
--- /dev/null
+++ b/www-client/torbrowser-launcher/Manifest
@@ -0,0 +1,2 @@
+DIST torbrowser-launcher-0.3.2.tar.gz 227363 BLAKE2B b3e35f546ef84aec02a3b75068b08a6d60f9f41f6194d1bf25862c48780f77d72e4443e594add04c5a0d44cf01bcfc8c04d6d7d67c767c2cc75cc8b4a9c42f9c SHA512 26c5517723c730591ea5c4b81e30728e9db7323afcafc99d17a178d4300bad3df8731ffb063cc53fe189a3b5e2872395c913b9eea6595acac7f31ff4a1c5f105
+DIST torbrowser-launcher-0.3.3.tar.gz 187239 BLAKE2B 8792e5474efe32124b401287bfbe01caef40381a35bb09062903da09c51f246b6092da2a3ffb84531c8f2be1bb45079263b8e46c98c5efa370abc6200289ac99 SHA512 129bcc3006d1cda92ab521c5106cacccf934b964b737f28bd89de6872f061b9e039678ca34b8ed30f348a0a47c3d87661b103f48e19a7edfae72a69512220fe6
diff --git a/www-client/torbrowser-launcher/files/torbrowser-launcher-distro.patch b/www-client/torbrowser-launcher/files/torbrowser-launcher-distro.patch
new file mode 100644
index 00000000..d2efb5d3
--- /dev/null
+++ b/www-client/torbrowser-launcher/files/torbrowser-launcher-distro.patch
@@ -0,0 +1,11 @@
+--- a/setup.py
++++ b/setup.py
+@@ -35,7 +35,7 @@ from distutils.core import setup
+ SHARE = 'share'
+
+ # detect linux distribution
+-distro = platform.dist()[0]
++distro = 'gentoo'
+
+
+ def file_list(path):
diff --git a/www-client/torbrowser-launcher/metadata.xml b/www-client/torbrowser-launcher/metadata.xml
new file mode 100644
index 00000000..80aca128
--- /dev/null
+++ b/www-client/torbrowser-launcher/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xgqt@protonmail.com</email>
+ <name>Maciej Barć</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">micahflee/torbrowser-launcher</remote-id>
+ </upstream>
+ <use>
+ <flag name="apparmor">Enable AppArmor support</flag>
+ </use>
+</pkgmetadata>
diff --git a/www-client/torbrowser-launcher/torbrowser-launcher-0.3.2.ebuild b/www-client/torbrowser-launcher/torbrowser-launcher-0.3.2.ebuild
new file mode 100644
index 00000000..a228e582
--- /dev/null
+++ b/www-client/torbrowser-launcher/torbrowser-launcher-0.3.2.ebuild
@@ -0,0 +1,58 @@
+# 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"
+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="apparmor"
+
+RDEPEND="
+ app-crypt/gpgme[python,${PYTHON_USEDEP}]
+ dev-python/PyQt5[${PYTHON_USEDEP},widgets]
+ dev-python/PySocks[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ apparmor? ( sys-libs/libapparmor )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-distro.patch"
+)
+
+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_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
+}
diff --git a/www-client/torbrowser-launcher/torbrowser-launcher-0.3.3.ebuild b/www-client/torbrowser-launcher/torbrowser-launcher-0.3.3.ebuild
new file mode 100644
index 00000000..a228e582
--- /dev/null
+++ b/www-client/torbrowser-launcher/torbrowser-launcher-0.3.3.ebuild
@@ -0,0 +1,58 @@
+# 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"
+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="apparmor"
+
+RDEPEND="
+ app-crypt/gpgme[python,${PYTHON_USEDEP}]
+ dev-python/PyQt5[${PYTHON_USEDEP},widgets]
+ dev-python/PySocks[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ apparmor? ( sys-libs/libapparmor )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-distro.patch"
+)
+
+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_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
+}
diff --git a/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild b/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild
new file mode 100644
index 00000000..a228e582
--- /dev/null
+++ b/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild
@@ -0,0 +1,58 @@
+# 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"
+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="apparmor"
+
+RDEPEND="
+ app-crypt/gpgme[python,${PYTHON_USEDEP}]
+ dev-python/PyQt5[${PYTHON_USEDEP},widgets]
+ dev-python/PySocks[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ apparmor? ( sys-libs/libapparmor )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-distro.patch"
+)
+
+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_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
+}