From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9DCE4158041 for ; Fri, 8 Mar 2024 09:44:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CA47E29FD; Fri, 8 Mar 2024 09:44:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E426E29FD for ; Fri, 8 Mar 2024 09:44:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0253234307B for ; Fri, 8 Mar 2024 09:44:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30CF614EF for ; Fri, 8 Mar 2024 09:44:44 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1709891068.a6f5b055bbd0837655309807f0907617d2235bcd.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/vscode/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/vscode/Manifest app-editors/vscode/vscode-1.87.1.ebuild X-VCS-Directories: app-editors/vscode/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: a6f5b055bbd0837655309807f0907617d2235bcd X-VCS-Branch: master Date: Fri, 8 Mar 2024 09:44:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 839813af-940e-4687-99e9-231c71d2954a X-Archives-Hash: e26761ed717d3e2bc7aa3c44aa2cd44a commit: a6f5b055bbd0837655309807f0907617d2235bcd Author: Arthur Zamarin gentoo org> AuthorDate: Fri Mar 8 09:41:47 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Mar 8 09:44:28 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6f5b055 app-editors/vscode: add 1.87.1 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.87.1.ebuild | 132 ++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 62e637053efe..6b4b5aeab404 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.86.2-arm64.tar.gz 137533176 BLAKE2B c4a0c215322cdc317a81654f655b56 DIST vscode-1.87.0-amd64.tar.gz 140699732 BLAKE2B ad93f2feaef6c4cc3df0be5799ac4c154f62640b93790e8bc2571df0a49af033b07625fbea9befb6d52e7f084917813780409b32408b822b447603400628e1fd SHA512 ccd3a1de0cd7362dcb353d04ed7e35e84312c509d2aa24f955d7cd02fb7c93a2860374199f433c215c1b2e3c64805bcdd8f7cc5f9635a1c8e84130ba50e3250a DIST vscode-1.87.0-arm.tar.gz 126093562 BLAKE2B 1a90eee19bce6a6c8317353cf3098322c2265f86c632ac6900ede081f28e42741186b97f03186dba4a1189dd0a2079a3e118d006368b93af5029c5c34d812f0f SHA512 18a75d547d50ecd787ae263c88e0d2d87801636e268dfb9d534f384690213995562ab8d7d6ddd4db88d7ea52dc01e5ba0c7109bfa907aada6bf70c9cc934bcff DIST vscode-1.87.0-arm64.tar.gz 137643179 BLAKE2B 6ed3e3e8bf3f498f6e4da0a15b929bd32a1352cb691379dd7c50b87b90a369c78b859b374ac96a57e397d0ed9ddbe62d3e6c1db75e9a922695aee1eadb2bf74f SHA512 7e5535644b63e32e9d950239398405ff70a8a7611f4b90e5c2fb6bec292db8d0c237ff34f166d4bd930977449db68e7e06205e49a70cbb79f24e181347960f2c +DIST vscode-1.87.1-amd64.tar.gz 140704986 BLAKE2B af0bfa4512e11695818c39ff2f2225e940fc188e663d7db6ee1411d202dc26bd39e00f0fe6b944eee262987893dcf5887b1e6b43e2c9c9ad25a5cde78dc6e587 SHA512 927d8a6b211bc6a80202032f7e214acb3fec340a6c0cdf6c976432dce47a8885e77b342a5a8187bf1ce4bc678da00e353bcc4a644a1abfd2140ad8c3162b319a +DIST vscode-1.87.1-arm.tar.gz 126061815 BLAKE2B 678c31683effe30b58c514661aec70a7ea9c0d5e43df8711fc91d69790eb2c5108d59bbe0f47972c84cccbd12181a2d3a73e8b74b79ca3c458638154e2ba08f2 SHA512 94fc2709aa49fa30b3b77fec0c791997b6d9bba92b4629d42335839fc8a6a566422bc4c90447c059bac4e9bfd847eadb93ffae3717293f38f8b38717d4c2a13d +DIST vscode-1.87.1-arm64.tar.gz 137654705 BLAKE2B bd17d2aed14f038a275a6a567b9d98d9f2177af57a8e7296d652de5258720cf87d173b673c3cc7711153173798e5465d4c2fc2604e5e9bb0d80d5efb91a50f9e SHA512 c6cb87b51db9ed218d240d167dd5bd2da17d6f2c7665b321bcb6ee691c1a6e60cfc08410bd8dd252c5e3e264b472f43ae2f33696ecb33084ee7259d0b5c67ff1 diff --git a/app-editors/vscode/vscode-1.87.1.ebuild b/app-editors/vscode/vscode-1.87.1.ebuild new file mode 100644 index 000000000000..ac7c312270de --- /dev/null +++ b/app-editors/vscode/vscode-1.87.1.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop pax-utils xdg optfeature + +DESCRIPTION="Multiplatform Visual Studio Code from Microsoft" +HOMEPAGE="https://code.visualstudio.com" +SRC_URI=" + amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${P}-amd64.tar.gz ) + arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz ) + arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz ) +" +S="${WORKDIR}" + +LICENSE=" + Apache-2.0 + BSD + BSD-1 + BSD-2 + BSD-4 + CC-BY-4.0 + ISC + LGPL-2.1+ + Microsoft-vscode + MIT + MPL-2.0 + openssl + PYTHON + TextMate-bundle + Unlicense + UoI-NCSA + W3C +" +SLOT="0" +KEYWORDS="-* amd64 ~arm ~arm64" +IUSE="egl kerberos wayland" +RESTRICT="mirror strip bindist" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret[crypt] + app-misc/ca-certificates + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/libcanberra[gtk3] + media-libs/libglvnd + media-libs/mesa + net-misc/curl + sys-apps/dbus + sys-libs/zlib + sys-process/lsof + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libxkbfile + x11-libs/libXrandr + x11-libs/libXScrnSaver + x11-libs/pango + x11-misc/xdg-utils + kerberos? ( app-crypt/mit-krb5 ) +" + +QA_PREBUILT="*" + +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 + + # Cleanup + rm -r ./resources/app/ThirdPartyNotices.txt || die + + # Disable update server + sed -e "/updateUrl/d" -i ./resources/app/product.json || die + + if ! use kerberos; then + rm -r ./resources/app/node_modules.asar.unpacked/kerberos || die + fi + + # Install + pax-mark m code + mkdir -p "${ED}/opt/${PN}" || die + cp -r . "${ED}/opt/${PN}" || die + fperms 4711 /opt/${PN}/chrome-sandbox + + dosym -r "/opt/${PN}/bin/code" "usr/bin/vscode" + dosym -r "/opt/${PN}/bin/code" "usr/bin/code" + + 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}/code-url-handler.desktop" \ + > "${T}/code-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/code.desktop" \ + > "${T}/code.desktop" || die + + domenu "${T}/code.desktop" + domenu "${T}/code-url-handler.desktop" + newicon "resources/app/resources/linux/code.png" "vscode.png" +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "desktop notifications" x11-libs/libnotify + optfeature "keyring support inside vscode" "virtual/secret-service" +}