summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-07-29 23:49:01 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-07-29 23:49:01 +0300
commita888b4ff7add687fd015be740c56398443c1884c (patch)
tree6f392f81928c3c3ac5dfdbc210999048297cee60 /app-editors
parentapp-editors/vscodium: add 1.80.2.23209 (diff)
downloadgentoo-a888b4ff7add687fd015be740c56398443c1884c.tar.gz
gentoo-a888b4ff7add687fd015be740c56398443c1884c.tar.bz2
gentoo-a888b4ff7add687fd015be740c56398443c1884c.zip
app-editors/vscode: add 1.80.2
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/vscode/Manifest3
-rw-r--r--app-editors/vscode/vscode-1.80.2.ebuild121
2 files changed, 124 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index e2b6d888cd9f..fe1692f4211d 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -4,3 +4,6 @@ DIST vscode-1.80.0-arm64.tar.gz 131637682 BLAKE2B e8e50dba908b288ee359d97d378ce8
DIST vscode-1.80.1-amd64.tar.gz 135332845 BLAKE2B 902f050bd8342062ff27c9c8d22c10d0c7508be08c3d35b5f5a2396c4dd152e87ecd8537a216a7d67a07a7359a9bfdf43f4f26c85e3962340bf915fbf48eeeaa SHA512 f48fa9b2c1b2ab002ee3703af611779e59c7f3d62ff20306ef5bbe4f76dcd33135ce9a3158402316c06f0251baccb7226f261990129654eb495813f86a06dfb1
DIST vscode-1.80.1-arm.tar.gz 119948123 BLAKE2B de8dfae7f534260c045383ec9abd4662a2d1a462d1d6fc2abedc90c562713693bcbc83056037fe946ca85de2e74285e3321a706c87934c75b07c774061b6ee7b SHA512 cc928eecd2918f6b52a22447f606ac290b02b01b45c3644d73b6d1991169ad34cae2152f64f2661a183577c7194e3e10e2c25177e39231b4fba0cdd76ba7d54e
DIST vscode-1.80.1-arm64.tar.gz 131637149 BLAKE2B 1fdcbbbf0111ec61fd280a5c75eb58de9f44daf0424a2a15575cdffe42ab65b4de2c04776bc8e2e40aeadfeb7720f9d7955c0aef2c596eeb2ac7099ff31905fd SHA512 d337cb7d8757bff99cf198358acb74501527ced00cbadb2f27bd4037e78b4b631ece09dae947f40eac8ba64613077f53179550a7ce101de96254cfb5ceb05b81
+DIST vscode-1.80.2-amd64.tar.gz 135322981 BLAKE2B 8de8f7c0fbdc7a2085cbeb779936bab465c129531d864f0bdb3b71c817efe8f8b90df2776bebe45b4fe7d7c1db7df38b2f62c926fe949ec377c85e1056136290 SHA512 1d8b44b49e26aa1d54aa9211a4b72989be34bc1609801b64c41f3803d6e36650c432e08afe4143bbd9930559ceebc8479940cd0f68cd8653418f6317c2787518
+DIST vscode-1.80.2-arm.tar.gz 119950045 BLAKE2B e3e595f062930c19974a7983fa339b822eb5c83758a40c1671e439befc7f96480f6603b7b5bf7f74322a16fb7995e0c05e8c87ddc9bc02eef3833f52cecf378a SHA512 561979576a8a4a610aadd4dcbedc0da6528f49b6ad52c93004c4e1b5ba5c908a443c8a63e1f3e31a5692a42c9a07e3c7de47b1cc52435d416357f6c9f65cc364
+DIST vscode-1.80.2-arm64.tar.gz 131631847 BLAKE2B 0e6cbf72dc2720a1685d569940cf1a3386dc00180c555bfc2b1719ead85347a840cd7bdaea446d18ba6caf6590f62eb7b36a3039efc1e361c162148eee6ece9e SHA512 e60ba2b8c432be11acf29702d727afe017513e3d94f424396ab5b508c2bce1f2afd09f3af9d647fc5ff390fdcc6dd3f1d2ecb646722b79acf0ff00134b6f2001
diff --git a/app-editors/vscode/vscode-1.80.2.ebuild b/app-editors/vscode/vscode-1.80.2.ebuild
new file mode 100644
index 000000000000..5a160dc35b29
--- /dev/null
+++ b/app-editors/vscode/vscode-1.80.2.ebuild
@@ -0,0 +1,121 @@
+# 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}"
+
+RESTRICT="mirror strip bindist"
+
+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"
+
+RDEPEND="
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ app-crypt/libsecret[crypt]
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ media-libs/alsa-lib
+ media-libs/mesa
+ sys-apps/util-linux
+ sys-apps/dbus
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ 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/libxshmfence
+ x11-libs/pango
+"
+
+QA_PREBUILT="
+ /opt/vscode/bin/code-tunnel
+ /opt/vscode/chrome_crashpad_handler
+ /opt/vscode/chrome-sandbox
+ /opt/vscode/code
+ /opt/vscode/libEGL.so
+ /opt/vscode/libffmpeg.so
+ /opt/vscode/libGLESv2.so
+ /opt/vscode/libvk_swiftshader.so
+ /opt/vscode/libvulkan.so*
+ /opt/vscode/resources/app/extensions/*
+ /opt/vscode/resources/app/node_modules.asar.unpacked/*
+ /opt/vscode/swiftshader/libEGL.so
+ /opt/vscode/swiftshader/libGLESv2.so
+"
+
+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
+
+ # 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"
+ dosym -r "/opt/${PN}/bin/code-tunnel" "usr/bin/code-tunnel"
+ 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"
+}