summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-02-28 21:55:35 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2024-02-28 21:55:35 +0200
commita1a5efeae712465f3a3a78e50ab8a31dfe144ac0 (patch)
tree0efdde5e80bdf451f4e5bab99dc0392a7c8754b2 /app-editors
parentdev-python/pandas: update arches for no statsmodels (diff)
downloadgentoo-a1a5efeae712465f3a3a78e50ab8a31dfe144ac0.tar.gz
gentoo-a1a5efeae712465f3a3a78e50ab8a31dfe144ac0.tar.bz2
gentoo-a1a5efeae712465f3a3a78e50ab8a31dfe144ac0.zip
app-editors/vscode: add 1.87.0
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.87.0.ebuild132
2 files changed, 135 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index 2375070d05fe..62e637053efe 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -1,3 +1,6 @@
DIST vscode-1.86.2-amd64.tar.gz 140413911 BLAKE2B a46f1613e45bb020ee0550b7dcc5116973dcd6bc791fd38c46e5246da5089150d2b15b59a5e0afb5aebd6d690a246f0bdf7ac3a764e4172d33df2eedb7a6a4e9 SHA512 5c311bb24ac0d801f1a4ce73a982389df9092871364a02e44b914537bb6bede4078aa41b054fba2c28755357e3d89ec1763b1f7778fd21f59383fc2dafe1627f
DIST vscode-1.86.2-arm.tar.gz 125989628 BLAKE2B 3056c129af61e2eb8bf8b6568294b0b83fc3977a2bb0ac823e06594d8dbebadd2068618b270fb2146347f7e1528183b111b1f739a618a9e1181874de767af6c8 SHA512 900d345cb6e8f77c15575c0a01045fb2ac18837fc9cce1fa6c6fa10997fc227cc3efc96377aa39557b3ddc7d45d5b26d8f55ef35d6a6fdc8a37f2c703b4fdcc9
DIST vscode-1.86.2-arm64.tar.gz 137533176 BLAKE2B c4a0c215322cdc317a81654f655b563ded375f3fd936674625371cb1eba05b51dba5fe91a83d2ae78a6ef13dd7815bcec110fc2075ee185cad868b2d41223365 SHA512 2cd4d22cba02aa946d074b16c6299c0a8077a3be8e273759ff50d9126235b6847e3b1a5d07b3fefc9f6d143f939969ab6a8b6ae3b2f27b25e417e39b735de96b
+DIST vscode-1.87.0-amd64.tar.gz 140699732 BLAKE2B ad93f2feaef6c4cc3df0be5799ac4c154f62640b93790e8bc2571df0a49af033b07625fbea9befb6d52e7f084917813780409b32408b822b447603400628e1fd SHA512 ccd3a1de0cd7362dcb353d04ed7e35e84312c509d2aa24f955d7cd02fb7c93a2860374199f433c215c1b2e3c64805bcdd8f7cc5f9635a1c8e84130ba50e3250a
+DIST vscode-1.87.0-arm.tar.gz 126093562 BLAKE2B 1a90eee19bce6a6c8317353cf3098322c2265f86c632ac6900ede081f28e42741186b97f03186dba4a1189dd0a2079a3e118d006368b93af5029c5c34d812f0f SHA512 18a75d547d50ecd787ae263c88e0d2d87801636e268dfb9d534f384690213995562ab8d7d6ddd4db88d7ea52dc01e5ba0c7109bfa907aada6bf70c9cc934bcff
+DIST vscode-1.87.0-arm64.tar.gz 137643179 BLAKE2B 6ed3e3e8bf3f498f6e4da0a15b929bd32a1352cb691379dd7c50b87b90a369c78b859b374ac96a57e397d0ed9ddbe62d3e6c1db75e9a922695aee1eadb2bf74f SHA512 7e5535644b63e32e9d950239398405ff70a8a7611f4b90e5c2fb6bec292db8d0c237ff34f166d4bd930977449db68e7e06205e49a70cbb79f24e181347960f2c
diff --git a/app-editors/vscode/vscode-1.87.0.ebuild b/app-editors/vscode/vscode-1.87.0.ebuild
new file mode 100644
index 000000000000..2b8657537b5b
--- /dev/null
+++ b/app-editors/vscode/vscode-1.87.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/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}/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"
+}