public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lucio Sauer" <watermanpaint@posteo.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: www-client/mullvad-browser-bin/
Date: Tue, 13 Aug 2024 15:39:35 +0000 (UTC)	[thread overview]
Message-ID: <1723522988.928d9d9bd9cb05deae2f6dbaf5e28be99bcea205.watermanpaint@gentoo> (raw)

commit:     928d9d9bd9cb05deae2f6dbaf5e28be99bcea205
Author:     Justin Donofrio <justin026 <AT> protonmail <DOT> com>
AuthorDate: Tue Aug 13 04:23:08 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Tue Aug 13 04:23:08 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=928d9d9b

www-client/mullvad-browser-bin: Use toolchain-funcs, add die, move dep to optfeature

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

 www-client/mullvad-browser-bin/metadata.xml        |  1 -
 .../mullvad-browser-bin-13.5.2.ebuild              | 27 +++++++++++++---------
 2 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/www-client/mullvad-browser-bin/metadata.xml b/www-client/mullvad-browser-bin/metadata.xml
index f7b96b1a8..6c1877de5 100644
--- a/www-client/mullvad-browser-bin/metadata.xml
+++ b/www-client/mullvad-browser-bin/metadata.xml
@@ -10,6 +10,5 @@
         </upstream>
         <use>
                 <flag name="X">Add support for X11</flag>
-                <flag name="wayland">Add support for screensharing on wayland</flag>
         </use>
 </pkgmetadata>

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
index bce05f41a..dd733d29a 100644
--- 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
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit desktop xdg
+inherit desktop optfeature toolchain-funcs xdg
 
 DESCRIPTION="The Mullvad Browser is developed to minimize tracking and fingerprinting."
 HOMEPAGE="https://github.com/mullvad/mullvad-browser https://mullvad.net/"
@@ -14,14 +14,13 @@ LICENSE="MPL-2.0"
 SLOT="0"
 KEYWORDS="-* ~amd64"
 
-IUSE="wayland +X"
+IUSE="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
@@ -45,20 +44,20 @@ RDEPEND="
 	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
+	touch "${S}"/mullvad-browser/Browser/is-packaged-app || die
 
 	# 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
+	sed -i \
+		-e "s|Name=.*|Name=Mullvad Browser|g" \
+		-e "s|Exec=.*|Exec=/opt/mullvad-browser/Browser/start-mullvad-browser --detach|g" \
+		-e "s|Icon=.*|Icon=mullvad-browser|g" \
+		"${S}"/mullvad-browser/start-mullvad-browser.desktop || die
 
 	# 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
@@ -70,7 +69,7 @@ src_install() {
 		      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
+		$(tc-getCC) -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
 
@@ -89,3 +88,9 @@ src_install() {
 	fperms +x "/opt/mullvad-browser/Browser/mullvadbrowser"
 	fperms +x "/opt/mullvad-browser/Browser/mullvadbrowser.real"
 }
+
+pkg_postinst() {
+	xdg_pkg_postinst
+
+	optfeature "wayland screensharing support" sys-apps/xdg-desktop-portal
+}


             reply	other threads:[~2024-08-13 15:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-13 15:39 Lucio Sauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-09 15:39 [gentoo-commits] repo/proj/guru:master commit in: www-client/mullvad-browser-bin/ David Roman
2024-09-07  9:22 David Roman
2024-08-13 15:39 Lucio Sauer
2024-08-13 15:39 Lucio Sauer
2024-08-13  0:32 Lucio Sauer
2024-08-13  0:32 Lucio Sauer
2024-07-14  0:34 David Roman
2024-07-08 16:47 David Roman
2024-07-08 16:36 David Roman
2024-07-04 11:19 David Roman
2024-07-04 11:19 David Roman

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=1723522988.928d9d9bd9cb05deae2f6dbaf5e28be99bcea205.watermanpaint@gentoo \
    --to=watermanpaint@posteo.net \
    --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