From 9260e11e21ffb8e8cb9ba9efdbcfde205c4d0105 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sun, 24 Nov 2024 13:54:45 +0100 Subject: app-editors/vscodium: add loong, fix StartupWMClass --- app-editors/vscodium/Manifest | 5 +- app-editors/vscodium/files/vscodium.desktop | 2 +- .../vscodium/vscodium-1.95.3.24321-r1.ebuild | 120 +++++++++++++++++++++ app-editors/vscodium/vscodium-1.95.3.24321.ebuild | 119 -------------------- 4 files changed, 124 insertions(+), 122 deletions(-) create mode 100644 app-editors/vscodium/vscodium-1.95.3.24321-r1.ebuild delete mode 100644 app-editors/vscodium/vscodium-1.95.3.24321.ebuild diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest index 3baa1ef..fae1107 100644 --- a/app-editors/vscodium/Manifest +++ b/app-editors/vscodium/Manifest @@ -1,7 +1,8 @@ AUX vscodium-url-handler.desktop 334 BLAKE2B 3e089403de3df453f9c35737911846105ebee07ba17cd61443f739a035755a3b17b7a76f54231950bb4d752e0853a1e920dc489487ed3b12230dbe96037e833b SHA512 548b2df53ee5975e543a8ce5f8ac48bcc5878a86e7b6759d8e6d6d5cf7a126d91326f801a3c3548b7390dc9113b9bf37ecc38276ddd0b3354c4be8ab58b466fa -AUX vscodium.desktop 519 BLAKE2B 9bb65cb1b0618deba7db401f314f00611970eb34a82988f349d215759aba195c3d61b51f1e2f1e58ecef0fff952d68a25551a55d75c44a817d8de6dd65562732 SHA512 12db368ca425b707e6c0d9437e987aa0e5a773ac3f8fe51c5aec8eb82768dec0494988a0fef1a8be781e238d9fb9dd22097166ac8eea924154d7481998b0c18e +AUX vscodium.desktop 517 BLAKE2B dff4d6ebc64b2a937c2c3081239e88af85a61ca47efddafa5bc7f8e1da0da98248d0d81ee295e70c33548a29c6200678319ed9887bc22d2435c5abd63ea26f2c SHA512 8230df8c2fe2c1f5118687addb413beaa871ff989bcb76922812ee580162b6e0cc61445a905e0466ee2ff81668fcc651cb00a78f23aba6d882122dd6fd57c65d DIST vscodium-1.95.3.24321-amd64.tar.gz 135715917 BLAKE2B e6510efb8a20895c873db0d278f50b59b2dc5c4cd98086fcbc7d241634cc56ba9e3f22398f6f653d796122d847e5043407a8af644e71e779756963efcb6d55a6 SHA512 e6dfbeb8118cc401ca398749c553e3e66d9ea20663426f331a308bff3bac6aa253d7fa00579e7b49674875d47152185c76bd7f505179a1074910454827caa338 DIST vscodium-1.95.3.24321-arm.tar.gz 121776506 BLAKE2B e836b8a8ade0df009a6db3c77adef681bfff28758a1acdc6b5654af9b6791bea50dc98a8dd5b1fe7fe603cb17d169d7b480e301b27f9d217183fbb3eff9f7072 SHA512 cabfde835c45308ab0bb7d427c546fb17c91c82236412aba88bccc1ffa5e5e05e92eead8679a58e4b5b8a3f457788d172cfcf3c4f92df9796c7ad7e03b25d03d DIST vscodium-1.95.3.24321-arm64.tar.gz 133684443 BLAKE2B 32c3626ce0bb101b42b0c77a887a213d49feea7271cef075c0b3338686278f5762b4e8a4a3003e57822f021d90d89dadb32b2f755b76e2e95ce2463791a5d8da SHA512 a6fccc9421fcfc9a0d590d60a8f34297d8eabc9864e898cd1d3b3d6630928d053475f33df34542bab7e35279512ade8a31602b5f8db5ef8bea4dc8d6794e0a5e -EBUILD vscodium-1.95.3.24321.ebuild 2794 BLAKE2B db1ea0aebe3c72dfae39918ae60eab2e72f1d2d21cb88a32578eb89ded4a9f89c8b1e672d41d310dcc0af82ae39490a634b4279ccd72343ecf1c8f120dc7031e SHA512 f6553ffc8cb3c58ea18fa0c9e232b9bdba5b07d085be54be3be3a47ea842ec6948dc0ba3a3c0a2cbd50ac799e2f007c58dc0ee1cb8a55dc8bee57cd81bf64832 +DIST vscodium-1.95.3.24321-loong.tar.gz 140022221 BLAKE2B fccd8d6c13414346e1f0137623e6844c19241e32dbdaa81ddc0b233896c2f2563350b93c47a9472e93ab29bc8a626615c9a61235cf2692350f91484c4d7780d8 SHA512 a9fca909954eeacd7ad4ce5013532d1e79abcd5dbd6cfc9fab02230b9e0f2743f17cfe8029f0c210c2fd5fb2d01b9a5d3a593d8353a83c833d0f4d7e38ace5d8 +EBUILD vscodium-1.95.3.24321-r1.ebuild 2832 BLAKE2B 2f25240bfac7a1b4d57e6eec116127395c3d68098c57f753bd7e4277d50903154e8947ca4771526c96f230c1665d205bde9ab732a93148002f732485c0b45369 SHA512 357bbe920c1d51c992de638f9642c7a10bb6fce1a278c97dc40ed8dbfa6448c5f8e7b9bd67b5c899303e1522bab87edd75424e01883e159ccc81bfd5326e48b9 MISC metadata.xml 1009 BLAKE2B b6d55ed2217637eac68413eb685a6219a38f80e0b4698877a0bc4d88e65f42c4fcbbd2ea50e810aadbda1de65df85fd724ee1b2ad7ef29dbc3f871efcd7069bf SHA512 c3edf84c187732debc55b847c7e707df13f8dfeffca06312ada10c531ec37d83c137e28db2f288b1b8a61ac5851754b52ba66866048a3765c689bcdc4f85ff7a diff --git a/app-editors/vscodium/files/vscodium.desktop b/app-editors/vscodium/files/vscodium.desktop index e12a430..6eb9e55 100644 --- a/app-editors/vscodium/files/vscodium.desktop +++ b/app-editors/vscodium/files/vscodium.desktop @@ -6,7 +6,7 @@ Exec=/usr/bin/vscodium @exec_extra_flags@ --unity-launch %F Icon=vscodium Type=Application StartupNotify=false -StartupWMClass=VSCodium +StartupWMClass=codium Categories=Utility;TextEditor;Development;IDE; MimeType=text/plain;inode/directory;application/x-code-workspace; Actions=new-empty-window; diff --git a/app-editors/vscodium/vscodium-1.95.3.24321-r1.ebuild b/app-editors/vscodium/vscodium-1.95.3.24321-r1.ebuild new file mode 100644 index 0000000..e609f58 --- /dev/null +++ b/app-editors/vscodium/vscodium-1.95.3.24321-r1.ebuild @@ -0,0 +1,120 @@ +# 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) + $(arch_src_uri loong loong64) +" +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 ~loong" +IUSE="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/libglvnd + media-libs/mesa + net-misc/curl + sys-libs/zlib + 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/pango + x11-misc/xdg-utils +" + +QA_PREBUILT="*" + +src_install() { + # Cleanup license file - it exists only in amd64 tarball + rm -f "${S}/resources/app/LICENSE.txt" || die + rm -r "${S}/resources/app/node_modules/kerberos" || die + + # Fix wrong desktopName, https://github.com/VSCodium/vscodium/issues/1901 (not flatpak-specific) + sed -i "s|codium-url-handler\.desktop|vscodium.desktop|g" "${S}/resources/app/package.json" || die + + # 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 + + 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/index.md" + optfeature "keyring support inside vscode" "virtual/secret-service" +} diff --git a/app-editors/vscodium/vscodium-1.95.3.24321.ebuild b/app-editors/vscodium/vscodium-1.95.3.24321.ebuild deleted file mode 100644 index 9535316..0000000 --- a/app-editors/vscodium/vscodium-1.95.3.24321.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# 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="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/libglvnd - media-libs/mesa - net-misc/curl - sys-libs/zlib - 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/pango - x11-misc/xdg-utils -" - -QA_PREBUILT="*" - -src_install() { - # Cleanup license file - it exists only in amd64 tarball - rm -f "${S}/resources/app/LICENSE.txt" || die - rm -r "${S}/resources/app/node_modules/kerberos" || die - - # Fix wrong desktopName, https://github.com/VSCodium/vscodium/issues/1901 (not flatpak-specific) - sed -i "s|codium-url-handler\.desktop|vscodium.desktop|g" "${S}/resources/app/package.json" || die - - # 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 - - 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/index.md" - optfeature "keyring support inside vscode" "virtual/secret-service" -} -- cgit v1.2.3-2-gb3c3