commit:     b40a802546a33509400fa024e2574a58900a9bdb
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 13 20:38:58 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 13 20:40:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b40a8025

app-editors/vscodium: add 1.74.0.22342

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-editors/vscodium/Manifest                     |   3 +
 app-editors/vscodium/vscodium-1.74.0.22342.ebuild | 121 ++++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
index 270ff1ea88f9..93f2585714f1 100644
--- a/app-editors/vscodium/Manifest
+++ b/app-editors/vscodium/Manifest
@@ -7,3 +7,6 @@ DIST vscodium-1.73.0.22306-arm64.tar.gz 112892547 BLAKE2B 
81cbaa37d557d2e67eab28
 DIST vscodium-1.73.1.22314-amd64.tar.gz 119819615 BLAKE2B 
5937f0cdb22098eef709c84ca1f9efd9a7af094e8d1a236385d79ccba7499224b7097429b8ecdbb17ee7b879790557fd069bda1094c9dd3a5cd3ae34b92b6e73
 SHA512 
ab92cdceebbf6352b9c0f882f79d2c3d4c2d7ee301b7942dd703ad02406b9fcec9bdac3eb2c46cc921b21d5170780404f72b961a33a91fcbfa630daa29da7262
 DIST vscodium-1.73.1.22314-arm.tar.gz 101865243 BLAKE2B 
b414e5a07b8dd1b64e260227abc6771a864c7604161e7df6a7c4ed865fbda8f500f4d0734d0b87e13e6f0a9ea5a5a93ece551c0ce1cc7a320c71b9a12ebc7dfc
 SHA512 
4f1c03941922b6e5e0c8c846a2f9a7435ed697b83006841492d9622901e83b5b39812a6c8c053fc856ec92060bbb0fab3509f34c5dc147cd4a35f651efa79fa0
 DIST vscodium-1.73.1.22314-arm64.tar.gz 112895655 BLAKE2B 
78889f118f2c6eccd14a365c7224775ba1e078eb9c65feffc8919493d06e36f4abf007b5596b354eebd1c0ae94cdaa4e11acf0add494d38d82bf334adfc5ec36
 SHA512 
c7bd117dcbbe03117befe73e112fffd3c754ca921e3b37b3b4fd78b0e1689201c5e7cd39ad206a7dd157565664536d493701bc583d870b28d01d9abd18016e96
+DIST vscodium-1.74.0.22342-amd64.tar.gz 121392818 BLAKE2B 
d2fa5baa17ff3e1b77d7086cab0c38b3de7e35e0eac131408b8e2d34ae6578300622fac1d419024903c3e32367eb4fb872410e647b83c90cf76621898472d0e7
 SHA512 
8e254d411f91636b77086ee9f491e0179348fd26aaf149d3fa5af61770aabb7062bbb3574ae3dd27fd891e2877279719f0b37e6023151b7d4d8f6af9b5a5d774
+DIST vscodium-1.74.0.22342-arm.tar.gz 103442460 BLAKE2B 
9deddff7c84a03b466de29caf8ca43c5b8ad4277ca4cee72171eed3acb37d1b49f27e6c6fe658d04b61840008c77ef581e2bba76c677482f851f6e1981991a59
 SHA512 
1396d573f2fa02406f8b62a94e0fab19a5989dc4baffa77c6c60f81fed6e6a723a0a786ac5fff833c1ee1ce9d38be20e4f7078a05a0d844703c9477c3051d168
+DIST vscodium-1.74.0.22342-arm64.tar.gz 114462026 BLAKE2B 
56f965056b826868e3c89c54760a5dfe16842c93c09bd67b00a12a19645ee10722e34a5b7d32b029967f73cfbf8035f96a61d30823e9308993bd20442804c869
 SHA512 
c03c6b2a486b0ec1101f62b94322e027a9416cf4d93c286024ae31e83e81237a503e52f63ef0828d38eb4d97cd49a58288128f7472def01d2231d454751409c9

diff --git a/app-editors/vscodium/vscodium-1.74.0.22342.ebuild 
b/app-editors/vscodium/vscodium-1.74.0.22342.ebuild
new file mode 100644
index 000000000000..64ee4a6f829e
--- /dev/null
+++ b/app-editors/vscodium/vscodium-1.74.0.22342.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop pax-utils xdg optfeature
+
+DESCRIPTION="A community-driven, freely-licensed binary distribution of 
Microsoft's VSCode"
+HOMEPAGE="https://vscodium.com/";
+SRC_URI="
+       amd64? ( 
https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-x64-${PV}.tar.gz
 -> ${P}-amd64.tar.gz )
+       arm? ( 
https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-armhf-${PV}.tar.gz
 -> ${P}-arm.tar.gz )
+       arm64? ( 
https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-arm64-${PV}.tar.gz
 -> ${P}-arm64.tar.gz )
+"
+
+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-accessibility/at-spi2-atk dev-libs/atk )
+       )
+       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
+       insinto "/opt/${PN}"
+       doins -r *
+       fperms +x /opt/${PN}/{,bin/}codium
+       fperms +x /opt/${PN}/chrome_crashpad_handler
+       fperms 4711 /opt/${PN}/chrome-sandbox
+       fperms 755 
/opt/${PN}/resources/app/extensions/git/dist/{askpass,git-editor}{,-empty}.sh
+       fperms -R +x /opt/${PN}/resources/app/out/vs/base/node
+       fperms +x 
/opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg
+       dosym "../../opt/${PN}/bin/codium" "usr/bin/vscodium"
+       dosym "../../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"
+}

Reply via email to