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: Tue, 13 Aug 2024 04:24:13 +0000 (UTC) [thread overview]
Message-ID: <1723522988.928d9d9bd9cb05deae2f6dbaf5e28be99bcea205.justin026@gentoo> (raw)
commit: 928d9d9bd9cb05deae2f6dbaf5e28be99bcea205
Author: Justin Donofrio <justin026 <AT> protonmail <DOT> com>
AuthorDate: Tue Aug 13 04:23:08 2024 +0000
Commit: Justin <justin026 <AT> protonmail <DOT> com>
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
+}
next reply other threads:[~2024-08-13 4:24 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-13 4:24 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:06 Justin
2024-08-11 5:14 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=1723522988.928d9d9bd9cb05deae2f6dbaf5e28be99bcea205.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