public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin" <justin026@protonmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: www-client/mullvad-browser-bin/
Date: Sun, 11 Aug 2024 05:14:35 +0000 (UTC)	[thread overview]
Message-ID: <1723353260.c989910b530a70cd382fe2b39fa9d531821cffe0.justin026@gentoo> (raw)

commit:     c989910b530a70cd382fe2b39fa9d531821cffe0
Author:     Justin Donofrio <justin026 <AT> protonmail <DOT> com>
AuthorDate: Sun Aug 11 05:14:20 2024 +0000
Commit:     Justin <justin026 <AT> protonmail <DOT> com>
CommitDate: Sun Aug 11 05:14:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c989910b

www-client/mullvad-browser-bin: add 13.5.2

Signed-off-by: Justin Donofrio <justin026 <AT> protonmail.com>

 www-client/mullvad-browser-bin/Manifest            |  1 +
 .../mullvad-browser-bin-13.5.2.ebuild              | 91 ++++++++++++++++++++++
 2 files changed, 92 insertions(+)

diff --git a/www-client/mullvad-browser-bin/Manifest b/www-client/mullvad-browser-bin/Manifest
index 3bd587714..816554f35 100644
--- a/www-client/mullvad-browser-bin/Manifest
+++ b/www-client/mullvad-browser-bin/Manifest
@@ -1,2 +1,3 @@
 DIST mullvad-browser-linux-x86_64-13.5.1.tar.xz 103318368 BLAKE2B c9f4c1cfa951561d16368c4728ec95456076519b4270f4645b16156830963e374e9e2997909b18b6366877d8898bbe5de15b61119a1c6a993fdb0e16a02f20f5 SHA512 088465811c25639c507a023b4c1abf04ac5ae63ea066a6fc8f6504057ed9b7643895e0e376a8ff076a319b0e295e90dd2004267cc5388f85f094ecb08890ab45
+DIST mullvad-browser-linux-x86_64-13.5.2.tar.xz 103405692 BLAKE2B cac35a9b6ce8cb4a75e19722edda45c021f8b96fc15176964d4fdc7c814cc3a26a53ad5445cca33e9ffe0c55370dc3b8e9ae676e4b493fe208dae899b670c77a SHA512 bbec8268d0bd287bd52ef988ee1c89c6f5a634b90b2fd613dfc42f0ca74cef51f2d080c831e34bf8a2d2c2819a7863c8710f2e77336de9f4899664ae9e535ae0
 DIST mullvad-browser-linux-x86_64-13.5.tar.xz 103263340 BLAKE2B a66e20e75152e6d03b4eff8b5580418fb11587700bb5e16036f9bcb2c094cb0fe531653ef1daf64b1bf5841b25c3bf2378b85aae9b4ccb88287896cd054842ee SHA512 8dfd65460852f1be2906d8e87e3b45589534e79213477ae5ae51b16e170fa24b1ea0ba1866771b625fbd3fc80311310b56abd493e5e3799bbaa9031654574401

diff --git a/www-client/mullvad-browser-bin/mullvad-browser-bin-13.5.2.ebuild b/www-client/mullvad-browser-bin/mullvad-browser-bin-13.5.2.ebuild
new file mode 100644
index 000000000..bce05f41a
--- /dev/null
+++ b/www-client/mullvad-browser-bin/mullvad-browser-bin-13.5.2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop xdg
+
+DESCRIPTION="The Mullvad Browser is developed to minimize tracking and fingerprinting."
+HOMEPAGE="https://github.com/mullvad/mullvad-browser https://mullvad.net/"
+SRC_URI="https://github.com/mullvad/mullvad-browser/releases/download/${PV}/mullvad-browser-linux-x86_64-${PV}.tar.xz"
+
+S="${WORKDIR}"
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+
+IUSE="wayland +X"
+
+RESTRICT="bindist mirror test strip"
+
+RDEPEND="
+	app-accessibility/at-spi2-core
+	app-misc/mime-types
+	app-shells/bash
+	dev-libs/dbus-glib
+	dev-libs/glib
+	dev-libs/nspr
+	dev-libs/nss
+	gui-libs/gtk
+	media-libs/alsa-lib
+	media-libs/fontconfig
+	media-libs/freetype
+	media-video/ffmpeg
+	sys-apps/dbus
+	x11-libs/cairo
+	x11-themes/hicolor-icon-theme
+	x11-libs/libX11
+	x11-libs/libxcb
+	x11-libs/libXcomposite
+	x11-libs/libXcursor
+	x11-libs/libXdamage
+	x11-libs/libXfixes
+	x11-libs/libXi
+	x11-libs/libXrandr
+	x11-libs/libXrender
+	x11-libs/libXt
+	x11-libs/libXtst
+	wayland? (
+		sys-apps/xdg-desktop-portal
+	)"
+
+QA_PREBUILT="*"
+
+src_install() {
+	# Install profiles to home dir
+	touch "${S}"/mullvad-browser/Browser/is-packaged-app
+
+	# Fix desktop file vars
+	sed -i "s|Name=.*|Name=Mullvad Browser|g" "${S}"/mullvad-browser/start-mullvad-browser.desktop
+	sed -i "s|Exec=.*|Exec=/opt/mullvad-browser/Browser/start-mullvad-browser --detach|g" "${S}"/mullvad-browser/start-mullvad-browser.desktop
+	sed -i "s|Icon=.*|Icon=mullvad-browser|g" "${S}"/mullvad-browser/start-mullvad-browser.desktop
+
+	# Install shim for X11. Browser doesn't seem to launch without it, see upstream issue:
+	# https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/issues/40565
+	#
+	# The X11 shim below does not affect the browser's fingerprint or functionality.
+	if use X ; then
+		echo "#include <stdlib.h>
+		      void gdk_wayland_display_get_wl_compositor() { abort(); }
+		      void gdk_wayland_device_get_wl_pointer() { abort(); }
+		      void gdk_wayland_window_get_wl_surface() { abort(); }
+		      void gdk_wayland_display_get_wl_display() { abort(); }" > "${S}"/X11shim.c
+		cc -shared -o "${S}"/mullvad-browser/X11shim.so "${S}"/X11shim.c
+		sed -i '1iexport LD_PRELOAD=/opt/mullvad-browser/X11shim.so' "${S}"/mullvad-browser/Browser/start-mullvad-browser
+	fi
+
+	insinto /opt/
+	doins -r "${S}"/mullvad-browser
+
+	dosym "../../opt/mullvad-browser/Browser/start-mullvad-browser" /usr/bin/${PN}
+	domenu "${S}"/mullvad-browser/start-mullvad-browser.desktop
+	local x
+	for x in 16 32 48 64 128; do
+		newicon -s ${x} "${S}"/mullvad-browser/Browser/browser/chrome/icons/default/default${x}.png mullvad-browser.png
+	done
+
+	fperms 755 "/opt/mullvad-browser/Browser/abicheck"
+	fperms +x "/opt/mullvad-browser/Browser/start-mullvad-browser"
+	fperms +x "/opt/mullvad-browser/Browser/mullvadbrowser"
+	fperms +x "/opt/mullvad-browser/Browser/mullvadbrowser.real"
+}


             reply	other threads:[~2024-08-11  5:14 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-11  5:14 Justin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-05 14:05 [gentoo-commits] repo/proj/guru:dev commit in: www-client/mullvad-browser-bin/ strategictraveler
2025-03-05 14:02 strategictraveler
2025-02-05 16:11 Justin
2025-01-14  8:37 Lucio Sauer
2025-01-13 21:13 strategictraveler
2024-11-29 21:15 Justin
2024-11-26 10:43 Justin
2024-11-19 14:14 Justin
2024-10-10 21:35 Justin
2024-10-08 19:06 Justin
2024-09-06 17:03 Justin
2024-08-13  4:30 Justin
2024-08-13  4:24 Justin
2024-08-13  4:06 Justin
2024-08-11  5:10 Justin
2024-07-12 16:05 Justin
2024-07-07 13:43 Justin
2024-07-05 22:27 Justin
2024-07-03 12:59 Justin
2024-07-03 12:53 Justin
2024-07-03  4:19 Justin
2024-07-03  3:19 Justin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1723353260.c989910b530a70cd382fe2b39fa9d531821cffe0.justin026@gentoo \
    --to=justin026@protonmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox