summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-06-27 13:33:27 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-06-27 13:33:27 +0300
commit7ac1309b0bae120cf6cdc4e458bc704b110ca700 (patch)
treed62f5d6e62a66c203a9d3f8cb513688df8f3351a /app-editors
parentapp-editors/vscode: add 1.90.2 (diff)
downloadgentoo-7ac1309b0bae120cf6cdc4e458bc704b110ca700.tar.gz
gentoo-7ac1309b0bae120cf6cdc4e458bc704b110ca700.tar.bz2
gentoo-7ac1309b0bae120cf6cdc4e458bc704b110ca700.zip
app-editors/vscodium: add 1.90.2.24171
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/vscodium/Manifest3
-rw-r--r--app-editors/vscodium/vscodium-1.90.2.24171.ebuild128
2 files changed, 131 insertions, 0 deletions
diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
index db0fbe6dc703..033239cfc860 100644
--- a/app-editors/vscodium/Manifest
+++ b/app-editors/vscodium/Manifest
@@ -4,3 +4,6 @@ DIST vscodium-1.90.0.24158-arm64.tar.gz 130110717 BLAKE2B d6af799591556ccd659a9a
DIST vscodium-1.90.1.24165-amd64.tar.gz 130083135 BLAKE2B e276c4df9e1062ceeed0a781fb683d93c6bdc147eb02333a4ab4b10b93cf23155da3d94459f7c0a5f8c5913a08dc7aa495fe4ed3216f1fadbfa66536e90426b9 SHA512 ff5273b4180776a1b7bc60c6006fe64c8a499a6c3e71e16391feca54d12876904981bbdbbea047464eb618a02091a5e44023af00fd9baf8b28f68337a1740e9e
DIST vscodium-1.90.1.24165-arm.tar.gz 118696957 BLAKE2B 4a93ba7eb487d4996b97ba021fd0d2cb445e0ae4f5a8ce633f40ecb11ae3ff460aaf31a6d9bf5850441f84a76b88a04b5d7524e492d9d286a582d003d90d2e79 SHA512 ec0eb695cb5a405c621bfcb2dc0502a8f5a1503617036bcfadc4790d4d6b0de6c8210e9d6f850fe18ce4c6cd28aa5efc3d693556c642b9ba87ac3ada002bf6aa
DIST vscodium-1.90.1.24165-arm64.tar.gz 130109691 BLAKE2B 36ae88b99824619973f073a85b510a73d3ffcdc8a45749a0cdafc6a1c3c778600fb1395c3b94ab8fd1249d41edcfa2260c4f6393ddc57165e2414f511102bd88 SHA512 10e27f1c600a94e70493534c3ff0dc398b3bd4c0a74e950b3f92bc2f27a28a8f56129ffb41a4b6623bc7653ad195ca9866174269dcf7d57695982fa0fbe570b1
+DIST vscodium-1.90.2.24171-amd64.tar.gz 130084617 BLAKE2B afef95bb11bb1a57f1fdc0f4f640d39dddda907f67880206a355407831b5c2e0a3717ca18f6bb4479781115dfd64a36058622ff6970188fab86ef499b961c969 SHA512 6ac00322aeae18bfa0db154c109d4a20deb5f0109771049b6f063bcd0e3833b9e9565d7a488fa22c000bf3cb4af07d6b63d0b919e73ccbb50a72694f5174bb5c
+DIST vscodium-1.90.2.24171-arm.tar.gz 118699206 BLAKE2B 55f3a7c641759752c1405041c2cc36632ec9a9daf6d039ed6463924ff528a74f542f6e02047599e7e4fa359888575ab7673f09d7406b395263bd6215f8b9ee62 SHA512 8d62c8514fd5fd9bbd730d4a0d4fe3908a5e2dd5a0fbcf5b662636fd78ed845e505be84db3ec8a028fa7b8677830e83c0cf31e16514062b27cba09d9a01b4f26
+DIST vscodium-1.90.2.24171-arm64.tar.gz 130103623 BLAKE2B e87c1266e33b05689342170f0a7b86db15c95b0f714328fbbfc56996dc03583d37bd29eb4738dac78cbed9c184529ebd4534f1847cc1ba4906532d4a5dbd07f8 SHA512 514fd4d7c1c2f76a55355c87d7712dbebac0e4e05c50b70ea0563a84f2070f276721e47b832f1ba50a5f070ac48e3e0c9c404855c174f301a33a3f1ac45acebd
diff --git a/app-editors/vscodium/vscodium-1.90.2.24171.ebuild b/app-editors/vscodium/vscodium-1.90.2.24171.ebuild
new file mode 100644
index 000000000000..c4986884955d
--- /dev/null
+++ b/app-editors/vscodium/vscodium-1.90.2.24171.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop pax-utils xdg optfeature
+
+# Usage: arch_src_uri <gentoo arch> <upstream arch>
+arch_src_uri() {
+ echo "${1}? (
+ https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-${2}-${PV}.tar.gz
+ -> ${P}-${1}.tar.gz
+ )"
+}
+
+DESCRIPTION="A community-driven, freely-licensed binary distribution of Microsoft's VSCode"
+HOMEPAGE="https://vscodium.com/"
+SRC_URI="
+ $(arch_src_uri amd64 x64)
+ $(arch_src_uri arm armhf)
+ $(arch_src_uri arm64 arm64)
+"
+S="${WORKDIR}"
+
+LICENSE="
+ Apache-2.0
+ BSD
+ BSD-1
+ BSD-2
+ BSD-4
+ CC-BY-4.0
+ ISC
+ LGPL-2.1+
+ MIT
+ MPL-2.0
+ openssl
+ PYTHON
+ TextMate-bundle
+ Unlicense
+ UoI-NCSA
+ W3C
+"
+SLOT="0"
+KEYWORDS="-* amd64 ~arm ~arm64"
+IUSE="egl kerberos wayland"
+RESTRICT="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
+ net-print/cups
+ 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() {
+ # Cleanup license file - it exists only in amd64 tarball
+ rm -f "${S}/resources/app/LICENSE.txt" || die
+
+ if ! use kerberos; then
+ rm -rf "${S}/resources/app/node_modules.asar.unpacked/kerberos" || die
+ fi
+
+ # Install
+ pax-mark m codium
+ mkdir -p "${ED}/opt/${PN}" || die
+ cp -r . "${ED}/opt/${PN}" || die
+ fperms 4711 /opt/${PN}/chrome-sandbox
+
+ dosym -r "/opt/${PN}/bin/codium" "usr/bin/vscodium"
+ dosym -r "/opt/${PN}/bin/codium" "usr/bin/codium"
+
+ 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}/vscodium-url-handler.desktop" \
+ > "${T}/vscodium-url-handler.desktop" || die
+
+ sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
+ "${FILESDIR}/vscodium.desktop" \
+ > "${T}/vscodium.desktop" || die
+
+ domenu "${T}/vscodium.desktop"
+ domenu "${T}/vscodium-url-handler.desktop"
+ newicon "resources/app/resources/linux/code.png" "vscodium.png"
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ elog "When compared to the regular VSCode, VSCodium has a few quirks"
+ elog "More information at: https://github.com/VSCodium/vscodium/blob/master/DOCS.md"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "keyring support inside vscode" "virtual/secret-service"
+}