commit: 72e58ddd77628f07bb266e61e567c6944336b4a4 Author: Leo Douglas <douglarek <AT> gmail <DOT> com> AuthorDate: Tue Apr 22 02:47:32 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Sun May 4 19:42:01 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72e58ddd
app-editors/vscode: add L10N use flag support Closes: https://bugs.gentoo.org/954170 Signed-off-by: Leo Douglas <douglarek <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/41694 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-editors/vscode/vscode-1.99.3.ebuild | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/app-editors/vscode/vscode-1.99.3.ebuild b/app-editors/vscode/vscode-1.99.3.ebuild index 04f694acb893..df9f3d1a84d7 100644 --- a/app-editors/vscode/vscode-1.99.3.ebuild +++ b/app-editors/vscode/vscode-1.99.3.ebuild @@ -3,7 +3,11 @@ EAPI=8 -inherit desktop pax-utils xdg optfeature +CHROMIUM_LANGS="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he + hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr + sv sw ta te th tr uk ur vi zh-CN zh-TW" + +inherit chromium-2 desktop pax-utils xdg optfeature DESCRIPTION="Multiplatform Visual Studio Code from Microsoft" HOMEPAGE="https://code.visualstudio.com" @@ -73,16 +77,25 @@ RDEPEND=" QA_PREBUILT="*" +src_unpack() { + default + mv "${S}"/VSCode-linux-* "${S}/vscode" || die +} + +src_configure() { + default + chromium_suid_sandbox_check_kernel_config +} + +src_prepare() { + default + pushd "vscode/locales" > /dev/null || die + chromium_remove_language_paks + popd > /dev/null || die +} + src_install() { - if use amd64; then - cd "${WORKDIR}/VSCode-linux-x64" || die - elif use arm; then - cd "${WORKDIR}/VSCode-linux-armhf" || die - elif use arm64; then - cd "${WORKDIR}/VSCode-linux-arm64" || die - else - die "Visual Studio Code only supports amd64, arm and arm64" - fi + cd vscode || die # Cleanup rm -r ./resources/app/ThirdPartyNotices.txt || die
