summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-09-14 21:36:32 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-09-14 21:36:32 +0300
commit991f665561c381d308ea8e72162fc5a8688f1a81 (patch)
tree6ed42ffc98c85fa1bfccbc0510f3aec87972087e /app-editors
parentgames-puzzle/pauker: drop 1.8-r2 (diff)
downloadgentoo-991f665561c381d308ea8e72162fc5a8688f1a81.tar.gz
gentoo-991f665561c381d308ea8e72162fc5a8688f1a81.tar.bz2
gentoo-991f665561c381d308ea8e72162fc5a8688f1a81.zip
app-editors/vscode: add 1.82.1
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.82.1.ebuild112
2 files changed, 115 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index 5b1bafd9635b..cbd420007bd2 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -4,3 +4,6 @@ DIST vscode-1.81.1-arm64.tar.gz 124991405 BLAKE2B 1812a924857d78023c2b93dd714ea3
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
+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
diff --git a/app-editors/vscode/vscode-1.82.1.ebuild b/app-editors/vscode/vscode-1.82.1.ebuild
new file mode 100644
index 000000000000..8a367acedd94
--- /dev/null
+++ b/app-editors/vscode/vscode-1.82.1.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"
+}