diff options
-rw-r--r-- | app-editors/vscode/Manifest | 3 | ||||
-rw-r--r-- | app-editors/vscode/vscode-1.84.0.ebuild | 118 |
2 files changed, 121 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 6af91b9cf0c1..30213c2fb9a3 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.82.3-arm64.tar.gz 132356391 BLAKE2B 04252655fc0473db6850b946aee1d3 DIST vscode-1.83.1-amd64.tar.gz 135810621 BLAKE2B c1a9d74efe24f58c46445c6bc714c5a2f8d5237642f958fbed6c540128cf9794faa368e81d074fd357e54e677fce18c77b4f1a2acd2efc0a0ef86ace4bf6521e SHA512 9b5e14ac302ab14b4fb0776836f31f7b9696db5b35987c181a1a344b9268de353d4a91df4dd62aa0b8a3293208f1e898c687a60c46d96e44018f3b94b8ca9d8e DIST vscode-1.83.1-arm.tar.gz 122768111 BLAKE2B 92749b01bf5f99b357e84f3910ea23226aa5a2e4071eb52539be8fa3398e2f61395fbedc0e2af5ae8c25af29f8c144f9621e24da5220904d792ae94eea76d6ac SHA512 b46c9a6a2ba80703ac1d0186af4066601d9f4b3a3063e0003cf507ce2dc37e9c4baebe72f90d3c2a92f6c2c4491d527c62a705a816535576cab2524f880a1b5b DIST vscode-1.83.1-arm64.tar.gz 133032981 BLAKE2B c02f3147ccf8811730695aff4f6a611b52b706b8974349b8b9ca4a4a8f46dc398809fe32ec79fdf828769d3a6713e080d82312b534f25918cefe32de0994a45f SHA512 8052e551d64754ec38eb6a8edbc14292d95fb0a177a328bc70c8f983c90952af2ad793a45a7001d81bded7410b9b8cced9d3521ce8ad2416df774ab0e110caaf +DIST vscode-1.84.0-amd64.tar.gz 135705913 BLAKE2B 3013fe6d6131237325dccf1de5ba53fe8de670098eb4d944e129faaa382f1e79d95480493f9cd55096ba5213685bf6d872bcf0cfe4d463abdb1872c33b8b3a8e SHA512 d86670e67b245c156b751a30253460c9b535de3a8387cf0e0f121861a05958974eaf20537c7c2beb36e2da048d0bef8e3163c541c30dc7eacfe5dcfceb59ac92 +DIST vscode-1.84.0-arm.tar.gz 122691456 BLAKE2B 9c89e96c50ffc317a56d066f0a81d5ff5b7e3e4ad53b2aef1bb2839d8d8ad861862bd81a131156843995fd97ada24c38100115f290881045fb7419801a44bc2e SHA512 8e64bf19e03fd6f62665037dba3164d5ac262a8f0cb18aca3372b4251f949f1a466e469e9d33a8df8771974564551ab86da3841f279c0a775c9630ab8e806a2f +DIST vscode-1.84.0-arm64.tar.gz 132914793 BLAKE2B 6d8f1206f8feb8aff3dfb8e2e9f34deeb4814de854da5b77eddff1e0666ed5a26ede2ebff1990f4e5a02a030e7a7ad66f90b46eec8dafae8f162d9172fed036f SHA512 03fcf66e821227b52e0f0e3aedc364335b8bb86bdc1083ba00e1baf2a06021a8b4a37902ff9f7a783d8281c5c3dc9b060ce9308883191aba0d200b22c2996670 diff --git a/app-editors/vscode/vscode-1.84.0.ebuild b/app-editors/vscode/vscode-1.84.0.ebuild new file mode 100644 index 000000000000..1bd03ac61a39 --- /dev/null +++ b/app-editors/vscode/vscode-1.84.0.ebuild @@ -0,0 +1,118 @@ +# 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" +IUSE="kerberos" + +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" +} |