commit: 6ee187780425f743bd6869b9309cbdaa027cf87d Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Thu Sep 14 18:13:34 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Thu Sep 14 18:22:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ee18778
app-editors/vscodium: add 1.82.1.23255 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-editors/vscodium/Manifest | 3 + app-editors/vscodium/vscodium-1.82.1.23255.ebuild | 109 ++++++++++++++++++++++ 2 files changed, 112 insertions(+) diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest index 093a25773e1e..a77988747110 100644 --- a/app-editors/vscodium/Manifest +++ b/app-editors/vscodium/Manifest @@ -4,3 +4,6 @@ DIST vscodium-1.81.1.23222-arm64.tar.gz 121398210 BLAKE2B de2504f5c10fe3c652fb3a DIST vscodium-1.82.0.23250-amd64.tar.gz 122389248 BLAKE2B ea0b0483c63086dee906c4c018cc547867446fd4fca39298e6ef38cf2c60831fbf0a5ca5d7c7aaa41864b23837e06c0caa81b296cf09b3e8f8164684058aa61d SHA512 edb52dd0503a4f9e5948489693b0444abf921d947ff0ffd8783051663750840302dce9d34e853e35511479217ba2b7f00af6d9755ee3ebb4c17cfba1ddc21f8c DIST vscodium-1.82.0.23250-arm.tar.gz 110995455 BLAKE2B 5db45ae26ea0c8cae119dc763a22ea192b7e668517bd290ef180b2bae906737761af548948c215032766b549b730314de0861ee0a315521ac3146df8fc899ad3 SHA512 3572132c278384376a2a87810dfeb0da5009da781044edb28db6d74aea36ed9472916d8590bae71e609463a2dc668799da077983f844a8c7c1cfa9d34fdc0111 DIST vscodium-1.82.0.23250-arm64.tar.gz 122765625 BLAKE2B 0c5ea5d8bbb0890b1484c516afc13bfab3427d247b023bdf96527b5199ae570da637fe420a1f84601ef0616f20dab7cc04e83f9c9c542fc55c5f4f9f50323b94 SHA512 e89d2c502920d815b4e83d6dbd9757536eb0469409c342ad11af2160d954d195153e48a2b9cc18dd6be08f0086d97702b521684e3dc71057a329759459f404d3 +DIST vscodium-1.82.1.23255-amd64.tar.gz 122378820 BLAKE2B 76f9bdc38b4803fd37527ce91ac00512fad3a7b68824782a0126dcdde26b790f063e719ded50bdb6ffc656cd6505f3787772d4a77d9dc07cee3f8652674c979f SHA512 af5839687d9880ca1ee350421c8065a736dba7e3dc465470535156805f29eb0cd8ca2024660ec52aaa899e9bb435cc8b05d65d37544d113a5c34f119e144d603 +DIST vscodium-1.82.1.23255-arm.tar.gz 111001076 BLAKE2B 81665f6e38e692f19ae417691de87519f3922249d7ffbdac7f20ee07567e4503f0491a9e9d8d2b4e230fb3a87a27d28865cbb27a3ec511a471108393dbb8b5dd SHA512 043f1942b783fb05b8a6da02d9918e24f46b12366901f1dd3bd3c57e1d1a91152d40aa1d2578cdcbf7623f83f1ba90ea938f45a7993aa0b917243891bcfff541 +DIST vscodium-1.82.1.23255-arm64.tar.gz 122773280 BLAKE2B b07573a00a5d151e195fe7640b8c4faae9fb352794a21479256d0cfd715d0663ad250bd54e1c4049e0f56b66cca57abb8965328ea9bd9116be3be7553d16c91e SHA512 76e62d81bca0fa5046ba9dd7153360b37ffd075f52a36196aa8a66afb340eb451167b7b3b6eead542d318dc235ceb8aec5c85b87d8831f6eb7a3a2cf9e85f982 diff --git a/app-editors/vscodium/vscodium-1.82.1.23255.ebuild b/app-editors/vscodium/vscodium-1.82.1.23255.ebuild new file mode 100644 index 000000000000..a5fc09b2ca4c --- /dev/null +++ b/app-editors/vscodium/vscodium-1.82.1.23255.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2023 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}" + +RESTRICT="strip bindist" + +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="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 + net-print/cups + 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() { + # Cleanup + rm "${S}/resources/app/LICENSE.txt" || die + + if ! use kerberos; then + rm -r "${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" + domenu "${FILESDIR}/vscodium.desktop" + domenu "${FILESDIR}/vscodium-url-handler.desktop" + domenu "${FILESDIR}/vscodium-wayland.desktop" + domenu "${FILESDIR}/vscodium-url-handler-wayland.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 "keyring support inside vscode" "virtual/secret-service" +}