commit:     763bf514475b63baa1bd229b10a3af667e6d7023
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 14 19:55:43 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 14 19:55:43 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=763bf514

app-editors/vscodium: add 1.72.2.22286

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

 app-editors/vscodium/Manifest                     |   3 +
 app-editors/vscodium/vscodium-1.72.2.22286.ebuild | 120 ++++++++++++++++++++++
 2 files changed, 123 insertions(+)

diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
index 1cf54f60ce35..920f5cee4bb8 100644
--- a/app-editors/vscodium/Manifest
+++ b/app-editors/vscodium/Manifest
@@ -4,3 +4,6 @@ DIST vscodium-1.72.0.22279-arm64.tar.gz 112756235 BLAKE2B 
447b94bb45d28b2123ee64
 DIST vscodium-1.72.1.22284-amd64.tar.gz 119688396 BLAKE2B 
8a0fe6f026179ca8e87a0fe8d985560c8cb73c09f78e12caa75094e9f698925793436d41bfd9c05e3d7ce485ae8ba71076e5e8cea5fe281c36ab52e5f0cccced
 SHA512 
7c04572e8164285990828cc9883dceb3b406be01dca389abb0793b84a0892cbaadc78851e8bdab7aa90e098328ea511837b4b65f4e8ba10c17ee04736ae68bd6
 DIST vscodium-1.72.1.22284-arm.tar.gz 101718778 BLAKE2B 
167e7f2afdfc33301a89f748e4e55cff9f25a1e536b18a66517b4768c8d0a8a32d300c41f8c26189caa92190f5a0ae0b3a56a37251e5c711ebd80ace5acb2308
 SHA512 
683eee4e74355fe5867b14c8b68360047f92b37869866718750a6de9851fee0e49052cced66218fa1a1a2426ddd610daa24b98069ae214fedd2c691e441a7299
 DIST vscodium-1.72.1.22284-arm64.tar.gz 112752546 BLAKE2B 
897b15f8ce4cb36c2ff32a1ac2f8bf2516bda64e57dc0e915abe8f2ef75cfab07cd3bfada7c1f4892c0ecf7028b1bcef66c60dc2ce02d7d8a56f03a5bdc01a47
 SHA512 
b1c57398b11c96103fb1918499c1d4405ae967e57238378285b8daf18b1efaa615d4b48e7e590d2e7664c5494f75bd994b97297e3b01ee634a62202023a71034
+DIST vscodium-1.72.2.22286-amd64.tar.gz 119681152 BLAKE2B 
29410f681f9339fc6541f8febc4e26e17701c41f46bdccb3c7378b4eb242453bff9571023a1d3a21d5c27e8e8b8f385aff953e5be155d37a73040556879d785d
 SHA512 
4fb41e5a7c7150e2efb43ab5ee12748f17c142fd8c5299c88fac25129a47335e277c9b13fd566b621767d4e61f2f022ae3f27050ceeda19959d04de150176557
+DIST vscodium-1.72.2.22286-arm.tar.gz 101714736 BLAKE2B 
91cb62f483ad92f921746fb7c5b95920dfc96bf4c994bbc22698ce58a13ae5b4051a73716cad3544da902f241c0ca02546908e753167776b2e578c03c8f8b930
 SHA512 
4eff5f451cf36674fdb5ca336220b9b0f10bdf20634b66ca6177c517ecae437911920da8cb7d25de44117baf31bf67516c0f491d91a3d3b900f2a174b2cf3e9a
+DIST vscodium-1.72.2.22286-arm64.tar.gz 112754473 BLAKE2B 
f91a89dfc1eaf03c876909596964b3f8e9b6ab77dff67c33b70c57c305daa704d33b695fe20f9c4b29b9cafd29dd12c4aa4f73fad87f215ecc923e59ef7b727a
 SHA512 
a1f1fad2bee2761f0ab3b6d7571469a271597e9308c2e8242d4dd82ad3cb553dab954229d726264a7965491f1d1b60ab42c8ec9b9451fa8b8d6d98603b158e52

diff --git a/app-editors/vscodium/vscodium-1.72.2.22286.ebuild 
b/app-editors/vscodium/vscodium-1.72.2.22286.ebuild
new file mode 100644
index 000000000000..5575b9697f9f
--- /dev/null
+++ b/app-editors/vscodium/vscodium-1.72.2.22286.ebuild
@@ -0,0 +1,120 @@
+# 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/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