diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-02-01 17:02:03 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-02-01 17:02:52 +0200 |
commit | 5be32a6988990866b303b25afe53289c2e7133b2 (patch) | |
tree | 71ef9ca4f4ed445ee4b0d528c3b412bc2725d7d8 /app-editors | |
parent | www-apps/sonarr: add 4.0.1.1047 (diff) | |
download | gentoo-5be32a6988990866b303b25afe53289c2e7133b2.tar.gz gentoo-5be32a6988990866b303b25afe53289c2e7133b2.tar.bz2 gentoo-5be32a6988990866b303b25afe53289c2e7133b2.zip |
app-editors/vscode: add 1.86.0
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.86.0.ebuild | 132 |
2 files changed, 135 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index d794407e7182..8ce3667c7576 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.85.1-arm64.tar.gz 132288396 BLAKE2B 7888bf80ef6f2452b7f06f5f5ec77f DIST vscode-1.85.2-amd64.tar.gz 135093754 BLAKE2B 3445162de80d3bc01f2e9546f582c760ae4f08156b9f96f28957ef32e16ed12fbfbfb175b4d1ee2eb4ce37563b37e48e7b8fe269f186d2ccecc222a220d44dfe SHA512 84eaf46805a449f11bc2c8acbb200c22c20a20ea613e68d8d18e31b327f308366e84c4b867663b919cbc5569a56544f0e78bab6162945fa3f55f8e4c3086b044 DIST vscode-1.85.2-arm.tar.gz 122030066 BLAKE2B 09a235369b27b2e44e4009849cf3fe04be2ab15f7077bd47d81b3fdbaf31f5814c29712bc05bef81ff26c428a33df2838a56368d92324cfc0aa1933569218ccd SHA512 014597f3b08e218f8750a5edd1ecdc00a97a07e3f45362ab706cf1bd65844e7a79df5f5772a634045632a672db920cb9754555781760b9b47e42306a4a28eac4 DIST vscode-1.85.2-arm64.tar.gz 132290027 BLAKE2B 70044266ed60431547a2d4a55c62ada59a7bd2f3299fe4a75076550e1a1206f188776bff98b0d0e1d380557976db7b45c4bb29e60bc5831a2a34a3e6ce420c5e SHA512 86ddc90149e9e9a4d2bebc2790d883ffdab6e33f84355719581935ed70c3a3bf8bb709cbc2cfbb000e47adb98ed2ebc69324c4cc34b408e6ba5c5ac982e5adf5 +DIST vscode-1.86.0-amd64.tar.gz 140414646 BLAKE2B 4ce937554f06c3c78a85c15193eb80daec3629843e20c0d9316bb59a2c8e1d4611c0c062156b3efda0a1d2b7c2320568eb7f90c12048c1e94b609da857e7084a SHA512 ee738df782645276c60a59fa7e933106d0793b14ca290e5bd837a731d606f152083605e0006d494195a492c8332424fd81647c6e3fa3e5abccb17cdb593220f7 +DIST vscode-1.86.0-arm.tar.gz 125997645 BLAKE2B 2cee9b572c382b4af1e429000478c8aa7910a150a59836cbe87e94c5d1a1e6e6a972f8bc37d168081050fb98ea7d1adf29968d6d3701adc1d5de920fefa0dfde SHA512 4157368b5346b7ac2685ba9de6f70492481124fe03fd6d76424d8edce5fbecc4fb9d14d5e1b04bf6333d5f66fafd56d82d49747a94cdb460ccb09aa48440d089 +DIST vscode-1.86.0-arm64.tar.gz 137551699 BLAKE2B 21b3cee54f83e5cf7c81079f7f14f517b2a820762377d2c77a0c6be185e28bf3f84cd964824ed909fa6769efc9186c9ebd8580b6d4700842fd226782b342f16f SHA512 dc82b06024ba7746f8e3aee08373552a153ef4c1a6a608a7aa4e3b62be378ee9aa253e7b03c2f6879e04b7077d0da835bb2252122f1ff580afce38be76e4370f diff --git a/app-editors/vscode/vscode-1.86.0.ebuild b/app-editors/vscode/vscode-1.86.0.ebuild new file mode 100644 index 000000000000..f8ecb8a0a190 --- /dev/null +++ b/app-editors/vscode/vscode-1.86.0.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/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" + + local EXEC_EXTRA_FLAGS=() + if use wayland; then + EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" ) + fi + if use egl; then + EXEC_EXTRA_FLAGS+=( "--use-gl=egl" ) + fi + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/vscode-url-handler.desktop" \ + > "${T}/vscode-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/vscode.desktop" \ + > "${T}/vscode.desktop" || die + + domenu "${T}/vscode.desktop" + domenu "${T}/vscode-url-handler.desktop" + newicon "resources/app/resources/linux/code.png" "vscode.png" +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "keyring support inside vscode" "virtual/secret-service" +} |