diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-02-17 19:13:49 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-02-17 21:08:11 +0200 |
commit | 84089e10874e5ab0e8122c172e6d077b848d6ef2 (patch) | |
tree | e4674d4a5a6a0e937279647e7acdeffdec27a09a /app-editors/vscode | |
parent | media-video/qmplay2: drop 22.08.21 (diff) | |
download | gentoo-84089e10874e5ab0e8122c172e6d077b848d6ef2.tar.gz gentoo-84089e10874e5ab0e8122c172e6d077b848d6ef2.tar.bz2 gentoo-84089e10874e5ab0e8122c172e6d077b848d6ef2.zip |
app-editors/vscode: add 1.75.1
Closes: https://bugs.gentoo.org/894982
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors/vscode')
-rw-r--r-- | app-editors/vscode/Manifest | 3 | ||||
-rw-r--r-- | app-editors/vscode/vscode-1.75.1.ebuild | 128 |
2 files changed, 131 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 903fbda2c90c..6c193a79a41d 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.74.3-arm64.tar.gz 127492465 BLAKE2B 095b6a11e5a4b029e9a3facb8728ed DIST vscode-1.75.0-amd64.tar.gz 138952948 BLAKE2B 892c2ece1bfb1d2dc4fea2c3a6c062688add04f3ceca344988d240edbc4f358100bb4caa17eadc9568dbd1c3581595eb3fadd527727c02d57b63e5fd7a88533b SHA512 f4f26d5fc9c4cf8faf631ff5a0a48d446013faf33a1e932d3e8023b967dd078c370c57dff1791d97bfdeda0e92993d1aa94dce9cfeda4745bdc9c0a1cfb7aed2 DIST vscode-1.75.0-arm.tar.gz 118400806 BLAKE2B d1c930bb871c7bbf7dccd8e3a0da9fc903dfad2066c5d8cbceb9ad3adfeb4d59089b35c75c4d5650efeaf7bb7fa9f2c84b2a499610fab3d09dc18d59122b5a47 SHA512 cdfa12e8dffdef50d3e17f58b0d516318d0e5e114b0556285d92ec81ceb2b78cea9affe9719416f7f60eea385cb49caf6879e3fd9c8d2fbf0849a1d1d9ccd704 DIST vscode-1.75.0-arm64.tar.gz 128013515 BLAKE2B 77c2663e01397086e3917dae8e0ec3663969cf5e36135fbc7bc264f21ffc31197e5dc3dda49b3e4c2d9daf1f39d110b5c467590157ebd4d87986771bca3268c5 SHA512 0e4b4a2b2b273e590bd210d186b255a3e48ec0851c38ff27063f115088f7cf5375b14fd075b45f5d4ceb525f04c2d3fabbdd0d6b7bc192b8f6da269311b3634d +DIST vscode-1.75.1-amd64.tar.gz 138940849 BLAKE2B 60e47682ec0073b6a0e3ffa1c9e0f151cc27c88d199afdd7fa97fd835bdbc961817eae8e17f973d0cb20cae072d02754c53f5687d6996dbee420f17332c1f43b SHA512 68498083c022252a4cecf7db505a68e25137eed3451af474cff7a1094340d64b087ca101df8cb5af5649bcd6460e219eb28f1c78604864dd40507c809e6edcc7 +DIST vscode-1.75.1-arm.tar.gz 118369140 BLAKE2B cf0a1ce9f9bb3cdd329abfd35b67457909da43c1b5887c08815d358367dc20e4231901dbd97ae854db5b78c15f6488ca0d29357af9e77ec419fc93f1c69b41cb SHA512 f8576c9e037c6ba5488c40b6a2c486a5521e65a73ef214685efa54761b9da2e20839e859f9612b3e3403bc574c87f7634a6cdfb852623c1ce18116c0aba87f23 +DIST vscode-1.75.1-arm64.tar.gz 128000146 BLAKE2B 8729178790c06b44c7a626e075cc9071a0489452157ddefcaa3c8c3039360598486d12a57b15a778f4307aa9fc28b2e201d78e28662ef83dfc3562430c63ac05 SHA512 f8b2abba64da24bf0044f7f179ec63aab94b0b52f0a42badd0df81108593aa47cb2ab343dba21ac78e7dc32d9691816a491002e2f534afc2fd2a53714f9da872 diff --git a/app-editors/vscode/vscode-1.75.1.ebuild b/app-editors/vscode/vscode-1.75.1.ebuild new file mode 100644 index 000000000000..4dfa8178e6ec --- /dev/null +++ b/app-editors/vscode/vscode-1.75.1.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}{,-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" +} |