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 29AB6158041 for ; Wed, 28 Feb 2024 19:56:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64F61E2A3B; Wed, 28 Feb 2024 19:56:01 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 3BD0BE2A3B for ; Wed, 28 Feb 2024 19:56:01 +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 3F216343019 for ; Wed, 28 Feb 2024 19:56:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CEB32E95 for ; Wed, 28 Feb 2024 19:55:58 +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: <1709150135.a1a5efeae712465f3a3a78e50ab8a31dfe144ac0.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.0.ebuild X-VCS-Directories: app-editors/vscode/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: a1a5efeae712465f3a3a78e50ab8a31dfe144ac0 X-VCS-Branch: master Date: Wed, 28 Feb 2024 19:55:58 +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: fb3949bf-149d-4029-b3fe-c616b4257f0b X-Archives-Hash: c65ec54271d415021a9bba914091f989 commit: a1a5efeae712465f3a3a78e50ab8a31dfe144ac0 Author: Arthur Zamarin gentoo org> AuthorDate: Wed Feb 28 19:55:35 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed Feb 28 19:55:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1a5efea app-editors/vscode: add 1.87.0 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.87.0.ebuild | 132 ++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 2375070d05fe..62e637053efe 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -1,3 +1,6 @@ DIST vscode-1.86.2-amd64.tar.gz 140413911 BLAKE2B a46f1613e45bb020ee0550b7dcc5116973dcd6bc791fd38c46e5246da5089150d2b15b59a5e0afb5aebd6d690a246f0bdf7ac3a764e4172d33df2eedb7a6a4e9 SHA512 5c311bb24ac0d801f1a4ce73a982389df9092871364a02e44b914537bb6bede4078aa41b054fba2c28755357e3d89ec1763b1f7778fd21f59383fc2dafe1627f DIST vscode-1.86.2-arm.tar.gz 125989628 BLAKE2B 3056c129af61e2eb8bf8b6568294b0b83fc3977a2bb0ac823e06594d8dbebadd2068618b270fb2146347f7e1528183b111b1f739a618a9e1181874de767af6c8 SHA512 900d345cb6e8f77c15575c0a01045fb2ac18837fc9cce1fa6c6fa10997fc227cc3efc96377aa39557b3ddc7d45d5b26d8f55ef35d6a6fdc8a37f2c703b4fdcc9 DIST vscode-1.86.2-arm64.tar.gz 137533176 BLAKE2B c4a0c215322cdc317a81654f655b563ded375f3fd936674625371cb1eba05b51dba5fe91a83d2ae78a6ef13dd7815bcec110fc2075ee185cad868b2d41223365 SHA512 2cd4d22cba02aa946d074b16c6299c0a8077a3be8e273759ff50d9126235b6847e3b1a5d07b3fefc9f6d143f939969ab6a8b6ae3b2f27b25e417e39b735de96b +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 diff --git a/app-editors/vscode/vscode-1.87.0.ebuild b/app-editors/vscode/vscode-1.87.0.ebuild new file mode 100644 index 000000000000..2b8657537b5b --- /dev/null +++ b/app-editors/vscode/vscode-1.87.0.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" +}