aboutsummaryrefslogtreecommitdiffstats
path: root/app-editors/vscodium/vscodium-1.85.1.23348.ebuild
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app-editors/vscodium/vscodium-1.85.1.23348-r2.ebuild (renamed from app-editors/vscodium/vscodium-1.85.1.23348.ebuild)29
1 files changed, 22 insertions, 7 deletions
diff --git a/app-editors/vscodium/vscodium-1.85.1.23348.ebuild b/app-editors/vscodium/vscodium-1.85.1.23348-r2.ebuild
index 38958cc..3911101 100644
--- a/app-editors/vscodium/vscodium-1.85.1.23348.ebuild
+++ b/app-editors/vscodium/vscodium-1.85.1.23348-r2.ebuild
@@ -18,8 +18,6 @@ HOMEPAGE="https://vscodium.com/"
SRC_URI="$(arch_src_uri amd64 x64)"
S="${WORKDIR}"
-RESTRICT="strip bindist"
-
LICENSE="
Apache-2.0
BSD
@@ -39,7 +37,9 @@ LICENSE="
W3C
"
SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="amd64"
+IUSE="egl kerberos wayland"
+RESTRICT="strip bindist"
RDEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
@@ -86,10 +86,25 @@ src_install() {
dosym -r "/opt/${PN}/bin/codium" "usr/bin/vscodium"
dosym -r "/opt/${PN}/bin/codium" "usr/bin/codium"
- domenu "${FILESDIR}/vscodium.desktop"
- domenu "${FILESDIR}/vscodium-url-handler.desktop"
- domenu "${FILESDIR}/vscodium-wayland.desktop"
- domenu "${FILESDIR}/vscodium-url-handler-wayland.desktop"
+
+ local EXEC_EXTRA_FLAGS=()
+ if use wayland; then
+ EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" )
+ fi
+ if use egl; then
+ EXEC_EXTRA_FLAGS+=( "--use-gl=egl" )
+ fi
+
+ sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
+ "${FILESDIR}/vscodium-url-handler.desktop" \
+ > "${T}/vscodium-url-handler.desktop" || die
+
+ sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
+ "${FILESDIR}/vscodium.desktop" \
+ > "${T}/vscodium.desktop" || die
+
+ domenu "${T}/vscodium.desktop"
+ domenu "${T}/vscodium-url-handler.desktop"
newicon "resources/app/resources/linux/code.png" "vscodium.png"
}