From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1652004-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 C890E1581C1
	for <garchives@archives.gentoo.org>; Fri, 12 Jul 2024 06:02:06 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E4F3B2BC04B;
	Fri, 12 Jul 2024 06:02:05 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(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 CD8F02BC04B
	for <gentoo-commits@lists.gentoo.org>; Fri, 12 Jul 2024 06:02:05 +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 E86E23406BF
	for <gentoo-commits@lists.gentoo.org>; Fri, 12 Jul 2024 06:02:04 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 8AC191BD7
	for <gentoo-commits@lists.gentoo.org>; Fri, 12 Jul 2024 06:02:03 +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: <1720764112.b5b632f5244534555a381c40e7c67fed0f00abc2.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.91.1.ebuild
X-VCS-Directories: app-editors/vscode/
X-VCS-Committer: arthurzam
X-VCS-Committer-Name: Arthur Zamarin
X-VCS-Revision: b5b632f5244534555a381c40e7c67fed0f00abc2
X-VCS-Branch: master
Date: Fri, 12 Jul 2024 06:02:03 +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: db4fba86-5930-40ec-8710-86fc799b2e93
X-Archives-Hash: 362a4660cf4eb8fa36acaf03a09dca6e

commit:     b5b632f5244534555a381c40e7c67fed0f00abc2
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 12 06:00:47 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 12 06:01:52 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5b632f5

app-editors/vscode: add 1.91.1

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

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

diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index f34ca726cda6..997e544c5ff8 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -7,3 +7,6 @@ DIST vscode-1.90.2-arm64.tar.gz 140680835 BLAKE2B 6776979819c6743f7338a4a9e159c5
 DIST vscode-1.91.0-amd64.tar.gz 142201249 BLAKE2B c4b18679418a3b3ddb4eb306563b5f684756702df2ae5164976f0a00b04246ecfb5582f64d53d29c3e54895b7503760fbf08568b956b329523ea90008c65f582 SHA512 273d0dbe74df45c7cec7a42edc4e5cc80fb83891e3754087e62815579dde47d86110649c3cfdf0edd699fd6430e17fd2a3746a50a664d8b1a2af68134e35f94a
 DIST vscode-1.91.0-arm.tar.gz 127164708 BLAKE2B fa5c01d7aaceb3268bdd08f84e2975e05ad93af6d64cb0d1b3ad2225ba9cf3861080c59c3f6f77f1dfd4f7aa6d9bb82c80018a69c1c8c4589cc312ee39846876 SHA512 d92fa2a368cdee1d38e709926ad5c67ff0e5b49ff233203f03f93ec500dfb278205f2d046731bac18886a11cf424e627e598729da53b15e04d2cc3b5bad7013c
 DIST vscode-1.91.0-arm64.tar.gz 138968980 BLAKE2B 591a068e0de00a5898c9f2c83aaae7d1e2596dd2df0c85cb5a27d785d7678285e3d31c52aef204404e6805b5ccbf3ceb2b85d3bb0a309be838a5773c21ffbaba SHA512 2ece6eff89a742379a3e7c242c58d0f6926430a1f3d45d08f319ff5c1151d7f7c6bf98ec9a6906f367b493e3208cb58e85ee6e05215fd0526c39d11c7d7704e9
+DIST vscode-1.91.1-amd64.tar.gz 142223657 BLAKE2B 31fba4dc0940f217648554705debf13e0caf71e84a29f85c98e861b6c78327850724262ba1b927c10a8692b4a6db6fd8ddaec69dfa577f74ca6ef696f87dc3a7 SHA512 01ff19cd5a79550ab568ef6d9ad8dc6a0e6e15560dd01d97c30f6e6d5930430cccd0675c80791df06ffbd83351f85901f1b0c684b158b6eb1f68d21dccee7508
+DIST vscode-1.91.1-arm.tar.gz 127169905 BLAKE2B 5ac2da6c115851d796bfc7835d689a59476e4bf8db770c5089b2c484776ee270067f47574899ee57c49fd6bf5ef3ea27ad8a0bf183ff4d5aa0a78aa69a252276 SHA512 e136e79d0d70b386bcf8b81b7aa3293d5697f681fe85b4d8e183877b62a131a9cfe9a5f4e0cbf34d06d57d0e9e6513787a8061995ec7c2984df62e9d96b8195a
+DIST vscode-1.91.1-arm64.tar.gz 138976160 BLAKE2B 573ab5e6fa349ac80044b6d5f3ab4d9d7947248181dd20584b1ade1eb1b42fbcbab0f8a232bcb7898dbe4e9dd2eca4cc4e3d00dfe8f0927b2807d4c94a299d1b SHA512 18abbeea0c78c8f1b8dfa4fb88782f426b8e00f3352af91679ccd345bf385f7b142f5a84acf6cf41c982dca2190e0b73284b3c8b4d26c97e571247b7e12fc412

diff --git a/app-editors/vscode/vscode-1.91.1.ebuild b/app-editors/vscode/vscode-1.91.1.ebuild
new file mode 100644
index 000000000000..7eebb15e925a
--- /dev/null
+++ b/app-editors/vscode/vscode-1.91.1.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.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" "--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"
+}