summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-06-27 13:33:16 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-06-27 13:33:16 +0300
commit729cfea22d932668a365faf6c12e1eca172f8e52 (patch)
tree750adf4e1016ecc9db64f9eaf7e7b4087500939f /app-editors
parentapp-editors/vscode,vscodium: Drop unused libcanberra dep (diff)
downloadgentoo-729cfea22d932668a365faf6c12e1eca172f8e52.tar.gz
gentoo-729cfea22d932668a365faf6c12e1eca172f8e52.tar.bz2
gentoo-729cfea22d932668a365faf6c12e1eca172f8e52.zip
app-editors/vscode: add 1.90.2
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/vscode/Manifest3
-rw-r--r--app-editors/vscode/vscode-1.90.2.ebuild131
2 files changed, 134 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index 78f5badd4950..85a968901de4 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -4,3 +4,6 @@ DIST vscode-1.90.0-arm64.tar.gz 140685043 BLAKE2B 7433f4b5562eb942013abc58c8bc11
DIST vscode-1.90.1-amd64.tar.gz 143929144 BLAKE2B 22d8eb40647b8e91e6f09962b76a48944d6afd497385650bf3c153a0be763a643fbc1e1ba8d6468d9731b68a571d289e17e855b7081ad716fb1441b8a3e5478c SHA512 1288beb684918f831b887a3f0386ec5a5ce4c1140355bf835610221e09d566101bdc5f77734b0786aceda82500775f8adcbc09ce50b3ddc65dd3f74815032198
DIST vscode-1.90.1-arm.tar.gz 128878947 BLAKE2B aceccb3ba1ba658a5378d582a662b7ebebb194a54d26107a7a7d0696a0d04416222a6d74d50966f8d8b2c7ee355ac3a8649e01d75d6a3294d6b4384442971e3e SHA512 e9bd3aa12d07e0ab7ff40fc89e5cbd2a8ed3e1e655a709b91016352ee7c800a52fe952a1069f67b5dd9b1801117ba9d2c1594c0c5706ad61cdd73c4c47ca1660
DIST vscode-1.90.1-arm64.tar.gz 140679137 BLAKE2B c9f683d2140819c309f078bbe1f5fd38887202c52ec4158e7a02f661be1d92bccade18b409b3461135823a184a57adcc4e7b309d23ae7ac731e5adcbe736714c SHA512 71e23f79e880443dc18cef358fd08e43cb0640364d96c08bda3f05a9d87b2d68b44acfb5f9a01943dc89110962246c4f92ebdfda5c2498efa383551a62f44689
+DIST vscode-1.90.2-amd64.tar.gz 143925020 BLAKE2B 726492e28b627bbdd685a3b5582500662de7e6124653fc6fc2b97fbe391e09ae9a486e695abf8da72ecd4ee4959672e178e977669d3e8c32d50f8c4f0884a926 SHA512 9c3b1f209eb69965ca707a861bd874a57ab1bbef70a696b64e11d51bf8ab7b82886ca2c21c279ac7b35b35dd33f38e72bbb4b7195087c4899bd1116771496065
+DIST vscode-1.90.2-arm.tar.gz 128863205 BLAKE2B 5bfe048eed062e68d911416c5c84b0a094aee036b03cbcddd223766f3891cebb17aa0446213f38c1df0ff2b4de7f27ddbe05a3e68fa7d949f5feda0e26fc7d6e SHA512 b5bf2f145d422dfa684eba5bba523bd16dc7ecb29cbddc06ab3091148e4f0ee296ee58a87fdcf47e80cdc3d188fff0ef8926c0e0305db3d1078a1ada8c9ecb67
+DIST vscode-1.90.2-arm64.tar.gz 140680835 BLAKE2B 6776979819c6743f7338a4a9e159c51fcbe1123b2f5150cdcdfdd0496b77c0e3a4cfaf17752b8c77bc2a6f37366c04fa6414c666811057eb6d0a0f5ff5f6a197 SHA512 40245db6e4035846f3bd90e38bc7686d8cb2c74c04caf2acae46f5bbfc51d0f1cbf032faf3c809dde5b286a94bb109821a35d79b797c99ccc19f27e2136e3668
diff --git a/app-editors/vscode/vscode-1.90.2.ebuild b/app-editors/vscode/vscode-1.90.2.ebuild
new file mode 100644
index 000000000000..c06246461b83
--- /dev/null
+++ b/app-editors/vscode/vscode-1.90.2.ebuild
@@ -0,0 +1,131 @@
+# 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/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"
+}