diff options
author | Wolfgang Müller | 2024-01-15 13:09:18 +0100 |
---|---|---|
committer | Wolfgang Müller | 2024-01-15 13:09:18 +0100 |
commit | 7dbf5a8aa3c507a405528d087c503792a14da1bf (patch) | |
tree | 1dc3c3904efac22f8100954ca820cd06c51b8853 /app-editors/vscodium/vscodium-1.85.1.23348.ebuild | |
parent | 3b07d6ac99386a37f53962c6907420380bc220e5 (diff) | |
download | pramantha-7dbf5a8aa3c507a405528d087c503792a14da1bf.tar.gz |
app-editors/vscodium: Sync with upstream ebuild
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" } |