commit: fc315fc60b82b62d43ed2acb31de8f606af4aed7 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Mon Jul 3 18:31:33 2023 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Mon Jul 3 18:42:44 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc315fc6
app-editors/vscodium: add 1.79.2.23166 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-editors/vscodium/Manifest | 3 + app-editors/vscodium/vscodium-1.79.2.23166.ebuild | 122 ++++++++++++++++++++++ 2 files changed, 125 insertions(+) diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest index 4197b865b433..fe9667d679a0 100644 --- a/app-editors/vscodium/Manifest +++ b/app-editors/vscodium/Manifest @@ -7,3 +7,6 @@ DIST vscodium-1.78.2.23132-arm64.tar.gz 119733620 BLAKE2B 95b6cdfa97a02fa18e5a05 DIST vscodium-1.79.0.23159-amd64.tar.gz 120597824 BLAKE2B 0219ea4bffcbc9353ac002037a820e9fd36d7af525c685ee92db63e9b8d8027712ecd892d1b8d4eeffe3d1782e6c794744c0ef6c576b001c4e798f2c5cd81c45 SHA512 0fbdaf930b6d2c13c87fb39bcfcfd77b086b31e9f11ffe19e223ebc72b9ff26e0563c00d143846bc589160f3839cc1245855b235f6af488fd3de0167a32f1487 DIST vscodium-1.79.0.23159-arm.tar.gz 109325368 BLAKE2B 0f322ba23926052e873ee58b8a8839ae2a8d5730915cbce20ede7e5e8809a0b0742600be96b1760c82debd1ac3a3663c8437020315efc6b667094d0927bf03ae SHA512 c329e7c323e87537951eed63a72401554f2e241ef15b971f44f8516fa9766a5ed335e074a797ad98548b30102dba827fa649f1479f072b68abb306c626ca16ee DIST vscodium-1.79.0.23159-arm64.tar.gz 120850283 BLAKE2B ab8edcf8870fe1584c508a4943a86e5c327d2a309139ac86fed0d9f201c950a47f4966664495e2a8bef6727abd531acde5d78e014fc016da632391c45c25a162 SHA512 a8a7780ca0beb8e6784e3eaeb0a516c8b07f40e9bd1b785259df4ec6c64bf89d2eb6d4d6feaeb1106304ffa002d14c5b238d06d5dbd2455841372db9d0fc6234 +DIST vscodium-1.79.2.23166-amd64.tar.gz 120602785 BLAKE2B d15fcdc0f1db850275ec8f2b8e0b0ddb66373eceba788028cd33ed6e2151ad4d33b98796bf6be00822f76436499521dbd9e1e5110f1df43d924d7e7f3d8f1972 SHA512 c2e007eef22e4027d252d2a9d578390499c4d07fe41b1f69d7cb6ba856ba51e864c46ec80a6bed8f37ab1cfe20954ce3878db78ce79ab0991635417cf627c9be +DIST vscodium-1.79.2.23166-arm.tar.gz 109328791 BLAKE2B 783c854c16be3eac8ea349eaa0ed9ff509eb27191606f245232e2b51ebbc2f338eb8e758677da2ac4ba1cfface487ea38c884b7ddec519e3409df9b066f1aa9c SHA512 6067ac88ef806e784bb8dda8eb2ecd377f52f71f60356384fde1cdca6a802568dba9abefeece2853c4e3961dd98636a66fd0fc4a98131cf4cd59300da2e67377 +DIST vscodium-1.79.2.23166-arm64.tar.gz 120833812 BLAKE2B f8cb53aa5faede65b62b174a48a23f6e761a737dffe86e2a92625b745856e106fd1398f68fc3b62d3c2ea5164e7f997be88b0cef735e9e718721982ffd630f09 SHA512 79f3c7e1507c0db4d93a35b207aa850d31127196c846f6479b863589634e75da68b30b1c0c5f66ba2c63201a1c4540c910f569f3152ceff523a27889b47a9eb0 diff --git a/app-editors/vscodium/vscodium-1.79.2.23166.ebuild b/app-editors/vscodium/vscodium-1.79.2.23166.ebuild new file mode 100644 index 000000000000..7f00a9381d06 --- /dev/null +++ b/app-editors/vscodium/vscodium-1.79.2.23166.ebuild @@ -0,0 +1,122 @@ +# 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) +" + +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="" + +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 +" + +QA_PREBUILT=" + /opt/vscode/bin/code-tunnel + /opt/vscodium/chrome_crashpad_handler + /opt/vscodium/chrome-sandbox + /opt/vscodium/codium + /opt/vscodium/libEGL.so + /opt/vscodium/libffmpeg.so + /opt/vscodium/libGLESv2.so + /opt/vscodium/libvk_swiftshader.so + /opt/vscodium/libvulkan.so* + /opt/vscodium/resources/app/extensions/* + /opt/vscodium/resources/app/node_modules.asar.unpacked/* + /opt/vscodium/swiftshader/libEGL.so + /opt/vscodium/swiftshader/libGLESv2.so +" + +S="${WORKDIR}" + +src_install() { + # Cleanup + rm "${S}/resources/app/LICENSE.txt" || die + + # Disable update server + sed -i "/updateUrl/d" "${S}"/resources/app/product.json || die + + # 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" "gnome-base/gnome-keyring" +}