summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-10-06 22:24:48 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-10-06 22:35:46 +0300
commitcc27dca2d9383b72b3813f0dd357b358140e68c9 (patch)
treefee2e0901d49697be282bc96141fe84a6ea0c9a7 /app-editors
parentapp-editors/vscodium: add 1.93.1.24256 (diff)
downloadgentoo-cc27dca2d9383b72b3813f0dd357b358140e68c9.tar.gz
gentoo-cc27dca2d9383b72b3813f0dd357b358140e68c9.tar.bz2
gentoo-cc27dca2d9383b72b3813f0dd357b358140e68c9.zip
app-editors/vscode: add 1.94.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.94.0.ebuild131
2 files changed, 134 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index f8bcc1822483..0d26696c0ad3 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -7,3 +7,6 @@ DIST vscode-1.93.0-arm64.tar.gz 142237085 BLAKE2B 517d4cc79cab13e6feed478c65b0fe
DIST vscode-1.93.1-amd64.tar.gz 145338512 BLAKE2B 695efd4382aeab3c9aded7954146b35f9340ce17f9410f215461b9bb42ed0d1e82d32352f01a6d48d94876504d3ba559d8ded021fb24980da60750dd3eb956df SHA512 1fb697549f685c820154375426320addd716921a6bae859263dfec9aeabdd74f74826f300c65d78c99fec1a110cebfe031bf439811a56f16ec41fda3fdc98611
DIST vscode-1.93.1-arm.tar.gz 130274818 BLAKE2B 781d9a7784dd936a81f9407189dd1608b6778baec0c691f2337e3c3f1605578d09335a437de3b5d423b0df86b5f8256bb922ab5b7496df53b47e53788ccf9881 SHA512 e909d8126ee0013dc21c2eb97cca2cae3f4e823ff7b6342b544669d2c7b66a407ac3b56e68015130f6a807e64187bab88010e16037eb13dd27354069c2abffa9
DIST vscode-1.93.1-arm64.tar.gz 142212394 BLAKE2B 41c749fcfff253dcf9295429129c9487cc95b12f9c58f85c2864e5fbd65efd1b1818a438c9eb4132f6413ae83bca4ea27036510845eed446123a1e071fba4d39 SHA512 069339d4623a64d3de39241b9490b8ecda581728c78e343bff4749d06ec22311cb952243d485ea1c91aa16a46f74c66c06e7a8425b1063a9436b9161401812a3
+DIST vscode-1.94.0-amd64.tar.gz 144889379 BLAKE2B 17fbd71f998cdc9b88ace561189da209e519184a2f8e59eb030b3b4b1c92eebb1ac8b66e5eb523a158f889d8e5762a7b94b66241768e389a794b453a3d6e3322 SHA512 f9cc1d72a08d3368db102b30e54c7301ebd0cbc1e94ecc15473ba74e426ce87ff3a8b3d896d200be1a1cac892b546b684dc70afa85994a6d7a341a8bff8f8232
+DIST vscode-1.94.0-arm.tar.gz 129429788 BLAKE2B 0101dd7fa96054436150c1920e52fe79242c2d8c3fcfe636928ce1e235394a76ed473edaf687af4f1fe8707fae652ab7504279bcaca0362db151add22e9d2ec2 SHA512 822b5a72dfc48c7fe76c81aabc22da30a341680038bca0c56295b62941ff46fb8ffa61f6aacaf73aa92c103fcf204ed3c029a3074a0841064dbb6610b82da2d9
+DIST vscode-1.94.0-arm64.tar.gz 141176632 BLAKE2B 24983ff03439f74597375abf763ea194337abf7e68a43b74748ed22b47a873483cf63b73159554530278fdcefc6dbac949e3b8450dba1502784568a25f87f15b SHA512 00b98be5070e0d03f418fe18fa3e7fbceb6afc12d2c5cd90956131b23773681f1fe99b7e11c096ce238d4b29c2669047081f7112298d7965ea11f853e4b5ad6b
diff --git a/app-editors/vscode/vscode-1.94.0.ebuild b/app-editors/vscode/vscode-1.94.0.ebuild
new file mode 100644
index 000000000000..7757235fed73
--- /dev/null
+++ b/app-editors/vscode/vscode-1.94.0.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/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"
+}