diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-09 21:39:48 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-11-09 21:50:44 +0200 |
commit | d9a32b9fdcc7eca92e8ac1ab029d3fdbd5612d88 (patch) | |
tree | 39e2f50db3228264294dad9e894c1222e46b99a7 /app-editors | |
parent | dev-python/pytest-bdd: revert style changes (diff) | |
download | gentoo-d9a32b9fdcc7eca92e8ac1ab029d3fdbd5612d88.tar.gz gentoo-d9a32b9fdcc7eca92e8ac1ab029d3fdbd5612d88.tar.bz2 gentoo-d9a32b9fdcc7eca92e8ac1ab029d3fdbd5612d88.zip |
app-editors/vscode: add 1.73.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/vscode/Manifest | 3 | ||||
-rw-r--r-- | app-editors/vscode/vscode-1.73.1.ebuild | 130 |
2 files changed, 133 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 466167bbe669..42c72623f346 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -10,3 +10,6 @@ DIST vscode-1.72.2-arm64.tar.gz 113919276 BLAKE2B 25d27a2bb435b7078ec1a09408d240 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 +DIST vscode-1.73.1-amd64.tar.gz 135604445 BLAKE2B e08ea9dcc3f21aa5324fc97dafc969ba34d3b907b0e0f46a4ef7403801e4a47bd92c47de958603c588f9048f757abb8e09556820604d4432fe12cf3a78b60866 SHA512 f73e0466b953bc44975ca45666b106fd5ad099a8ed245094ff1be09140ed9b1b05909d71408932486da0cb61cc0dc3ce9bedf76c0619e3c1d368008d656ae234 +DIST vscode-1.73.1-arm.tar.gz 115191887 BLAKE2B a75ac8fec11a93a8aa010d76ea56fd1510d2c8c910718d6da9075222fe69aa5dbf9e726c4cd56bfb4722e5b6d82338c5c45cf803e22805a7a8f0b6939443fc36 SHA512 de22c1503134ea92face02218078d6d9404eb5e5eea789e9f61422d840b798d4da0ac5083d888d06e5eae313f2748da10d0b949eb0f06dedab8e7cabee2263e3 +DIST vscode-1.73.1-arm64.tar.gz 124921489 BLAKE2B dd244d2c1ebee9c8360284aa0a3afd3bc48f258a047c950fd6c4dab25980dcdc155f55cecac17eacdf462beeafe7400e98d618859f7736854595c9285cd8ea76 SHA512 735b8a1a715906152f2018457c0b4c279dad17edf3d962c895ab07734260b51b6da9ff31b07a3461c7d1fe8f97aad91e9da8cd25129290edcda724b5cba9590f diff --git a/app-editors/vscode/vscode-1.73.1.ebuild b/app-editors/vscode/vscode-1.73.1.ebuild new file mode 100644 index 000000000000..6f579f293498 --- /dev/null +++ b/app-editors/vscode/vscode-1.73.1.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" +} |