summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-11-09 22:50:22 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-11-09 22:53:57 +0200
commit543744650e0b99587bf57ee72ec7a359f1fcc259 (patch)
tree01a66c25edb80c929340bccee0a66df8a5999c0f /app-editors/vscode
parentdev-python/colour: enable py3.12 (diff)
downloadgentoo-543744650e0b99587bf57ee72ec7a359f1fcc259.tar.gz
gentoo-543744650e0b99587bf57ee72ec7a359f1fcc259.tar.bz2
gentoo-543744650e0b99587bf57ee72ec7a359f1fcc259.zip
app-editors/vscode: add 1.84.2
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors/vscode')
-rw-r--r--app-editors/vscode/Manifest3
-rw-r--r--app-editors/vscode/vscode-1.84.2.ebuild117
2 files changed, 120 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index 64c176219d7d..10e18cbb73de 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -7,3 +7,6 @@ DIST vscode-1.84.0-arm64.tar.gz 132914793 BLAKE2B 6d8f1206f8feb8aff3dfb8e2e9f34d
DIST vscode-1.84.1-amd64.tar.gz 135727521 BLAKE2B a0b6ab48842ec3359f0dd29244346edba4b1468a97daffa7247655509a2bffe80a7fe642180ce13ced1b7dbbe64b3bb43fb386e6094d60ae84278743890602d1 SHA512 2768a706d6acbd9f723d9b3da7a15ddead82f4c01b6ae69762713b9ad0beaa9b74df66041263b8853b1e97ce4cd9178230df21e71639136f035177fc660e9a28
DIST vscode-1.84.1-arm.tar.gz 122669562 BLAKE2B f0b6201ca18fc2ca8eb4ae20784d742ce841ee2672cbe39087350b031a16b9a0c6db0edb1e5cd54f969537c40d9b290a6da5d4dd9be268255b34cefef865c37b SHA512 2d5b0048c8865e536540e55d445676fa10ee391a6cf175173c40801c8ca6c5bd3b945aca2f8c89bd11b6284fcb2745a6bf7dae4008c41c09f9c760d9fbb28843
DIST vscode-1.84.1-arm64.tar.gz 132919962 BLAKE2B 354c03703f9238f8141d1e710fc6d14554f73c3f5cf1b1847fc9ad8bd508beab75b2c8d227b0b05d8b54a22a0f0662f60aad6e5669af70c59d42485f2cb570a2 SHA512 709cc5f413e9250206d59fb6dd2a73d0444bc4338b75f8150f1dec30aa73b2f169422acb517485be37eaa9c82976ebfe7edd0011ab7341c625717d867eded62d
+DIST vscode-1.84.2-amd64.tar.gz 135719194 BLAKE2B ab4baf18195be20e9b1d05e7d832190deea4faba61e1fd0fde89b3bfb7fb6861a69608e79fb41ce7f3a29fe506297e163196375389ea2b4faaf9091592ac64b1 SHA512 b80c7824c4ac21e64c5751c67ff4308854baea732ed8250b5e4034dfe563803e8624b329c662414ca646ffb6d80ff8e5ff3c30fdcc58b34ea3377ef258b59d38
+DIST vscode-1.84.2-arm.tar.gz 122667743 BLAKE2B 6b9bc88041e055edc7653b98f20a847734f233bb1c727057bde7d140881929176ece1a9d811020548bbe18edab5ca712aa9dcd0857e18f1bf4e0b90624cb666f SHA512 25852b5e9195be2e2a089a9f360bf633c375338a0809ef8fe41ee0df14d1254e242312df9d7617eef074fa09d1c099dce96c655823d104214cc6054b8ec2a9a3
+DIST vscode-1.84.2-arm64.tar.gz 132930788 BLAKE2B 43bbde9ae80e1fad941fb89595d05385ff351165dec6fb6b87ba82ac437040b4c4a5e1086c82eb5ebda024597dface3e56511959396333763ba970f06c9ab6db SHA512 7a18365b23cd10270b9de5dbfab28703605d65862ff5ddf0c9f399e6df9b9f834b64b43f4b8ff0662fb07f3af307352f39420f4e8a2c68516e5223b9b42be602
diff --git a/app-editors/vscode/vscode-1.84.2.ebuild b/app-editors/vscode/vscode-1.84.2.ebuild
new file mode 100644
index 000000000000..dc88161cc376
--- /dev/null
+++ b/app-editors/vscode/vscode-1.84.2.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2023 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="kerberos"
+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/libnotify
+ 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"
+ domenu "${FILESDIR}/vscode.desktop"
+ domenu "${FILESDIR}/vscode-url-handler.desktop"
+ domenu "${FILESDIR}/vscode-wayland.desktop"
+ domenu "${FILESDIR}/vscode-url-handler-wayland.desktop"
+ newicon "resources/app/resources/linux/code.png" "vscode.png"
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ optfeature "keyring support inside vscode" "virtual/secret-service"
+}