From 2392766eda9a4b2b346044ea95d7364fcc906b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Fri, 4 Sep 2020 17:29:21 +0200 Subject: [PATCH] www-client/torbrowser-launcher: patch for python 3.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.5, Repoman-2.3.23 Signed-off-by: Maciej Barć --- .../files/torbrowser-launcher-distro.patch | 11 +++++++++++ .../torbrowser-launcher-0.3.2.ebuild | 4 ++++ .../torbrowser-launcher-9999.ebuild | 4 ++++ 3 files changed, 19 insertions(+) create mode 100644 www-client/torbrowser-launcher/files/torbrowser-launcher-distro.patch 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 0000000..d2efb5d --- /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/torbrowser-launcher-0.3.2.ebuild b/www-client/torbrowser-launcher/torbrowser-launcher-0.3.2.ebuild index eccd0ba..00f6af5 100644 --- a/www-client/torbrowser-launcher/torbrowser-launcher-0.3.2.ebuild +++ b/www-client/torbrowser-launcher/torbrowser-launcher-0.3.2.ebuild @@ -31,6 +31,10 @@ RDEPEND=" dev-python/requests[${PYTHON_USEDEP}] " +PATCHES=( + "${FILESDIR}/${PN}-distro.patch" +) + python_install_all() { distutils-r1_python_install_all diff --git a/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild b/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild index eccd0ba..00f6af5 100644 --- a/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild +++ b/www-client/torbrowser-launcher/torbrowser-launcher-9999.ebuild @@ -31,6 +31,10 @@ RDEPEND=" dev-python/requests[${PYTHON_USEDEP}] " +PATCHES=( + "${FILESDIR}/${PN}-distro.patch" +) + python_install_all() { distutils-r1_python_install_all