diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-12-13 21:27:16 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-12-13 21:27:56 +0200 |
commit | 06f2e3ebcc8d4396405ea9be4aed82bdb6b23fc2 (patch) | |
tree | 561927b00ab597da4504df1eff57843d5ec4c90d /app-editors/vscode | |
parent | sys-kernel/gentoo-sources: add 6.6.7 (diff) | |
download | gentoo-06f2e3ebcc8d4396405ea9be4aed82bdb6b23fc2.tar.gz gentoo-06f2e3ebcc8d4396405ea9be4aed82bdb6b23fc2.tar.bz2 gentoo-06f2e3ebcc8d4396405ea9be4aed82bdb6b23fc2.zip |
app-editors/vscode: add 1.85.1
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.85.1.ebuild | 117 |
2 files changed, 120 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 71bb68acc7d6..0a8a11602f50 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.84.2-arm64.tar.gz 132930788 BLAKE2B 43bbde9ae80e1fad941fb89595d053 DIST vscode-1.85.0-amd64.tar.gz 135089424 BLAKE2B 682810e3cdf3d119edd766b3288ff683aad6267c42eef2daf1880504caede3b955417700e1dca053eee38384f5f474257d7d53f265bbb18239d19e18ee65d0a5 SHA512 290eba893c69fd917fb89e35c36f51157469dfde5a85ed058ad55af4c3746abac1727c34136341d94becc5777ee747a3955100cf3c80ac9c5b381dc537b293c6 DIST vscode-1.85.0-arm.tar.gz 122053589 BLAKE2B 67098d2f566d21d50e18d986356576f07f8947276c8334e1197ede308805a1921311dd99b1f6940f5be718382179617dcdea68e4dcad12f00de5789e8f4c5ca0 SHA512 c7e106aae16b2c7ad653e56fd047afe5af8b9e43f5472e40e50033b130ab13488b7589c9c7dc2204b24f83ce8d682224fed69bd3fd499590cc0df879207e139f DIST vscode-1.85.0-arm64.tar.gz 132281426 BLAKE2B 8b4319c1106de653273294a2165de893481e8318a38e8cd7661591d05d0bfa48812b7a2da3a50bf6f0d73e45f09c46294df5f5932d62f34a49f0ff49a0fcaacb SHA512 d2b4eae23dda45924f2f9de32f808b6f5ef92cfc2ea08315557c00398722963ece47de34ffe477c110fa9031f3b80c0683cb94ded5c12e51d1162e487f0b2149 +DIST vscode-1.85.1-amd64.tar.gz 135108193 BLAKE2B bd2479617988f81ef0c8255d02f01a16de6142f69fbad72b020dbb8ed55a2859861fe4074bab56eb2a6da91a237c03a182da97b67dcdfef61adb27c8990431ec SHA512 fc06cf3e67f7e268ed485d79e2a0b16ff96b06567d94734c01fd03b98e8912f1969e44e2dd0accdc423c0353a910a64af5d0df56a34404f2314c4a2543da5797 +DIST vscode-1.85.1-arm.tar.gz 122030008 BLAKE2B bd958e9bffcf94add2e5545bb41373a0c9e0b5744b150837b228ed788d9bdae1ec0aedaf948c98f3aa121707716f3bad43aed6c77df99dee473d4f3bf6e69419 SHA512 7761b137f7301e5989b99256bcf9b0806064d7370b506a01e0e112b8ce894b32c7ac162689f75a6fa67616de64cf4277934f2c09634be87ceb9677d150381f69 +DIST vscode-1.85.1-arm64.tar.gz 132288396 BLAKE2B 7888bf80ef6f2452b7f06f5f5ec77f83663c468cb9756757c8f95fde5724f1444b733da783cf34c85806facf2e27870a1b9e0b892945ce395575131530308c5d SHA512 dfb128b6ac17575f85afa3b19a5daea3d8b7b4be6e294002c51903ce736ea332b3c0c840e58c4da0b8715fb47e9cbc85fcf147cf62affe91d21051b90bd6a305 diff --git a/app-editors/vscode/vscode-1.85.1.ebuild b/app-editors/vscode/vscode-1.85.1.ebuild new file mode 100644 index 000000000000..dc88161cc376 --- /dev/null +++ b/app-editors/vscode/vscode-1.85.1.ebuild @@ -0,0 +1,117 @@ +# 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}" + +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" +IUSE="kerberos" +RESTRICT="mirror strip bindist" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret[crypt] + app-misc/ca-certificates + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/libcanberra[gtk3] + media-libs/libglvnd + media-libs/mesa + net-misc/curl + sys-apps/dbus + sys-libs/zlib + sys-process/lsof + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libnotify + 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/libXScrnSaver + x11-libs/pango + x11-misc/xdg-utils + kerberos? ( app-crypt/mit-krb5 ) +" + +QA_PREBUILT="*" + +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/ThirdPartyNotices.txt || die + + # Disable update server + sed -e "/updateUrl/d" -i ./resources/app/product.json || die + + if ! use kerberos; then + rm -r ./resources/app/node_modules.asar.unpacked/kerberos || die + fi + + # Install + pax-mark m code + mkdir -p "${ED}/opt/${PN}" || die + cp -r . "${ED}/opt/${PN}" || die + fperms 4711 /opt/${PN}/chrome-sandbox + + dosym -r "/opt/${PN}/bin/code" "usr/bin/vscode" + dosym -r "/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 + optfeature "keyring support inside vscode" "virtual/secret-service" +} |