summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-11-21 20:41:06 +0000
committerArthur Zamarin <arthurzam@gentoo.org>2024-11-21 20:46:15 +0000
commit72012cca313a97c7812e5c69f579b8c35eed83c4 (patch)
tree4bf79f7126ad11b9358799b5d27cb271c7442e7f /app-editors
parentapp-editors/vscode: add 1.95.3 (diff)
downloadgentoo-72012cca313a97c7812e5c69f579b8c35eed83c4.tar.gz
gentoo-72012cca313a97c7812e5c69f579b8c35eed83c4.tar.bz2
gentoo-72012cca313a97c7812e5c69f579b8c35eed83c4.zip
app-editors/vscodium: add 1.95.3.24321
Closes: https://bugs.gentoo.org/943033 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.95.3.24321.ebuild128
2 files changed, 131 insertions, 0 deletions
diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
index fe0eb251959f..705a98704aa9 100644
--- a/app-editors/vscodium/Manifest
+++ b/app-editors/vscodium/Manifest
@@ -10,3 +10,6 @@ DIST vscodium-1.95.1.24307-arm64.tar.gz 133657550 BLAKE2B 860a76d9e4ba2d52f996f2
DIST vscodium-1.95.2.24313-amd64.tar.gz 135687532 BLAKE2B 0fade954c5b1b9ff9e02a0c1f038d2b6101f654f08de1d5eac8c6d7a763339b9fe496b5f8b3770fdb765945b83326d93ddd78d0c15bd8012c6b06e71d6097313 SHA512 01f3d498f2f6848b93b4dd5f8274f09a0cf89f8891906f7378b8e1aa5dcccb06d3cccf07b7e28ea2a1cdf1e23cefd8caa5838d1068e3c4e4abb6a88d44938f1c
DIST vscodium-1.95.2.24313-arm.tar.gz 121752120 BLAKE2B 6862fa6125f6869007b51afb80b75901849062b403151ff73b124a9df27c9c616c9752208474d361906c576b0345609ec85f230944a286a6ee78fa609df0aa2a SHA512 993a43e1ecd28cf17dbdd1cf3e322b40e20be4b076a092c97b4e6adf957eed88b7506c63b5de97fc2c6d79313ccc9979be9c4f384cdb9295155ea603972fbe23
DIST vscodium-1.95.2.24313-arm64.tar.gz 133658561 BLAKE2B 34e97a59ac2ea8d963309c9ca736c1b5f83cc4e4a472210245a5d178c9a74b803867d1f414af1acd4cbc49094fb9ff8088538654a0e490207856d195aa23bcf8 SHA512 283b7fd396daf91458dcb2f99925e95b654310565dfaaf34bfdeb1327eb73fb08494e24a87739ceea9d13d41608f7bd57095ece9d3b3e54dd1becb1db4622078
+DIST vscodium-1.95.3.24321-amd64.tar.gz 135715917 BLAKE2B e6510efb8a20895c873db0d278f50b59b2dc5c4cd98086fcbc7d241634cc56ba9e3f22398f6f653d796122d847e5043407a8af644e71e779756963efcb6d55a6 SHA512 e6dfbeb8118cc401ca398749c553e3e66d9ea20663426f331a308bff3bac6aa253d7fa00579e7b49674875d47152185c76bd7f505179a1074910454827caa338
+DIST vscodium-1.95.3.24321-arm.tar.gz 121776506 BLAKE2B e836b8a8ade0df009a6db3c77adef681bfff28758a1acdc6b5654af9b6791bea50dc98a8dd5b1fe7fe603cb17d169d7b480e301b27f9d217183fbb3eff9f7072 SHA512 cabfde835c45308ab0bb7d427c546fb17c91c82236412aba88bccc1ffa5e5e05e92eead8679a58e4b5b8a3f457788d172cfcf3c4f92df9796c7ad7e03b25d03d
+DIST vscodium-1.95.3.24321-arm64.tar.gz 133684443 BLAKE2B 32c3626ce0bb101b42b0c77a887a213d49feea7271cef075c0b3338686278f5762b4e8a4a3003e57822f021d90d89dadb32b2f755b76e2e95ce2463791a5d8da SHA512 a6fccc9421fcfc9a0d590d60a8f34297d8eabc9864e898cd1d3b3d6630928d053475f33df34542bab7e35279512ade8a31602b5f8db5ef8bea4dc8d6794e0a5e
diff --git a/app-editors/vscodium/vscodium-1.95.3.24321.ebuild b/app-editors/vscodium/vscodium-1.95.3.24321.ebuild
new file mode 100644
index 000000000000..4bf914823a45
--- /dev/null
+++ b/app-editors/vscodium/vscodium-1.95.3.24321.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/index.md"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "keyring support inside vscode" "virtual/secret-service"
+}