diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-09-12 20:28:45 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-09-12 20:28:45 +0300 |
commit | 9227169dd9f175b489ee5d2a590f621a47eeff03 (patch) | |
tree | e62ae59974e29bcfb60e44386a4ae69038d387ee /app-editors | |
parent | dev-python/psutil: Stabilize 6.0.0 x86, #935592 (diff) | |
download | gentoo-9227169dd9f175b489ee5d2a590f621a47eeff03.tar.gz gentoo-9227169dd9f175b489ee5d2a590f621a47eeff03.tar.bz2 gentoo-9227169dd9f175b489ee5d2a590f621a47eeff03.zip |
app-editors/vscode: add 1.93.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.93.1.ebuild | 131 |
2 files changed, 134 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index a0d25c0c81db..f8bcc1822483 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.92.2-arm64.tar.gz 141604400 BLAKE2B fa117d2e3dff1fd81c917347a060b4 DIST vscode-1.93.0-amd64.tar.gz 145343718 BLAKE2B 27bbb1e3d8a0007e5e207c082af1ae78acdfc322735d3cd99c61ab4865a8d24b059d0a60c13a4320bd6587a4217d39812356707b471f320ca87e2b15d96f0ea8 SHA512 57735dcacbafeaa2362382ea078056a2f451bd38bab4ac321b8fad81a07bbe6bfa1e1bdd1d8daceee57abf43711138f32f7ca8d67918ce0007f0ac2ac5fd7aa0 DIST vscode-1.93.0-arm.tar.gz 130284214 BLAKE2B e3b109765a8c8d89de9f2b676f321b66765e622b37358d64380697d80668718ebcb7cdcf0d616becd5e31bc2db6e032ebdf4bd6a873cd4e0980b6b8e9f390730 SHA512 ec5f09023592eaf00b1597e9638eb248378c0fb2fca0dfb688cab2546a8296baffc49ac25aa0509550289ca5c3e56dc5d6ae03a6e92e4a760b6ce57876d22bdc DIST vscode-1.93.0-arm64.tar.gz 142237085 BLAKE2B 517d4cc79cab13e6feed478c65b0feabf43e6b871c820e923c9124d3e9a2fe91db795d133e01a896bc635e7b47a0f6f1dabb9b63552d01801ec24c1e9f6d5eb8 SHA512 bdd8aa2e359e4ba17ab0e162d79b1da40d21ca488d123b08698e182631139d23168d5160ea4b128d17860cf32f76ae403267daabcced5c6c7a5d68e84681caa9 +DIST vscode-1.93.1-amd64.tar.gz 145338512 BLAKE2B 695efd4382aeab3c9aded7954146b35f9340ce17f9410f215461b9bb42ed0d1e82d32352f01a6d48d94876504d3ba559d8ded021fb24980da60750dd3eb956df SHA512 1fb697549f685c820154375426320addd716921a6bae859263dfec9aeabdd74f74826f300c65d78c99fec1a110cebfe031bf439811a56f16ec41fda3fdc98611 +DIST vscode-1.93.1-arm.tar.gz 130274818 BLAKE2B 781d9a7784dd936a81f9407189dd1608b6778baec0c691f2337e3c3f1605578d09335a437de3b5d423b0df86b5f8256bb922ab5b7496df53b47e53788ccf9881 SHA512 e909d8126ee0013dc21c2eb97cca2cae3f4e823ff7b6342b544669d2c7b66a407ac3b56e68015130f6a807e64187bab88010e16037eb13dd27354069c2abffa9 +DIST vscode-1.93.1-arm64.tar.gz 142212394 BLAKE2B 41c749fcfff253dcf9295429129c9487cc95b12f9c58f85c2864e5fbd65efd1b1818a438c9eb4132f6413ae83bca4ea27036510845eed446123a1e071fba4d39 SHA512 069339d4623a64d3de39241b9490b8ecda581728c78e343bff4749d06ec22311cb952243d485ea1c91aa16a46f74c66c06e7a8425b1063a9436b9161401812a3 diff --git a/app-editors/vscode/vscode-1.93.1.ebuild b/app-editors/vscode/vscode-1.93.1.ebuild new file mode 100644 index 000000000000..7eebb15e925a --- /dev/null +++ b/app-editors/vscode/vscode-1.93.1.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2024 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="egl kerberos wayland" +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/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/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" + + local EXEC_EXTRA_FLAGS=() + if use wayland; then + EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" "--enable-wayland-ime" ) + fi + if use egl; then + EXEC_EXTRA_FLAGS+=( "--use-gl=egl" ) + fi + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/code-url-handler.desktop" \ + > "${T}/code-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/code.desktop" \ + > "${T}/code.desktop" || die + + domenu "${T}/code.desktop" + domenu "${T}/code-url-handler.desktop" + newicon "resources/app/resources/linux/code.png" "vscode.png" +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "desktop notifications" x11-libs/libnotify + optfeature "keyring support inside vscode" "virtual/secret-service" +} |