diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-04 10:27:54 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-04 10:38:53 +0200 |
commit | 16b9829531a9358e87f98bdcaa58c0543fade250 (patch) | |
tree | 4d7ec5531f7da06f2eae32493ef4d8cb1511e7bb | |
parent | dev-python/mkdocs-material: add 8.5.8 (diff) | |
download | gentoo-16b9829531a9358e87f98bdcaa58c0543fade250.tar.gz gentoo-16b9829531a9358e87f98bdcaa58c0543fade250.tar.bz2 gentoo-16b9829531a9358e87f98bdcaa58c0543fade250.zip |
app-editors/vscode: add 1.73.0
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | app-editors/vscode/Manifest | 3 | ||||
-rw-r--r-- | app-editors/vscode/vscode-1.73.0.ebuild | 130 |
2 files changed, 133 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 12d61318932b..466167bbe669 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.72.1-arm64.tar.gz 113915650 BLAKE2B 7e06292ae9ad6266368b1583e11629 DIST vscode-1.72.2-amd64.tar.gz 123828026 BLAKE2B 87b60ababde0e9fd9e5958bfdfa4557f87b8d67f0a84428fdecafb8d4342e4d71bf33c7d180e02d5780fc6638fdf7cfec540fc7019d86d83d92070e394eecdc5 SHA512 efd701f7dbdd3669f22a22fb33b07ab5e044582b0095b8a45e9be14b906f66fa61492de6fbd9936ee6cd44bd065a323b809164a5c0e06029b66929434449926c DIST vscode-1.72.2-arm.tar.gz 104783748 BLAKE2B aef1eeaafda5c26cfa0783b8c15d973e539c63b9865e8200015c0158d44367863ec77dd798fda4934168695dd138db17b1cf81403deec753179aa457a3af19d5 SHA512 e952c748c9341a400584a80d612f6f2961dba9cf3997aefe6e948bd51d7ee41fdfb7bd488766045edfd892bca3584c68fbecd4712a32c694983226b0ed97f2ef DIST vscode-1.72.2-arm64.tar.gz 113919276 BLAKE2B 25d27a2bb435b7078ec1a09408d24045de2f72a89ea0914da5bf49c9819a786a0e0fad64e675d2771d4a5eb1c61dfc966ad88f2ea9091c057a2abdf8df4a0cbd SHA512 c9cdc341092c9185709af064b8fa93ea34ded7ae04f8a85e1f611e24cdd55473687318b1ad0537fb25a5ad9ecd600071a85afd1e97c464132c94325bb32d3b01 +DIST vscode-1.73.0-amd64.tar.gz 135608145 BLAKE2B a0d44d06f42071abc49ef4495c1e9fc4d3395c58e61211e1e2cd32ae2dfefe83880db1cb4c3ee5ead670936e73826cd588f10ff4076ce241afcfa4f929cf67a8 SHA512 116ba487b27fe6b9b3702deb9f6664139e10a2b7a53c372dc6849376e541eb3fb560e4f115e920862b1bff5cc7d7fc35d3353c843a6fdef549565dbc1c8ea552 +DIST vscode-1.73.0-arm.tar.gz 115197213 BLAKE2B 7f1bfc0c208be83525da810d8f198b8d14e969a9c68ace75a0304d49d3360dd0a65b27ead51487437764c9cf911d2196756df7f4793e02ccb630ee60f724d4ae SHA512 3b1e93b3c40a36b53c5a81cfffdf76238b8dfb2370589c0ffd38db8c3acbde0f69d0500af59f26de0b69b5e1c218fde9a25abc4a432b889d9f0097f2c1a31ab0 +DIST vscode-1.73.0-arm64.tar.gz 124908757 BLAKE2B 94006f56d5df515773d697c876479da7f97001b0b6dec0b8ea46efe0183898536edf0792ca41b74e6e4a09e44da2cae8c1960b0e69b8fd7f7c0d54ce59fc1af3 SHA512 9db4e79727eca2f7cc85d221a3ccb14866b90f7350b8bcdb558ec3bfe7b6fbfe91bf46dbd59b1c10e7af139c3bf07628dd42e51e7f47d49534b1b2ab46891a7d diff --git a/app-editors/vscode/vscode-1.73.0.ebuild b/app-editors/vscode/vscode-1.73.0.ebuild new file mode 100644 index 000000000000..6f579f293498 --- /dev/null +++ b/app-editors/vscode/vscode-1.73.0.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2022 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-accessibility/at-spi2-atk dev-libs/atk ) + ) + 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" +} |