diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-09-18 23:39:44 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-09-18 23:39:44 +0300 |
commit | 11ce0956d84f48875d3f83c594c21d0aa9479ad5 (patch) | |
tree | bfe3d6405e5092c942074637059544dc69027a91 /app-editors/vscode | |
parent | dev-qt/qtwebengine: Stabilize 5.15.10_p20230815 amd64, #913051 (diff) | |
download | gentoo-11ce0956d84f48875d3f83c594c21d0aa9479ad5.tar.gz gentoo-11ce0956d84f48875d3f83c594c21d0aa9479ad5.tar.bz2 gentoo-11ce0956d84f48875d3f83c594c21d0aa9479ad5.zip |
app-editors/vscode: add 1.82.2
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.82.2.ebuild | 112 |
2 files changed, 115 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 570e6232ea86..21e44227fdd6 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.82.0-arm64.tar.gz 132347258 BLAKE2B b36bc943b4495285b34925661a2320 DIST vscode-1.82.1-amd64.tar.gz 135430084 BLAKE2B 4f1196ead8122f99c73b475a15378c387569158dbbbf9b0467b89ecbd6a355f3caad5d395c887068e57e21249993a3c9293ed8371927f7e5bf134799da0ed5f1 SHA512 69af211f60b8c3bacc7ccfbeeb0eea138b55ab704f983b96981664fbdefa11caad4709b59a2dc93934c2759bd96f3d084189756e117ecef5a90bab73faa44304 DIST vscode-1.82.1-arm.tar.gz 122213231 BLAKE2B d6305a35b8b7439c055234dbe5c425876fc8b14be60dbf06addcef027c40ae800f3c6d2f27ade5914d801e1958ebcb375c1974988a5051636079b94a226c3e33 SHA512 a4ec5847d1ccf50bd9cc745e3e399345bee287c2f68a3766df8b8f370abc2492b8ee18b64d5ade11705e466608dd05326c40e93d275afa01508a896a67357ba0 DIST vscode-1.82.1-arm64.tar.gz 132333024 BLAKE2B 7d686c83083f2d864d8d98c55fb1ceaab583a76658463b1e37ef5690496f63d53321087a7334680f89d4cc0aa5c8b5d7c60ea00f09fb6ed7c9cd5edc2d8d80e3 SHA512 49d8ddcbb7c1935fb1eda34a9b04e858e97ce8a7cf225fdf098fd56f27bc0f1b9ac6de7a9044ed1b87f9bbc013c94029358f029057e70d727a3d366cad4f1bf0 +DIST vscode-1.82.2-amd64.tar.gz 135438033 BLAKE2B 377fc7065853b55f785c3580a55762631e95bfcb96938f446cc7ccdb132d4f9dac98740195d544bb12ad124039f5dab9092e5b5a052c03f49e5b6ba0e91c9781 SHA512 d0f6232e1cafd833ee330c187a8b50a97d8a0f0c06bac9f37fd12c0dc41171f49516918e7e7b9a993959df8b996ade4b22d30461efd5e2a0fea1e05fe1a44a15 +DIST vscode-1.82.2-arm.tar.gz 122191456 BLAKE2B 6acf227590aef535396ad52aa1bbf6634368e4f05ff411b7df3f5a33feb640c4a0dfb922fbc2e388c9f1cc369894616537a8b6106d89ca5efee0001046a301e7 SHA512 f155c2a574c80ed21bd937a8164fb4ba75137e5908dcda105188fd8e32cacf82a9d4e985d7911df71054bfc92e778a8113c565bae8d58ed8386bea27daab8a38 +DIST vscode-1.82.2-arm64.tar.gz 132356434 BLAKE2B 4d74c79286a3294a73db629eb318af70109a4debf8be56d6bac2bd6d6780ae0272fad7d290fe303808355b23872a22cf3d7f7ecb23e89dbdc9794e04f1673510 SHA512 4b2f522f7bba974544afd17c4c6b48bd7060a8dd21002d9cefa2c1190f7850ccdcde8bb9f269944c29eaaf0cf369b5e1e7461c490a932cd4082363271f46131b diff --git a/app-editors/vscode/vscode-1.82.2.ebuild b/app-editors/vscode/vscode-1.82.2.ebuild new file mode 100644 index 000000000000..8a367acedd94 --- /dev/null +++ b/app-editors/vscode/vscode-1.82.2.ebuild @@ -0,0 +1,112 @@ +# 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] + 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 + 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" +} |