summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-01-12 19:33:38 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-01-12 19:37:57 +0200
commit6ac477521f93357be5d172645ec4741175af7a05 (patch)
tree1bf0be39bb391e1b29a52f7829fa31bd9c37959a /app-editors
parentnet-analyzer/nmap: Update LICENSE (diff)
downloadgentoo-6ac477521f93357be5d172645ec4741175af7a05.tar.gz
gentoo-6ac477521f93357be5d172645ec4741175af7a05.tar.bz2
gentoo-6ac477521f93357be5d172645ec4741175af7a05.zip
app-editors/vscode: add 1.74.3
Bug: https://bugs.gentoo.org/890565 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.74.3.ebuild127
2 files changed, 130 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index ac2810f6bc2b..8015049c3369 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -7,3 +7,6 @@ DIST vscode-1.74.1-arm64.tar.gz 127513900 BLAKE2B 1d34816d28f2a415d33ee8196a2c68
DIST vscode-1.74.2-amd64.tar.gz 138265366 BLAKE2B 49dbd775a1488bdf4bf3f5771493e6b9395cea4ec9b288e6ff36684af0c5ff9b8ec1db4525c59ff8a2b292598f57bc6d2a99e286cc2b14430f35f7a725082f1c SHA512 8c9dba2b00583b446dcdf0b1cf489dcabbfb34eee6d3945dc1eb8f369c0c708137ae2b1773806191848649e5f7246340c850c2a96d2e395b7fd745a8e3a8765b
DIST vscode-1.74.2-arm.tar.gz 117860078 BLAKE2B 70fd60fca021416edec9b5631156989b72c6d4096bf2277381aca4d29f841ecc1d09ba782df4814cedbd7c611fc7e5a818166cbe4528b673045d7c6768fe86dc SHA512 dbce967d6c02ec762d43bfbf1b3daa36261eb9eb965376d560e731d3db94bff29f98ceb7ce1e809a940bc0882760baf9f20cead1715d97afe32ef2e2eff7b284
DIST vscode-1.74.2-arm64.tar.gz 127507954 BLAKE2B f3e2b278fe487033920ddf97ae2e02672a7e9430f1d2011e7fbe64464fbbcd3b48895732bd9f3b805d618181f341c0f4e87a27c2f9467bc5b0d9c139c5be2d4e SHA512 255e316a5193a7dd3728b50e885d55ab77be047638dfcf35c823064d15a4f0d26fc53d217403a85210f1151ea4cf22c1d839141f9822a899d7be1760701995fe
+DIST vscode-1.74.3-amd64.tar.gz 138260370 BLAKE2B 30bd34a17bb31326454db8844c48bc9f554374cdfc3032504be64f2493735864fbc3d0002ffa7c7a3c545329d198ead62df5931119cb95a261f2d4a9f058ac8a SHA512 46067ec45a383df7c766629c96fa320869e63e0f5ebc8d9c5738bde0799b934840fb912de7abcf6490378f70f1784664898341edfd755225d77bd62d8b058caf
+DIST vscode-1.74.3-arm.tar.gz 117870912 BLAKE2B 8d6fe12ca6b18db2709570df2e0ec943474fdf1878b30eae0b69c27ac018dbb4cd1fa724deb505ca0fc96096442296a0e201bc032544828320c05c799a39cca9 SHA512 41cbef791679cbd67c5844d5d545ed196d0374c9292050cc954f30549cd30c9612e3ef7e29c04b009718c93994ba285c9cf08d240723ae1420fa3be75e2630c0
+DIST vscode-1.74.3-arm64.tar.gz 127492465 BLAKE2B 095b6a11e5a4b029e9a3facb8728ede939d674b1c975027d9ece8eb6002b5dca8d665c95b231f3b96644e64952f76f40eb3fcab0ce71e59e1ae30837e7b7f272 SHA512 e0fe9d950aeef9744bdf1ed8c78de1a40fadc52d7ce68797334463d6c84ffb5e5ef8fa6a3a1dbf3593e423d9e43a39e85f46559ccd4054ea776be2c17aa88480
diff --git a/app-editors/vscode/vscode-1.74.3.ebuild b/app-editors/vscode/vscode-1.74.3.ebuild
new file mode 100644
index 000000000000..8413d9190bd9
--- /dev/null
+++ b/app-editors/vscode/vscode-1.74.3.ebuild
@@ -0,0 +1,127 @@
+# 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
+ net-print/cups
+ 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/LICENSES.chromium.html ./resources/app/LICENSE.rtf ./resources/app/licenses || die
+
+ # Disable update server
+ sed -e "/updateUrl/d" -i ./resources/app/product.json || die
+
+ # Install
+ pax-mark m code
+ insinto "/opt/${PN}"
+ doins -r *
+ fperms +x /opt/${PN}/{,bin/}code
+ fperms +x /opt/${PN}/chrome_crashpad_handler
+ fperms 4711 /opt/${PN}/chrome-sandbox
+ fperms 755 /opt/${PN}/resources/app/extensions/git/dist/{askpass,git-editor}{,-empty}.sh
+ fperms -R +x /opt/${PN}/resources/app/out/vs/base/node
+ fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg
+ dosym "../../opt/${PN}/bin/code" "usr/bin/vscode"
+ dosym "../../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
+ elog "You may want to install some additional utils, check in:"
+ elog "https://code.visualstudio.com/Docs/setup#_additional-tools"
+ optfeature "keyring support inside vscode" "gnome-base/gnome-keyring"
+}