diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-03-13 10:25:13 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-03-13 10:26:38 +0200 |
commit | b1f6a41f0edbc76d14484cd484705f6d08b9c77c (patch) | |
tree | 8f7908632802a92f2bb2830543ff6673fa91948c /app-editors | |
parent | www-apps/element: drop 1.11.57, 1.11.58 (diff) | |
download | gentoo-b1f6a41f0edbc76d14484cd484705f6d08b9c77c.tar.gz gentoo-b1f6a41f0edbc76d14484cd484705f6d08b9c77c.tar.bz2 gentoo-b1f6a41f0edbc76d14484cd484705f6d08b9c77c.zip |
app-editors/vscode: add 1.87.2
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.87.2.ebuild | 132 |
2 files changed, 135 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 6b4b5aeab404..38f2ef225edc 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.87.0-arm64.tar.gz 137643179 BLAKE2B 6ed3e3e8bf3f498f6e4da0a15b929b DIST vscode-1.87.1-amd64.tar.gz 140704986 BLAKE2B af0bfa4512e11695818c39ff2f2225e940fc188e663d7db6ee1411d202dc26bd39e00f0fe6b944eee262987893dcf5887b1e6b43e2c9c9ad25a5cde78dc6e587 SHA512 927d8a6b211bc6a80202032f7e214acb3fec340a6c0cdf6c976432dce47a8885e77b342a5a8187bf1ce4bc678da00e353bcc4a644a1abfd2140ad8c3162b319a DIST vscode-1.87.1-arm.tar.gz 126061815 BLAKE2B 678c31683effe30b58c514661aec70a7ea9c0d5e43df8711fc91d69790eb2c5108d59bbe0f47972c84cccbd12181a2d3a73e8b74b79ca3c458638154e2ba08f2 SHA512 94fc2709aa49fa30b3b77fec0c791997b6d9bba92b4629d42335839fc8a6a566422bc4c90447c059bac4e9bfd847eadb93ffae3717293f38f8b38717d4c2a13d DIST vscode-1.87.1-arm64.tar.gz 137654705 BLAKE2B bd17d2aed14f038a275a6a567b9d98d9f2177af57a8e7296d652de5258720cf87d173b673c3cc7711153173798e5465d4c2fc2604e5e9bb0d80d5efb91a50f9e SHA512 c6cb87b51db9ed218d240d167dd5bd2da17d6f2c7665b321bcb6ee691c1a6e60cfc08410bd8dd252c5e3e264b472f43ae2f33696ecb33084ee7259d0b5c67ff1 +DIST vscode-1.87.2-amd64.tar.gz 140710466 BLAKE2B 576be13495b91cbb0a0e9033a3872a311293a1dfc579d52e9eedd28ffbc40d4949e420e7b5439263b6ecce3f2b175247647732e6057f98367eb294b9aa8a8945 SHA512 c9f4a1cccf7df1cc152b41f77f9fed8752aacd848060464165a12f161d2df88cbae8ba447f43ca0285777e6e05125e79d054557fbe4b26e660a9544ba9a26c75 +DIST vscode-1.87.2-arm.tar.gz 126088523 BLAKE2B bf319c10c244387ec5f1f4fa21951b497bed1757e51fa90f54e50376f991daff54b2dba9bb410d27183c4598c187d12ed45794ad32b97c83fb2173d9fac2dc09 SHA512 a41a9f200cecc3dbe7c30c13b3d3a8c564dd3f526dd7969c1c6d83313ce1bdd052a94295897a4f2c5810b7a6bf36255234523477990c0db821d6913c50eda6a2 +DIST vscode-1.87.2-arm64.tar.gz 137662384 BLAKE2B af725963c3dc71d50efa5ff3cc7a3995a45a9d2846f736b1a26c02b2c9b7f1567831a75bb4896398c45f9cb5fcadf6e7d17114b50065155d9f80d8015ce25d1d SHA512 b99be940c5d5ebc8c39e1c52eaa49930bffcbaae41bd071e8aca2d1b08ff14c2ce8fda75f8f2e74a495ca59218045643ec91e7b2c4fe4b2ffeaaf33fddb5ed7c diff --git a/app-editors/vscode/vscode-1.87.2.ebuild b/app-editors/vscode/vscode-1.87.2.ebuild new file mode 100644 index 000000000000..f803279f6a02 --- /dev/null +++ b/app-editors/vscode/vscode-1.87.2.ebuild @@ -0,0 +1,132 @@ +# 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/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/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" +} |