From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6110B1584F2 for ; Thu, 13 Mar 2025 20:03:59 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 47D3B3430F9 for ; Thu, 13 Mar 2025 20:03:59 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 9A1AA1103C8; Thu, 13 Mar 2025 20:03:55 +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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 8EDD71103C8 for ; Thu, 13 Mar 2025 20:03:55 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3E17A3430E6 for ; Thu, 13 Mar 2025 20:03:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA82A2607 for ; Thu, 13 Mar 2025 20:03:53 +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: <1741896216.4ca48119736f108a77a338a876a46b1da33cb0e1.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.98.2.ebuild X-VCS-Directories: app-editors/vscode/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 4ca48119736f108a77a338a876a46b1da33cb0e1 X-VCS-Branch: master Date: Thu, 13 Mar 2025 20:03:53 +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: 7adaa2b0-4bc2-4528-b090-79c0052db810 X-Archives-Hash: c747c1044ffbc4b7c93c8cb24092a086 commit: 4ca48119736f108a77a338a876a46b1da33cb0e1 Author: Arthur Zamarin gentoo org> AuthorDate: Thu Mar 13 18:29:06 2025 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Mar 13 20:03:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ca48119 app-editors/vscode: add 1.98.2 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.98.2.ebuild | 137 ++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 51d65913337d..1b25a5548b38 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.98.0-arm64.tar.gz 149345224 BLAKE2B 568c342a262cfa8f6b3520072d63eb DIST vscode-1.98.1-amd64.tar.gz 148575540 BLAKE2B addb847defc1e476da88b591fb13cddd965142bc6f43a33eec961e901b043575ab296498a4bc5b456979bb5c27a429eed16edfff3f8a2b729f2242f3d529a29c SHA512 f9056bf8c477ea170be6c34c20d321f482042dfa23899d7e3f225097ad2d10e2f5620d882d542b03f7291aaf95835943b7a74de53c2667e952f652a0f1a3884e DIST vscode-1.98.1-arm.tar.gz 138886561 BLAKE2B b62c7c33185b79da9d071d50b21cac3f87797fd14f4e2c9cc2a5f95f438df255fdee38d7eeabafa1f0a0b44180db46e3fb725587304f1da81c459ac949c9c0e1 SHA512 53a9c93f26c66441f971a7cbf4bd57468c5f53b461c270733701c8cc3586869cdda9e78a5bd339001b0647a494a005ad7c8ce28f7c6ba7587db234a524c8d15b DIST vscode-1.98.1-arm64.tar.gz 149342137 BLAKE2B 43836e1792a6f9d7bbfcc44e6c75d775b2748e172b332f62b02e7bb793284b32bf3c57dab47d87fbdf80680e5881c294add504701d0fec6e78227a9298598f90 SHA512 fc5de008a1742be595804868d14abb2c34844acf564eae02a1a3dbc2d6ad23a1603ab2784f1f80350defc4151a330f99a725e9fe4fb5db5845eb77d2a957f303 +DIST vscode-1.98.2-amd64.tar.gz 148578157 BLAKE2B c13b525807ec9ce8a6be69da73586f8b5b0cf85be4d5ed3220deaaa22a01bc42dd0a7159ae24627681b4d717a0f3857ab9380f17198cf7b0e167fa2704740efd SHA512 46240ae53acf0dc7c1aaec962d0232096d11a1afba864994c5b18e3178c7d04040c3c6191be043cf3821af07ded200e34eff1574ea060aaacc024fe898c0ce18 +DIST vscode-1.98.2-arm.tar.gz 138905893 BLAKE2B 48183b8a4c4c676b0108e19fec5118df566ec97dabfa5b3a3e57b55e74a77d02e5d43b33172c50fc9cd371e58d39d9df63708b5ed5b4b39353cdbd6a4c16a5d0 SHA512 3c819428d3a89203bb33e29f1ea72e2d35f887bee7f35dbd181803d585dfc30e732f0a8d83a4561b197b1920db742dc30070938109dcb00d0a81a7ddb70d1c49 +DIST vscode-1.98.2-arm64.tar.gz 149345789 BLAKE2B 2fffacfe0302dcfe530595895399a5fe50fbe6e52458f39fcf1ee26ccf5043dd5874676c272587ddbf1c4f546d986cc057579bdaa5d4c181de877f0cad9f58f2 SHA512 b71e8aeaf0a21550e909c433d2758336c31d52a3f548cbd0fb72778df8a165e26653fdd5384e174237d8a9b5dd7023499fb54a3d57c050daf07303ada3f10ee7 diff --git a/app-editors/vscode/vscode-1.98.2.ebuild b/app-editors/vscode/vscode-1.98.2.ebuild new file mode 100644 index 000000000000..04f694acb893 --- /dev/null +++ b/app-editors/vscode/vscode-1.98.2.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2025 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/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/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" "--enable-wayland-ime" ) + 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 + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/code-open-in-new-window.desktop" \ + > "${T}/code-open-in-new-window.desktop" || die + + domenu "${T}/code.desktop" + domenu "${T}/code-url-handler.desktop" + domenu "${T}/code-open-in-new-window.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" + optfeature "Live Share" dev-libs/icu +}