From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 847261582ED for ; Sat, 15 Jun 2024 19:21:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0D13E2B75; Sat, 15 Jun 2024 19:21:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6883E2B6C for ; Sat, 15 Jun 2024 19:21:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EC436335DC3 for ; Sat, 15 Jun 2024 19:21:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 551D51D12 for ; Sat, 15 Jun 2024 19:21:17 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1718479265.11fd1e23ac95c5c275461e9541918e1d28652c8d.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/vscodium/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/vscodium/Manifest app-editors/vscodium/vscodium-1.90.1.24165.ebuild X-VCS-Directories: app-editors/vscodium/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 11fd1e23ac95c5c275461e9541918e1d28652c8d X-VCS-Branch: master Date: Sat, 15 Jun 2024 19:21:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 24790e54-ecd2-4ee9-be9f-034f46ce492c X-Archives-Hash: b540bd593db96682af624b861ccae408 commit: 11fd1e23ac95c5c275461e9541918e1d28652c8d Author: Arthur Zamarin gentoo org> AuthorDate: Sat Jun 15 19:12:52 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sat Jun 15 19:21:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11fd1e23 app-editors/vscodium: add 1.90.1.24165 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscodium/Manifest | 3 + app-editors/vscodium/vscodium-1.90.1.24165.ebuild | 129 ++++++++++++++++++++++ 2 files changed, 132 insertions(+) diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest index f7c7ff4af816..0c41a833682e 100644 --- a/app-editors/vscodium/Manifest +++ b/app-editors/vscodium/Manifest @@ -7,3 +7,6 @@ DIST vscodium-1.89.1.24130-arm64.tar.gz 129314458 BLAKE2B 38e9d8ab765d726217a5b9 DIST vscodium-1.90.0.24158-amd64.tar.gz 130082590 BLAKE2B 01b622c62804dab86bf969650b62a1f84bb5bf95239577c10f284f61f7deaaae612bfee3d442813b4bf1340f2cc823c8f01ccf995fe6482400534a316db5a150 SHA512 821190abc3eb7e5d42ca5525aa445d8f2f4fb17810ba8155350bd3d2817d0f5c42e8e56cb7a2a69a89ca1555522b8b2c16a6b9eb8a83a092c8c96c482ec6226d DIST vscodium-1.90.0.24158-arm.tar.gz 118703662 BLAKE2B 525ec7c1cf0b0057fb90d4cd44505efd2c57a9197fece8dc7ccd987254dd25cae52942ae676580a12390788a6c59e2c590e6d44a7c7b68a3c2f6d9a24deb9f0f SHA512 c355bcbef3a6b00c4ba130de3493040cdedb948f17250830dc4806e3a48bc3f93be8da7e3aeddab343d8222788f7d034e62abfb3e0dc749a4123acc430dc018a DIST vscodium-1.90.0.24158-arm64.tar.gz 130110717 BLAKE2B d6af799591556ccd659a9a4af6851dd13c97fc61bcd1827ac5d8b5a0ad8d35d819e53eb6d8e89e4c2a3d405ecd05bdb734ae912c962488108ff0b4bc02147c10 SHA512 939d6dfed227f9e5742c816d0a9c281933ade964c903523c6f013733c9487916d7a849d2d732a3b72d4dee2698a4ecd9b4dadb62091981420809060b09c166d2 +DIST vscodium-1.90.1.24165-amd64.tar.gz 130083135 BLAKE2B e276c4df9e1062ceeed0a781fb683d93c6bdc147eb02333a4ab4b10b93cf23155da3d94459f7c0a5f8c5913a08dc7aa495fe4ed3216f1fadbfa66536e90426b9 SHA512 ff5273b4180776a1b7bc60c6006fe64c8a499a6c3e71e16391feca54d12876904981bbdbbea047464eb618a02091a5e44023af00fd9baf8b28f68337a1740e9e +DIST vscodium-1.90.1.24165-arm.tar.gz 118696957 BLAKE2B 4a93ba7eb487d4996b97ba021fd0d2cb445e0ae4f5a8ce633f40ecb11ae3ff460aaf31a6d9bf5850441f84a76b88a04b5d7524e492d9d286a582d003d90d2e79 SHA512 ec0eb695cb5a405c621bfcb2dc0502a8f5a1503617036bcfadc4790d4d6b0de6c8210e9d6f850fe18ce4c6cd28aa5efc3d693556c642b9ba87ac3ada002bf6aa +DIST vscodium-1.90.1.24165-arm64.tar.gz 130109691 BLAKE2B 36ae88b99824619973f073a85b510a73d3ffcdc8a45749a0cdafc6a1c3c778600fb1395c3b94ab8fd1249d41edcfa2260c4f6393ddc57165e2414f511102bd88 SHA512 10e27f1c600a94e70493534c3ff0dc398b3bd4c0a74e950b3f92bc2f27a28a8f56129ffb41a4b6623bc7653ad195ca9866174269dcf7d57695982fa0fbe570b1 diff --git a/app-editors/vscodium/vscodium-1.90.1.24165.ebuild b/app-editors/vscodium/vscodium-1.90.1.24165.ebuild new file mode 100644 index 000000000000..e22d9d5645b8 --- /dev/null +++ b/app-editors/vscodium/vscodium-1.90.1.24165.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2024 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 +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}" + +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="egl kerberos wayland" +RESTRICT="strip bindist" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret[crypt] + app-misc/ca-certificates + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/libcanberra[gtk3] + media-libs/libglvnd + media-libs/mesa + net-misc/curl + net-print/cups + sys-apps/dbus + sys-libs/zlib + sys-process/lsof + x11-libs/cairo + 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/libXScrnSaver + x11-libs/pango + x11-misc/xdg-utils + kerberos? ( app-crypt/mit-krb5 ) +" + +QA_PREBUILT="*" + +src_install() { + # Cleanup license file - it exists only in amd64 tarball + rm -f "${S}/resources/app/LICENSE.txt" || die + + if ! use kerberos; then + rm -rf "${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" + + local EXEC_EXTRA_FLAGS=() + if use wayland; then + EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" ) + fi + if use egl; then + EXEC_EXTRA_FLAGS+=( "--use-gl=egl" ) + fi + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/vscodium-url-handler.desktop" \ + > "${T}/vscodium-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/vscodium.desktop" \ + > "${T}/vscodium.desktop" || die + + domenu "${T}/vscodium.desktop" + domenu "${T}/vscodium-url-handler.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 "desktop notifications" x11-libs/libnotify + optfeature "keyring support inside vscode" "virtual/secret-service" +}