commit:     6dd6e7060a5a43dd56d38c6c3d316df70f74e845
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 16 14:02:20 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 16 14:07:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dd6e706

app-editors/vscodium: add 1.74.1.22349

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

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

diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
index 93f2585714f1..7428c59aaad7 100644
--- a/app-editors/vscodium/Manifest
+++ b/app-editors/vscodium/Manifest
@@ -10,3 +10,6 @@ DIST vscodium-1.73.1.22314-arm64.tar.gz 112895655 BLAKE2B 
78889f118f2c6eccd14a36
 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
+DIST vscodium-1.74.1.22349-amd64.tar.gz 121393633 BLAKE2B 
e30b7edd966e56f79742bd045e75d02b76d886ea3cc450121e2ad625fc9a2296d78fb652e8a796fe04def3d5a7a56020e658d6f8401a9546366838af2ea26cb5
 SHA512 
0f05d3e17603cbdd072210f6d725fc3f9b5a03bcd01b0962f5ada48486e5d1caeb222b5c25ba9a5353f2455a282f61ed4af1660b23f7aec5f994c80187682145
+DIST vscodium-1.74.1.22349-arm.tar.gz 103433677 BLAKE2B 
820b1363f5814549c13f2c15edbd14ac55be7a78f0357ffc3655f3e1b641977da344419865b116e72da1d26be0754e48ef1b8145d9e9c28ffc83f2ce7fef5326
 SHA512 
69ccef8a618aa9f56ba24720217e7b33fcf42aa8c6ce879c938b1e0a5b7887c9472083ff92b77eb95fad6c29ed5722d9113c55fde120a92d35c7d3fb51bdd11d
+DIST vscodium-1.74.1.22349-arm64.tar.gz 114469077 BLAKE2B 
3751a2a25d32917fd71e782a168638ecd387ccd41ab62e79d3b5dfb49b5e169e1030df72ee2551c75fc8add434791497d13020b8bf96addb403f18ff0829b5ff
 SHA512 
16f6c09762773ab4ac695c97f9458464ecdcb30f06023122e94278758424fd127d0921779e6f04e496cd004994b1996b276812eb11423d08fb4060fee60df4ed

diff --git a/app-editors/vscodium/vscodium-1.74.1.22349.ebuild 
b/app-editors/vscodium/vscodium-1.74.1.22349.ebuild
new file mode 100644
index 000000000000..64ee4a6f829e
--- /dev/null
+++ b/app-editors/vscodium/vscodium-1.74.1.22349.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