summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-04-03 21:02:27 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-04-03 21:02:27 +0300
commit9bcb528870add60aaa047ffe76351e9d8fca6d6e (patch)
tree722d4deaa1f14e1cda1f82e7c6f29399096007fe /app-editors
parentdev-python/pychromecast: add 13.0.7 (diff)
downloadgentoo-9bcb528870add60aaa047ffe76351e9d8fca6d6e.tar.gz
gentoo-9bcb528870add60aaa047ffe76351e9d8fca6d6e.tar.bz2
gentoo-9bcb528870add60aaa047ffe76351e9d8fca6d6e.zip
app-editors/vscode: add 1.77.0
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.77.0.ebuild128
2 files changed, 131 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index 77d83e3ceba4..c74a0ca16a37 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -7,3 +7,6 @@ DIST vscode-1.76.1-arm64.tar.gz 123125455 BLAKE2B ae3e4772afc19855a1ef0f415a6621
DIST vscode-1.76.2-amd64.tar.gz 133943122 BLAKE2B a688262565aa9f7096139fd0545ee497480e2ec928d2d57b693e52baed9d08adb2027545a4c2728b834936378d4812ba138530d081e9af123ab4d49eb22b3285 SHA512 4087dae3a567d99e6bd1bec1dcef41b824118ce4004b6f70226b0c3b96ead3f685c7a9b00fda2bcd5ada3cfcdaf39856be0345209cf30fd31d2826d1114f207b
DIST vscode-1.76.2-arm.tar.gz 113666270 BLAKE2B 7d600529125b06dcf2d8bdd26bcc941828c06682aa83f571f802049a3381afd86e9dd71246d67a3ea16289ee7c2719530daca859dbbd951ec6bdcbf0567cfa54 SHA512 185daa71f0e32be43cc57b41ae4e3e22cd78a769ee1974c3d7be99396a3254dcb21964ebc93d6a5157852dcf28a94fcd0dfc41611ac1a659787248ab4cde22d3
DIST vscode-1.76.2-arm64.tar.gz 123093592 BLAKE2B 13ddee4fd48570a049ded9e9d5b0a130d78f8e66218b7a8c133985bfc106f9ef6a2a5168a640683618e3e33838b21525f01802df6db5f9cf6f9d3e75c2c093e5 SHA512 b0696534c94e0618a565e621efe2defcb8fffcbb68d4f9bf1f1587c680e2a601d726c47bca4eef464344d65956957048aab63cce93ea41c82ef5a35f208d8714
+DIST vscode-1.77.0-amd64.tar.gz 125008638 BLAKE2B 545f8eb3d8961526885acb5250152e31f8f96315c3ab715002b021146506fff61e3daeb46bc369e02611617d0276356558b42c80ed0f14cccc7723b48e4d38e0 SHA512 56442a9cdffcbfcade75d09b92bf1730507a71aef7813e4ef5edbd97cca640e0f5dee505be60895c42f15aaf926621f2e277bbe3e57fac25cc9a2728c5d366b4
+DIST vscode-1.77.0-arm.tar.gz 112127072 BLAKE2B 289a92169267235f2d59313de251d6aea99bef9b58e5a8b9cb1b71f09a30c1f5102dde7dbecaef26698cbfcf92c4aea0758b6d887c92e41b00007b89a57216e2 SHA512 b7d2a7ae9ba228d44d65177c7cd0923de4848bd5d06243ec4ac11133362259271322e07e5c9485786ac6508fc06f3f9239c25f32b5cc872fde58443866c45900
+DIST vscode-1.77.0-arm64.tar.gz 121710946 BLAKE2B 3e37925b306e92b533f4a7f61b058825c586e8217eb402f0bceff02a5ae783d71229fa578b2530eb95bdae38123524a6807d5316450a240d290ee02e86eb02e9 SHA512 a3c16cebd8d77c0c5196004c618211251a142a992929f788bf14be0e23c16a5d8dcc9ba2c21ba67b5080546ed221c8552d35b991cff237818d1afbe8709ca04b
diff --git a/app-editors/vscode/vscode-1.77.0.ebuild b/app-editors/vscode/vscode-1.77.0.ebuild
new file mode 100644
index 000000000000..593a70028957
--- /dev/null
+++ b/app-editors/vscode/vscode-1.77.0.ebuild
@@ -0,0 +1,128 @@
+# 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,ssh-askpass}{,-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
+ fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/node-pty/build/Release/spawn-helper
+ 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"
+}