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 10DAE15852A for ; Fri, 16 Aug 2024 07:28:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AF3642BC03D; Fri, 16 Aug 2024 07:28:03 +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 7F1712BC01D for ; Fri, 16 Aug 2024 07:28:03 +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 72A73342FAC for ; Fri, 16 Aug 2024 07:28:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D51841EDB for ; Fri, 16 Aug 2024 07:28:00 +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: <1723792524.83e49d4f34223d5e78c056498fc9e7726b2d7b69.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.92.2.ebuild X-VCS-Directories: app-editors/vscode/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 83e49d4f34223d5e78c056498fc9e7726b2d7b69 X-VCS-Branch: master Date: Fri, 16 Aug 2024 07:28:00 +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: 3c2bef3f-878d-4d16-bb5d-8015d4b6edfe X-Archives-Hash: a636332fd1dfc31aad31880d24c4de85 commit: 83e49d4f34223d5e78c056498fc9e7726b2d7b69 Author: Arthur Zamarin gentoo org> AuthorDate: Fri Aug 16 07:15:24 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Aug 16 07:15:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83e49d4f app-editors/vscode: add 1.92.2 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.92.2.ebuild | 131 ++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index bfa734f35ad9..b3bbc3aee193 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.92.0-arm64.tar.gz 141628799 BLAKE2B 94ffd063dfcd9352664b17a65a8b64 DIST vscode-1.92.1-amd64.tar.gz 144733912 BLAKE2B 5e764da6e3f6cbe4e386c847e7b42a2dc25b94dc7cd04132dddd846a9b3cebb70bb2a4e1addc3b27d736f813689bf994c1f2d39800ecf5ce1662f98704c69c3c SHA512 a53a074cc7d90efeec1830b17620cb738e5de7c0d494f1f8a9420f02178b371845c12bdf149ea94a2c9b40b8e464087799860715338e112f72e3814df5952879 DIST vscode-1.92.1-arm.tar.gz 129681373 BLAKE2B 41cfbc5394aafe236df9259940f5839e11ee6d9286e2d0ab79e4dd5b91a458587fbfea4430b7c544035116a1ded2c703eb09f3e02b8357cb29af588300f126c5 SHA512 5bd878e78f24c4d073b0bec827be0be43761539df27fdc6b20036a0e2a5adf5d839bc07e82e31e82177709e3282c92b6229136d561fd338506033aaf4364caa9 DIST vscode-1.92.1-arm64.tar.gz 141616445 BLAKE2B d29357ac474ee418d438947f421bf1aa21a65b9707d559d8d735a08804f4df2cd98cd2ea7ea28787a5c54f483fd2e60fb569bd94a2224dd8504eb752f7ac61c2 SHA512 79a5a42147dd60c3d7f3105dc874d45c3f414088fb01c798209437aca2edf522be8257f47a24e86713e4aa264d0012989739cb2fdbe5160d89a0f5263bb693df +DIST vscode-1.92.2-amd64.tar.gz 144730709 BLAKE2B acde98f31d5469ffc271c84e12ab8232af8c523a439f89d247e9f68d472650f8ee6425ad1be014632cb9d8622647cbe6c1c15ee6cfc58fac52f5eada716a9c88 SHA512 59e63815c260a412b757e692ea081e2029439120e877b0a436e692617ee57bb5aa3aea488c4a2363ae2a98bc76485fdfe477ac8314ac974a0f215ed594649694 +DIST vscode-1.92.2-arm.tar.gz 129669472 BLAKE2B 34050c923c45b0b5b25d579a36f449895df640fbcfb16b759e1c209e82b42805640b85adb1d736f89835a487fbfbc2ac905fc0c17969ec7c6cd8c9838c02e6fd SHA512 746a87f744fb51f679f3efd2385c6a3f6107632cc640967d4465e84e68e29dc12e6c42223c457bb2ab8d0e10a83bf42fd132f91466d40795971ad6348b5d04d8 +DIST vscode-1.92.2-arm64.tar.gz 141604400 BLAKE2B fa117d2e3dff1fd81c917347a060b4e276b26303ca8b6e93c035f4b4e9d7b72bad354e99ce3c482ad3fcb98cc83df12065b366ee33b934f3af0e9733648e88b3 SHA512 b0defdf1c0f368819538177070d8134bfabb3ef013845632c2a464f60bfae2bde34b237aa2ea97520bd3b841560e98c2f29a3627e962af8b288dbf4144ce4de6 diff --git a/app-editors/vscode/vscode-1.92.2.ebuild b/app-editors/vscode/vscode-1.92.2.ebuild new file mode 100644 index 000000000000..c06246461b83 --- /dev/null +++ b/app-editors/vscode/vscode-1.92.2.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" +}