diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-07-14 09:45:41 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-07-14 09:48:49 +0300 |
commit | f0fafb78af1cfeee39c5d412b2ef5dbc0ef32bf3 (patch) | |
tree | 4567e4bbe50458f16eade7610e9ed4378a6643cf /app-editors/vscode | |
parent | dev-ruby/elastic-transport: add missing test dependency (diff) | |
download | gentoo-f0fafb78af1cfeee39c5d412b2ef5dbc0ef32bf3.tar.gz gentoo-f0fafb78af1cfeee39c5d412b2ef5dbc0ef32bf3.tar.bz2 gentoo-f0fafb78af1cfeee39c5d412b2ef5dbc0ef32bf3.zip |
app-editors/vscode: add 1.80.1
Closes: https://bugs.gentoo.org/910172
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.80.1.ebuild | 121 |
2 files changed, 124 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index dd20f9ede283..ee9be0d4ea4c 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.79.2-arm64.tar.gz 130972979 BLAKE2B da5c86ac8bfe4d7900aec6dbd61de0 DIST vscode-1.80.0-amd64.tar.gz 135325602 BLAKE2B f959c454f0a0fbf3f499eebfbc48115347e88619e44d0ceb68844e23e15991627651b2d63c0b7f756decefee9e535f39d3ca4a0292523af541c4c1b035f339fa SHA512 b121229bb9c7ed467370a00abb5efc53b8999cade79351c9740037df4af5485714c4695905e228e1e483f69c30e84ec7182ad249431d68f5d3aaacaf6ac2c44d DIST vscode-1.80.0-arm.tar.gz 119949287 BLAKE2B 56b20d79aacf3effd36f811c25fcb56e80df03a18026ddb13de62ef06aad13d92bdb93739f330bd212007023ef75f4be99616f945569755d733ab97af8757231 SHA512 ea98b06a0adbe097436a9c154c9083442426128105c40ebeb73408471822102f9b977985ed50cedb056d0a4ab9578415509f2a558fbdd901d9a230a1cd267f4d DIST vscode-1.80.0-arm64.tar.gz 131637682 BLAKE2B e8e50dba908b288ee359d97d378ce8ff36f4c82d3fa4f101a2c9d335641b6d121cddd5dff8f6f233defa8234fff880d2a3c8a006e069612e511d5fed90b4df0c SHA512 233a380270f043dbe5b045188f7c28731325be6705a0365f1d297240f8a0e77876189685cf7e93f60e52617524c65cf5b6c9390ecb8e01e266c6bced31680941 +DIST vscode-1.80.1-amd64.tar.gz 135332845 BLAKE2B 902f050bd8342062ff27c9c8d22c10d0c7508be08c3d35b5f5a2396c4dd152e87ecd8537a216a7d67a07a7359a9bfdf43f4f26c85e3962340bf915fbf48eeeaa SHA512 f48fa9b2c1b2ab002ee3703af611779e59c7f3d62ff20306ef5bbe4f76dcd33135ce9a3158402316c06f0251baccb7226f261990129654eb495813f86a06dfb1 +DIST vscode-1.80.1-arm.tar.gz 119948123 BLAKE2B de8dfae7f534260c045383ec9abd4662a2d1a462d1d6fc2abedc90c562713693bcbc83056037fe946ca85de2e74285e3321a706c87934c75b07c774061b6ee7b SHA512 cc928eecd2918f6b52a22447f606ac290b02b01b45c3644d73b6d1991169ad34cae2152f64f2661a183577c7194e3e10e2c25177e39231b4fba0cdd76ba7d54e +DIST vscode-1.80.1-arm64.tar.gz 131637149 BLAKE2B 1fdcbbbf0111ec61fd280a5c75eb58de9f44daf0424a2a15575cdffe42ab65b4de2c04776bc8e2e40aeadfeb7720f9d7955c0aef2c596eeb2ac7099ff31905fd SHA512 d337cb7d8757bff99cf198358acb74501527ced00cbadb2f27bd4037e78b4b631ece09dae947f40eac8ba64613077f53179550a7ce101de96254cfb5ceb05b81 diff --git a/app-editors/vscode/vscode-1.80.1.ebuild b/app-editors/vscode/vscode-1.80.1.ebuild new file mode 100644 index 000000000000..5a160dc35b29 --- /dev/null +++ b/app-editors/vscode/vscode-1.80.1.ebuild @@ -0,0 +1,121 @@ +# 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" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret[crypt] + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa + sys-apps/util-linux + sys-apps/dbus + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + 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/libxshmfence + x11-libs/pango +" + +QA_PREBUILT=" + /opt/vscode/bin/code-tunnel + /opt/vscode/chrome_crashpad_handler + /opt/vscode/chrome-sandbox + /opt/vscode/code + /opt/vscode/libEGL.so + /opt/vscode/libffmpeg.so + /opt/vscode/libGLESv2.so + /opt/vscode/libvk_swiftshader.so + /opt/vscode/libvulkan.so* + /opt/vscode/resources/app/extensions/* + /opt/vscode/resources/app/node_modules.asar.unpacked/* + /opt/vscode/swiftshader/libEGL.so + /opt/vscode/swiftshader/libGLESv2.so +" + +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 + + # 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" + dosym -r "/opt/${PN}/bin/code-tunnel" "usr/bin/code-tunnel" + 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" +} |