summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-09-09 08:54:30 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-09-09 08:54:52 +0300
commit60ec3e3e490522ee04dbd286730ce38a785815ca (patch)
tree98656f08a1ea229e7dc5adc21692593d201dd9a6 /app-editors/vscode
parentapp-editors/vscodium: drop 1.81.0.23216 (diff)
downloadgentoo-60ec3e3e490522ee04dbd286730ce38a785815ca.tar.gz
gentoo-60ec3e3e490522ee04dbd286730ce38a785815ca.tar.bz2
gentoo-60ec3e3e490522ee04dbd286730ce38a785815ca.zip
app-editors/vscode: add 1.82.0
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors/vscode')
-rw-r--r--app-editors/vscode/Manifest3
-rw-r--r--app-editors/vscode/vscode-1.82.0.ebuild112
2 files changed, 115 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index f9344fc6d3ac..a6ae1157febb 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -4,3 +4,6 @@ DIST vscode-1.81.0-arm64.tar.gz 124958839 BLAKE2B 5e4595bd42736a7d2a9d0d97897d9f
DIST vscode-1.81.1-amd64.tar.gz 128457191 BLAKE2B ae24ceca58b1a23ff1b22ace4ff65a4e648435c70ab418babd64b0d5a337190046f274c3e2618c97493faa992320cf3418d6b7faaadd4966129defe7c9d4c249 SHA512 c00bc1e9d583334a5936853071420937963ead2a556ac2767efb0b286687abf16ce9d1e3d6042025fb1843629352b9b0406a33234615e1300b4e2b7133a215ac
DIST vscode-1.81.1-arm.tar.gz 113366792 BLAKE2B 127a7accf96bc9e0bef7cc592fae31963c7335ad61425c677b41851fb0712c38c1f9e2a0f80b0c431654643ad3a84c49cd3f073f3d34b276a2743eeb2c6e0c17 SHA512 de935ba4c9d9cd8e3c1a157e4d37e30d58422f0844a16963ee9f682723b5ba0a8390c422d400793148aec223ca9acc6ce92efa203be3e447710e6394d223ef0b
DIST vscode-1.81.1-arm64.tar.gz 124991405 BLAKE2B 1812a924857d78023c2b93dd714ea3eb690f28cf644f2ce0a7d083ceb52e1c67f137d31e262cf143f3a0cf2d86128bf6d584321627d0cc85df6c482d0c9d4118 SHA512 4f8e37c1189be47dca0259db54d2dcb33c94bfd9c8392031792d64200d5ff5b780a5e38dc91c2aba62f42ef6ebc5aaadc7539ef8b9839b5d3387c328a630e920
+DIST vscode-1.82.0-amd64.tar.gz 135420502 BLAKE2B 81af0649a5e16e953c4ce4bf66c3a572ca01ba0b2c586dc3114974c5950fe5ea6cf152e6fc34ab76faa54011f8c1bea43ae27df57387093b3d1a94ecb1255005 SHA512 bf86ee854934c180c8cd026395dcadf31d53f6a8631a3721affb229a388cbbf9c3b7c5675f8b5ffc8996e61dc1040afc37d3197963992849a124f731fa3b5793
+DIST vscode-1.82.0-arm.tar.gz 122224065 BLAKE2B 8702ff5b435f04a7159f9a6cfe315d561d366d67220d73512a8f3cd016e612b7f9c64455a96bb652fa07c7efb2a59fb03881a9db6b20b37df7dd31b8de82af20 SHA512 59476638d3b59a8585f0fe534a038071b1664ff38ffacbaf837232551ae00bd46764e720ed0dd9c91ffcb159a747287862da52c89344f5244c81c2b560109268
+DIST vscode-1.82.0-arm64.tar.gz 132347258 BLAKE2B b36bc943b4495285b34925661a2320ad7bb0476b9e9270d7d72a4dd581a5799f7b822e889750d344c536977c3eaa78f15ad65ec81ae85419c2faaeaa8d62446e SHA512 02f59800bff3ed6e68ee1a624b7211198ae53e6df23d45b77ca883f732b63e300b8a76e79e073a933a168e523c619bcb44c71be9ee8e342e08849206a1e66d58
diff --git a/app-editors/vscode/vscode-1.82.0.ebuild b/app-editors/vscode/vscode-1.82.0.ebuild
new file mode 100644
index 000000000000..8a367acedd94
--- /dev/null
+++ b/app-editors/vscode/vscode-1.82.0.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"
+}