commit:     75bb963bc0c13a3c7ef57a21079b1549b77b02a9
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 11 06:21:37 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 11 06:21:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75bb963b

app-editors/vscodium: add 1.81.1.23222

Closes: https://bugs.gentoo.org/911996
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-editors/vscodium/Manifest                     |   3 +
 app-editors/vscodium/vscodium-1.81.1.23222.ebuild | 109 ++++++++++++++++++++++
 2 files changed, 112 insertions(+)

diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
index afdb9811035a..279f74b093c6 100644
--- a/app-editors/vscodium/Manifest
+++ b/app-editors/vscodium/Manifest
@@ -4,3 +4,6 @@ DIST vscodium-1.80.2.23209-arm64.tar.gz 121174217 BLAKE2B 
f574330e0c1577962b3e1c
 DIST vscodium-1.81.0.23216-amd64.tar.gz 121108447 BLAKE2B 
870d78973d41e2bc3db58bc434a32271f9ed0217ddd21b865d2449350e7a210b2c1f3c79721e342db3c45ad1f3c4572ba074085711e29d537f48b70a8036782b
 SHA512 
11dfc76c158298437726041ac1cee9ace222fab1b0941040575987abc6a4bfcdd7d13bc815000aabfad07ecfafb9678be628240d4733abb35269fae8244d5b24
 DIST vscodium-1.81.0.23216-arm.tar.gz 109853494 BLAKE2B 
163c836af778521e141f30a908d859d7e364f9f3160596026ab91f8d13a904e30ea29954ddd69306a70d1cb87195f3e8a61fd5e15c524a0fd2cfbc09916a5b59
 SHA512 
6c887cb528390e7de174e933e81267902e0b17f75babe098fa6b8fbca1a06b5ff5f0c099d5ece49e6c82233ad77971963d3786cb7aa6a2113884529c8683ec2e
 DIST vscodium-1.81.0.23216-arm64.tar.gz 121397635 BLAKE2B 
6c87bbbe4c9ca08b48330a35cd0bb2f0d0385a48e857d2b5a595da56a18c96a8ec4f4ec8364b74b4eca87cf33fd847fd06e173cd5e0524d12c968b86f8f6198b
 SHA512 
b761a4fe4883baf8b8bd0038bfde959150e15a207239fffd17377213364c0f44c9b323bc3d5de5acad46a6aebd282bc2d9e72abc56bdebb0617cba86d2207977
+DIST vscodium-1.81.1.23222-amd64.tar.gz 121109927 BLAKE2B 
5242bf72a5708c1c3d35500bc698170eacd7cdbc7c20874d2bfbbf22a64ab048dbbb1fca5c46b6c8a64fb6bdf66b22f615533556075f062926036e60d37810c4
 SHA512 
3c985a1974504e57f6f97ae3e157720cec72fd0ad8d067709f2cad4cb4442e92f80d5d39a63ce8143edb0a2baa3d11bdc0128f60fa10d9dfc09ae8f9a5bf4a7b
+DIST vscodium-1.81.1.23222-arm.tar.gz 109854729 BLAKE2B 
6d0e9ddd23070bdaca1ed2d9a559a0752d01eaf31018dd91f46bda99e2ba8f7e5344df7b93d43948b51c6d7ca7d57522a82a6aace66d90cc0883071360b1592d
 SHA512 
a171a219e8104762dd62bd0ee50d915e8adf35e4ae4c922c64823f4e15cb92ab498e11fa58fdf57635f29df232723bea6153ae88ac7b57540b74cecaa663c18b
+DIST vscodium-1.81.1.23222-arm64.tar.gz 121398210 BLAKE2B 
de2504f5c10fe3c652fb3a393815bd8e32bf8f729dd71a0df558f2575855d5678d1a535882a9c1663b312e1a7f75421da456a4985259e13034a07ececccd19d9
 SHA512 
53a9198e94df0997083a585f652dc9999dedfde1cc5a24936620f23fb9811ff1c0f61fc20c9b1443b431d86b59fca65b906c89fcf67ab61419bf2e296429c2e3

diff --git a/app-editors/vscodium/vscodium-1.81.1.23222.ebuild 
b/app-editors/vscodium/vscodium-1.81.1.23222.ebuild
new file mode 100644
index 000000000000..a5fc09b2ca4c
--- /dev/null
+++ b/app-editors/vscodium/vscodium-1.81.1.23222.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"
+}

Reply via email to