diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-10-12 22:40:44 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-10-12 22:45:11 +0300 |
commit | a0349fb590416f9bdbb6f628502199ddfc5745d9 (patch) | |
tree | 7b741f00273ee5b7014d9cdc0347646922593d9b /app-editors | |
parent | app-editors/vscodium: add 1.72.1.22284 (diff) | |
download | gentoo-a0349fb590416f9bdbb6f628502199ddfc5745d9.tar.gz gentoo-a0349fb590416f9bdbb6f628502199ddfc5745d9.tar.bz2 gentoo-a0349fb590416f9bdbb6f628502199ddfc5745d9.zip |
app-editors/vscode: add 1.72.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.72.1.ebuild | 129 |
2 files changed, 132 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 5e452b5344f4..077037167920 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.71.2-arm64.tar.gz 110174916 BLAKE2B 8f14bd5df25a64c5872b3044c5d668 DIST vscode-1.72.0-amd64.tar.gz 123819482 BLAKE2B 02af76ac4f68f688c6c0d7c2df41e6a01b575bf8c0f1073f5c13d5d390bbd1b56ab2f1fb22352d6d407842cd18ebd078ffc05472400efb397eaa2a5207c6de0e SHA512 c228ffad233f7162226bc2a51bbb5339f5c008326c92a895a5c0def02dd1150cae58794fb44b6425b2ad365f462cd3972480061ab2e87891b61b76cf280490dd DIST vscode-1.72.0-arm.tar.gz 104770726 BLAKE2B 5885de454ae094d814ead3ff9c910156714e4ec6cbdcc36fed8c4caf319e24cc41a5e40552a98c76d2c2a472d82f287ead24fd43e67321c9c5a246ef23f4aa7a SHA512 24aad1ceed99a04141f7aeb7a1150b9d8b51f31e10ea373929e86a45bcc56abf68c22aaf370c46b5639262dae76dbf4ed914d7154a8b2dbec65808d1247b006f DIST vscode-1.72.0-arm64.tar.gz 113898746 BLAKE2B 98690c88d41695614258100133232c73ef2112be2082245026412b93a13df122cbf7b2a77601fa87268af0c4ef7c5794b7399593b060dc3a844579d808083960 SHA512 b982e638420dffadb5200bb9bca5d7bcc1632280e62e1f237d43fc2d80f77ccb756edf6ac54550a5a8db4d4e4f50c307434d3f71cc881827e1649f474a01cde7 +DIST vscode-1.72.1-amd64.tar.gz 123829708 BLAKE2B fd5af43d9037228a732ff56fbf4baa404d942602bb2a21cc8c22a8126ebf0cb43c706d7e216c5ee159650be312f99c54df9eb842a236062cde6ea651e24cec29 SHA512 fb785fabb85a45805f96ffbb44a3d19ee8c0debe9d43b9f69bac88c195e343c8be98abf7ba9ff2632dbfa0cfb7fc7563b956267aa44996efce07b076cfd6f5a2 +DIST vscode-1.72.1-arm.tar.gz 104771652 BLAKE2B f6cb9d0dffcf08328be865aa8654ec7946b019518b888f8618409f71fd1691b91d90409a65287000ee6aaf6b7e24eea1378864d07bd6533a60cdf13ebb528456 SHA512 b443104d890cc3336d19caf0404f873126032bdba39dcd49122ef480c7ed83ce4f8b73e4628db990ff5124f33a5ef9e6f381305d5e45c1bdc37cbab7c0182951 +DIST vscode-1.72.1-arm64.tar.gz 113915650 BLAKE2B 7e06292ae9ad6266368b1583e116292a8bcf3197a1692e28d64fa0c17cbab3662bb2b689b093f5404ebdc23106cdf9829801d9ed74e317e59dda166c98ee5380 SHA512 661ab7cc350e8e5ed6dd9569fb1a2b907c8ef98bfd895e7fe9dc27f98c4a23252b0ac05e635acd6138d970b9c31677a020d64b60a81d0373a02fdd97deaff4d7 diff --git a/app-editors/vscode/vscode-1.72.1.ebuild b/app-editors/vscode/vscode-1.72.1.ebuild new file mode 100644 index 000000000000..e52f2ef29431 --- /dev/null +++ b/app-editors/vscode/vscode-1.72.1.ebuild @@ -0,0 +1,129 @@ +# 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/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" +} |