From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1677222-garchives=archives.gentoo.org@lists.gentoo.org>
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 669FA15807A
	for <garchives@archives.gentoo.org>; Sun,  6 Oct 2024 19:35:58 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 75656E29A5;
	Sun,  6 Oct 2024 19:35:57 +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 59A23E29A5
	for <gentoo-commits@lists.gentoo.org>; Sun,  6 Oct 2024 19:35:57 +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 6B68A34301F
	for <gentoo-commits@lists.gentoo.org>; Sun,  6 Oct 2024 19:35:56 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 0DD061987
	for <gentoo-commits@lists.gentoo.org>; Sun,  6 Oct 2024 19:35:55 +0000 (UTC)
From: "Arthur Zamarin" <arthurzam@gentoo.org>
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" <arthurzam@gentoo.org>
Message-ID: <1728243346.cc27dca2d9383b72b3813f0dd357b358140e68c9.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.94.0.ebuild
X-VCS-Directories: app-editors/vscode/
X-VCS-Committer: arthurzam
X-VCS-Committer-Name: Arthur Zamarin
X-VCS-Revision: cc27dca2d9383b72b3813f0dd357b358140e68c9
X-VCS-Branch: master
Date: Sun,  6 Oct 2024 19:35:55 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 593ddccf-6557-4f03-add2-6a09375f0b3a
X-Archives-Hash: d6a0935fbf63f967ad2ffbacb06b664f

commit:     cc27dca2d9383b72b3813f0dd357b358140e68c9
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  6 19:24:48 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Oct  6 19:35:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc27dca2

app-editors/vscode: add 1.94.0

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-editors/vscode/Manifest             |   3 +
 app-editors/vscode/vscode-1.94.0.ebuild | 131 ++++++++++++++++++++++++++++++++
 2 files changed, 134 insertions(+)

diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index f8bcc1822483..0d26696c0ad3 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -7,3 +7,6 @@ DIST vscode-1.93.0-arm64.tar.gz 142237085 BLAKE2B 517d4cc79cab13e6feed478c65b0fe
 DIST vscode-1.93.1-amd64.tar.gz 145338512 BLAKE2B 695efd4382aeab3c9aded7954146b35f9340ce17f9410f215461b9bb42ed0d1e82d32352f01a6d48d94876504d3ba559d8ded021fb24980da60750dd3eb956df SHA512 1fb697549f685c820154375426320addd716921a6bae859263dfec9aeabdd74f74826f300c65d78c99fec1a110cebfe031bf439811a56f16ec41fda3fdc98611
 DIST vscode-1.93.1-arm.tar.gz 130274818 BLAKE2B 781d9a7784dd936a81f9407189dd1608b6778baec0c691f2337e3c3f1605578d09335a437de3b5d423b0df86b5f8256bb922ab5b7496df53b47e53788ccf9881 SHA512 e909d8126ee0013dc21c2eb97cca2cae3f4e823ff7b6342b544669d2c7b66a407ac3b56e68015130f6a807e64187bab88010e16037eb13dd27354069c2abffa9
 DIST vscode-1.93.1-arm64.tar.gz 142212394 BLAKE2B 41c749fcfff253dcf9295429129c9487cc95b12f9c58f85c2864e5fbd65efd1b1818a438c9eb4132f6413ae83bca4ea27036510845eed446123a1e071fba4d39 SHA512 069339d4623a64d3de39241b9490b8ecda581728c78e343bff4749d06ec22311cb952243d485ea1c91aa16a46f74c66c06e7a8425b1063a9436b9161401812a3
+DIST vscode-1.94.0-amd64.tar.gz 144889379 BLAKE2B 17fbd71f998cdc9b88ace561189da209e519184a2f8e59eb030b3b4b1c92eebb1ac8b66e5eb523a158f889d8e5762a7b94b66241768e389a794b453a3d6e3322 SHA512 f9cc1d72a08d3368db102b30e54c7301ebd0cbc1e94ecc15473ba74e426ce87ff3a8b3d896d200be1a1cac892b546b684dc70afa85994a6d7a341a8bff8f8232
+DIST vscode-1.94.0-arm.tar.gz 129429788 BLAKE2B 0101dd7fa96054436150c1920e52fe79242c2d8c3fcfe636928ce1e235394a76ed473edaf687af4f1fe8707fae652ab7504279bcaca0362db151add22e9d2ec2 SHA512 822b5a72dfc48c7fe76c81aabc22da30a341680038bca0c56295b62941ff46fb8ffa61f6aacaf73aa92c103fcf204ed3c029a3074a0841064dbb6610b82da2d9
+DIST vscode-1.94.0-arm64.tar.gz 141176632 BLAKE2B 24983ff03439f74597375abf763ea194337abf7e68a43b74748ed22b47a873483cf63b73159554530278fdcefc6dbac949e3b8450dba1502784568a25f87f15b SHA512 00b98be5070e0d03f418fe18fa3e7fbceb6afc12d2c5cd90956131b23773681f1fe99b7e11c096ce238d4b29c2669047081f7112298d7965ea11f853e4b5ad6b

diff --git a/app-editors/vscode/vscode-1.94.0.ebuild b/app-editors/vscode/vscode-1.94.0.ebuild
new file mode 100644
index 000000000000..7757235fed73
--- /dev/null
+++ b/app-editors/vscode/vscode-1.94.0.ebuild
@@ -0,0 +1,131 @@
+# 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/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
+
+	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"
+}