From f2bdc27fe0f79f8f9a3945eb2b1163ce75c56439 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 16 Feb 2025 00:13:18 +0000 Subject: gentoo auto-resync : 16:02:2025 - 00:13:18 --- app-editors/Manifest.gz | Bin 14110 -> 14114 bytes app-editors/ng/Manifest | 2 +- app-editors/ng/ng-1.5_beta1-r3.ebuild | 7 +- app-editors/tea/Manifest | 2 +- app-editors/tea/tea-62.4.0-r1.ebuild | 4 +- app-editors/vscodium/Manifest | 10 +- app-editors/vscodium/vscodium-1.97.0.25037.ebuild | 134 ------------- app-editors/vscodium/vscodium-1.97.2.25045.ebuild | 134 +++++++++++++ app-editors/zed/Manifest | 11 +- app-editors/zed/zed-0.172.10.ebuild | 210 --------------------- app-editors/zed/zed-0.173.8.ebuild | 217 ++++++++++++++++++++++ 11 files changed, 370 insertions(+), 361 deletions(-) delete mode 100644 app-editors/vscodium/vscodium-1.97.0.25037.ebuild create mode 100644 app-editors/vscodium/vscodium-1.97.2.25045.ebuild delete mode 100644 app-editors/zed/zed-0.172.10.ebuild create mode 100644 app-editors/zed/zed-0.173.8.ebuild (limited to 'app-editors') diff --git a/app-editors/Manifest.gz b/app-editors/Manifest.gz index b68fd97728df..bbd52c69c0f0 100644 Binary files a/app-editors/Manifest.gz and b/app-editors/Manifest.gz differ diff --git a/app-editors/ng/Manifest b/app-editors/ng/Manifest index 49a0fec1cf7e..036d40e24431 100644 --- a/app-editors/ng/Manifest +++ b/app-editors/ng/Manifest @@ -1,5 +1,5 @@ AUX ng-1.5beta1-configure.patch 658 BLAKE2B c76c062312f36e59c4f31f6d24ab992b7722ea3f8d323954b4a3981acc708e751b869e5ce3aafd47869e3893effc3d5705cde7648bb948d7acb7d79d906953e0 SHA512 afea99d16b06308feed87512ccfe084b3f3c222afdb9a3f430ec02882d99cf81d7506dd329601a58ab62d8def05e48f3ff502d0d76ecada8cca2c42931bdca1b AUX ng-1.5beta1-ncurses.patch 556 BLAKE2B 87321f8f920609a64cf356a45517b3f3328a204dd65c3fb02faf891c748d4b0dd9fb61814b13d6e99f75255b6b3f544e12f757ac393fdd31ff74a889e0fa619e SHA512 0c53ac22f5452af1ce59dfd6e2bd35868e824a922bbd4742ed20d9e2e24752c2fab52504b1365736dde04ba212c458ace9335a8399509d1043b686d997bfbfbf DIST ng-1.5beta1.tar.gz 662557 BLAKE2B 02f1f5277aaba279226d732351eb604205e8bfc030678551a5f2439bde61651bf5aa4e02e06f3283fdab710cc5a1ed9a3eae1e42fd4fa8a8145699b425c4e61e SHA512 eaf3ee067cd98aebc757def9880c5a324975e9f5d0f1db030b11853e86631bca892bf344358ca21b778f5e10ae0d2ed97553221a368326f7a4d9d41f6867abcd -EBUILD ng-1.5_beta1-r3.ebuild 1278 BLAKE2B 6a93503197efa3261424058d95bf6d2530bf16a5ba21655bcd3eb5ae025ca1b823a8238aecddcc766fba6cbb85c680aacb382e801a2644620124e9c1b2c1f6ab SHA512 9d65bb61ff20048f2da1c5bc1c26143b8980738054763cc167c461ac77fd423716f30740e3d342efd75391ee965f122a8d99a3027582e255acccbdf98bd32684 +EBUILD ng-1.5_beta1-r3.ebuild 1207 BLAKE2B d3ab83b0ccb197c60ac7509c4894ae49a68731a27c06bc9afd3970b300a90bbd5e72e53816dce949bf57292bcd3f09e113e9a3e4f6d9a6ef7b820f29601fc739 SHA512 b43cccc9cebe563829d6ea03cc9d5bb0b5f65779720f3719d09f087b4405595096349a525413c4c96b0da8ced3a60b352bd443475e4e488fe865a0c0fcd960b5 MISC metadata.xml 235 BLAKE2B a3e5a3109b59e3f97ef14f8d55ba13b16dc5371a1b7d6f238230aa4494db32dd4a42e3ee012ec8b18fae394feb2b1b56882bc70504aa7c6b969c1b20140f0ece SHA512 7c4e5f5dea465e45c662f5f53513626088aff514e1326593426af227d77e63d8a00d8af05aa208881a399f83dd41e73cd2ef81c8b7f275a2fa891f295231d67c diff --git a/app-editors/ng/ng-1.5_beta1-r3.ebuild b/app-editors/ng/ng-1.5_beta1-r3.ebuild index 515e4a09db0d..1133173c0fad 100644 --- a/app-editors/ng/ng-1.5_beta1-r3.ebuild +++ b/app-editors/ng/ng-1.5_beta1-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" @@ -34,10 +34,7 @@ src_prepare() { cd - >/dev/null || die cp sys/unix/configure . || die # written in K&R C - append-flags \ - -Wno-implicit-function-declaration \ - -Wno-implicit-int \ - -Wno-return-type + append-flags -std=gnu89 } src_configure() { diff --git a/app-editors/tea/Manifest b/app-editors/tea/Manifest index 256fa9c26aeb..433fc52a8fb4 100644 --- a/app-editors/tea/Manifest +++ b/app-editors/tea/Manifest @@ -1,4 +1,4 @@ AUX tea-62.1.1-fix-desktop.patch 1417 BLAKE2B 0993e25f149cf2d4c414cc36633157a903061784499e7e59b913ebcb6e9eb79a62dad96263cbe02f79a39037b6e18aa643ec1cacc7ba7f5996620497fe2a32ad SHA512 3fcb37c833dd18ed7ba79085e78b7fae7272315cfc577f003877c4d889f42bc3120693be5bcc731a00b5a8b15d30beab41787a461201d362450571211901d62e DIST tea-qt-62.4.0.tar.gz 676565 BLAKE2B 2dbeeb37142bcc6d5a8434e21380e316f49f614e3c602799088848994eac0b57bff54ca07f8ac411a76a480a0079fccf6d648bebc1c10a9c8790228f7c2efd87 SHA512 57af069d0afd25319cede65c9dcf08860267d22f4aebbe9b068e28739fd74d8b1da960f09ce41fc1cb88c68e29c96ec2e2a6e167777ac32cd7bd9d543b05dd42 -EBUILD tea-62.4.0-r1.ebuild 1693 BLAKE2B 615a1ac6d0e489e188337efc0a4203a69cfde658b31a1659625087e8e4a9b87103815e2ba346c1ee4ee6694966cd862aa62e3cfd6afd411f5f1167329a29768e SHA512 0787261b6a6a694945b327603fb618c18b721bbdc3cdd3142f4bb7255dcaedf91805bd53c3c8404f7a756ffa2d6fac38b4b3aadebb98319d72de78cc648fa434 +EBUILD tea-62.4.0-r1.ebuild 1686 BLAKE2B 740d8526933fbcd50d7104df9f3fb3b64e2ea8874bd66e2096c69c890393b7f2df7c99a6317a30b0e452743eb751cc2de63ee82590e56f51befeed7ce8d5302e SHA512 60341d6481040c30eba4a257c620a7015f11d60d69e88694d60f99cb2f185bb4113731b5eee100128eac1c8ecf3e446194aebecec15e64ff5ee3cb10a15a57ec MISC metadata.xml 590 BLAKE2B d2990b96f8e279ca2bc2df259c4eafbe6b9a4e6ef02d4f8a5dfdac43767f0febf2b560708398abb590df0e0bc52b41c7971344482bce22cdc341c4867901d1e7 SHA512 01b943f1c1c7354b83f86dc29a0b5f6951c182b92b51793bd714a6181ade8ff1a55c5ccdddb22d669c7d025114496dd1a19acf706bb17d3ef34fe6b3dcbaee62 diff --git a/app-editors/tea/tea-62.4.0-r1.ebuild b/app-editors/tea/tea-62.4.0-r1.ebuild index 673249d95bf6..ac4d11d3f4cb 100644 --- a/app-editors/tea/tea-62.4.0-r1.ebuild +++ b/app-editors/tea/tea-62.4.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake xdg +inherit cmake eapi9-ver xdg MY_P="tea-qt-${PV}" @@ -66,7 +66,7 @@ src_configure() { pkg_postinst() { xdg_pkg_postinst - if [[ "${REPLACING_VERSIONS}" == "47.0.0" ]]; then + if ver_replacing -eq 47.0.0; then elog "Executable 'tea' has been renamed to 'tea-qt'" fi } diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest index 22e70b1ec0b4..0defc1cff9d5 100644 --- a/app-editors/vscodium/Manifest +++ b/app-editors/vscodium/Manifest @@ -1,14 +1,14 @@ AUX codium-open-in-new-window.desktop 372 BLAKE2B a9c759c54049c0ac616565dc3b6abd5f0c517c4e04e350971a3292807466f2b218b7acaa23498045bf49761dc021c609780fc6402bc635fb02350d9d69d2b297 SHA512 7b4e8349d47a5a3e821865f021a10d9bb8bf8a1d8caff7484d5688b7b09ce8b03368b607603a600a07f836ec47b1d6ba7b829373b1b3be92a8424194f09a8e80 AUX codium-url-handler.desktop 337 BLAKE2B 1196918f18f1c000bca94e8f8b6184bc313a0344cd654a823bb0a39e54d5670084f846d61b8dc235084c26d5da491222977ae6cdb2818833b375db545a059be9 SHA512 b1bc714b53304fd12788fea212fe04728841e3a823ec5c8c577121790720ef7f063b943b0089269bd09f8bd223d8e8eaf7ff0d742b4c208f7536fb809d4f0cf6 AUX codium.desktop 782 BLAKE2B 89dedfff51a710d07087c6f0ca29ce1828b6a383b4ff3f974cbacf7cba77b16fd75f088c449a3bf13442e7a66be33816e2d6c4c903d673de9450a40ad45715b0 SHA512 5d0c618deb99c03db0e6ae8385854b460cf269e077106bb534dc29c139a01f52171d1f142906222b6f427e8cf5e50da686f805cf34cf38870f425c1361163dc4 -DIST vscodium-1.97.0.25037-amd64.tar.gz 138068498 BLAKE2B 142d339a9292c075964e18976d92402f390d56a2bd8dcf1feeaf14957faafaca13c6f648c2e73cdc7b32bfeb3c45213c78dcc14490dfca44091f275770b7b4c5 SHA512 09832babf28639abe6a7765baf308f60497d3bc82c41ca493971d592a3cd82f69b54235097ad80530290decd1d6c999018a0b928d188b5d24a8adf5926c62b83 -DIST vscodium-1.97.0.25037-arm.tar.gz 124135009 BLAKE2B 67fbf730f5d33f475f6d77e2b0cd8a8816660ff3b280e327743df0260b787e3d6c57e802cfb78c6b024ed271804051c6340b9653466d34ffa2889ecdcabc691d SHA512 40d53483e796a30f0f3736a08badd6880e6b3b531be5b65a667fb6db778df2e2d53a603bd15d3d7680ef2059ecdcf7efc290f47e7cbab52a24ebc21044a100e1 -DIST vscodium-1.97.0.25037-arm64.tar.gz 136046506 BLAKE2B e924139fd325a50a691add5c6f7966bc886b7b843d71d2dcc60d02ec46102d4945920c518a9bf1e1cc726aa88dadcbcaed1f47b7ffb5ac7f0e655d91c1e8c491 SHA512 85cd536eccc9b95de184b0ccf582a206016f44a75f068c42b344d8f96e5ad47662fafda991f9e3cb5f55b9ddea1e31fe19416609ac83f029b9b02e8efa5abc1a -DIST vscodium-1.97.0.25037-loong.tar.gz 144013678 BLAKE2B 1258eb5e0c5e0c83bfbcf288188249062eabb2f9488866aa016381dab5779f0dea8c4727ea6c04c2e46bcf717c328a881615a711d3e7f7088948b38b1dc35024 SHA512 03d7361dc20fbb2b52da4a5be0d3b5bdbc8786837b67cb7fcae50148c73b538b58504a3be634020faf99c690113f72740bbdf4f5f5d3b53f262a3e482aca3ab9 DIST vscodium-1.97.1.25044-amd64.tar.gz 138064556 BLAKE2B e62f6b8bf0bc339c8e5792b8c8faaa04f783982fc756012711ee0a650a64833af365a696eeec5163836767cd7d8a869482df21dc6354331a1ad11dbf04e17cf9 SHA512 d0a16570bc397f444b120d653463b882870e4f490a7384b3767fee12e02faf89cb6c5117fcffa13723fbac353c46debf5674461f33acbc5703b378eced1275b5 DIST vscodium-1.97.1.25044-arm.tar.gz 124149538 BLAKE2B fff59db6da94d71a51ed018efaf5dea741c75f2aeed09e933f14f25bbd83c6e640845923014dbabd07dccf90336c5073bef293954a43c28ff98179258add74fc SHA512 7281d6bd0c9ca1073640c02c4a1ca914615f3bd6a3118d55c713effa6ee85b1993e83aa9993053a9930e8ff89f1a75063742b84ec3d3c28255885d3751591809 DIST vscodium-1.97.1.25044-arm64.tar.gz 136050855 BLAKE2B 21aad16090401c6d4b1c4843753bf8fc5855dd9af3e155bec978136fc4dc471be5a961adf90314b5023a13de1b185157ee5b82fce514ed6cbc4e800ffd93d372 SHA512 e6460707ec0a5489bf0bdb96b8bef23940c6038072e2634bee49b03ca9a1496688b0fcdac4642597da19f30031f184a3f6b31ee3e498f90f37985abd614d097b DIST vscodium-1.97.1.25044-loong.tar.gz 144023197 BLAKE2B 049f80a93b7cfc21a1d27b8e837fbf1ae0add5c936c0478d4d3ea582cc09e2612ef8804749e8dfd9fc9bf2b17ef00f1446b7dd128bd211dd670e068dbecf6fc5 SHA512 d06aad6770c4b0a39e51e0be3fd5bd3095d84302a28a08e4634b5f908375bda428924b7f7f7c40b22e23896a0226673d6bf61b5313c02757ec11663c799b6738 -EBUILD vscodium-1.97.0.25037.ebuild 3112 BLAKE2B f29aaf3d218fc4da3950985570aee905a9ae6e3d0d0fd0b1f7af270497893407813a2b2295f40fddb92766865747e072cf59ae697d6a2c41a80ddf0762ecfcf3 SHA512 29de6bc03b2ad244f6350af7173e4e19049124b99df0355e0d060b8a11160f6a9d92abf901e3910811c69847e156c777b8d40b4704475f95ef6c0aaa04ea22bc +DIST vscodium-1.97.2.25045-amd64.tar.gz 138066826 BLAKE2B 3471e6065704b577aab674921bf409e02df40e8bb20506cf49f1fb389a3ef5b54b6af0377e0d5264d3bc27cecbe327a67fa2f1e68334552e5c4781f4d6c5b6a4 SHA512 6f8f3e720b9ca1edff31d9c605f6ac23b27ef4e0b4f05ad5b4bff88a2b778e62d73a33cc87752df8f2dd7d1dd44f68c7f6a47a4beb0d9aba2640c593005da15f +DIST vscodium-1.97.2.25045-arm.tar.gz 124146372 BLAKE2B 85fd308fc02945c36e8c8667b025dd972a29affce3cab11dd39e0c06aec7556a55919b6fa5e0290c51f5b96ab991de9bf4af180844f2bb7afcb91caeb0e2f5de SHA512 11a8c7fe7203230750878baca4142b336c1faac1546db6741f05d14bc5a2d06eb12bba5685189289702298bae82f84230ae4a9c293b90e60a0b2c6fac9cf6731 +DIST vscodium-1.97.2.25045-arm64.tar.gz 136052627 BLAKE2B 8e83153caa985c141c8f26a16b23f0fba03e180d40f490b1cb5335bb268605f76cfca9893dcb259b6450cc940634b09b534d691a6fce6d9a34c61ade5e833983 SHA512 8d3acd7c1e7823d85c23c00370f71bc3cb7773d04a7bddc48409df0430a68836f25413c0d4751192901a1c384329c7dc3ab07ed778a97e56b77c78f2d275a5aa +DIST vscodium-1.97.2.25045-loong.tar.gz 144033211 BLAKE2B ed13b445139b8dcf9f320dc1d6e1000e0374355151d791f75640a83d56a06ad78613f2abe02614c775085380885818ab6724d83d5701d8f5d2a94b297c216d8d SHA512 314deb75bc7af227532be8e2e8017ea543042ba1b9ca1c25aaffa7807218d9e82f33d9181d770b748cae39964b91ddd1c465926d015e2ec83ea3641e3673d5ba EBUILD vscodium-1.97.1.25044.ebuild 3112 BLAKE2B f29aaf3d218fc4da3950985570aee905a9ae6e3d0d0fd0b1f7af270497893407813a2b2295f40fddb92766865747e072cf59ae697d6a2c41a80ddf0762ecfcf3 SHA512 29de6bc03b2ad244f6350af7173e4e19049124b99df0355e0d060b8a11160f6a9d92abf901e3910811c69847e156c777b8d40b4704475f95ef6c0aaa04ea22bc +EBUILD vscodium-1.97.2.25045.ebuild 3112 BLAKE2B f29aaf3d218fc4da3950985570aee905a9ae6e3d0d0fd0b1f7af270497893407813a2b2295f40fddb92766865747e072cf59ae697d6a2c41a80ddf0762ecfcf3 SHA512 29de6bc03b2ad244f6350af7173e4e19049124b99df0355e0d060b8a11160f6a9d92abf901e3910811c69847e156c777b8d40b4704475f95ef6c0aaa04ea22bc MISC metadata.xml 1563 BLAKE2B 63d5132bcea2c419facf49b2d644bf1f58f44da333adb8270aedaaa289563ff5d116a0700df1306bdf1e7d2628f72959b8f18540486d3ce56bfe67adb925d8fe SHA512 ea75764cc70ac6a9452600a106de3784baaa9f84fa5b1021cea2be073636fb0fc8c6904a7db2a560ccb2bba491d76125e5996e0aac28ea11cd039ae16972e595 diff --git a/app-editors/vscodium/vscodium-1.97.0.25037.ebuild b/app-editors/vscodium/vscodium-1.97.0.25037.ebuild deleted file mode 100644 index 6d99fa43b043..000000000000 --- a/app-editors/vscodium/vscodium-1.97.0.25037.ebuild +++ /dev/null @@ -1,134 +0,0 @@ -# Copyright 1999-2025 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="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/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}/codium-url-handler.desktop" \ - > "${T}/codium-url-handler.desktop" || die - - sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ - "${FILESDIR}/codium.desktop" \ - > "${T}/codium.desktop" || die - - sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ - "${FILESDIR}/codium-open-in-new-window.desktop" \ - > "${T}/codium-open-in-new-window.desktop" || die - - domenu "${T}/codium.desktop" - domenu "${T}/codium-url-handler.desktop" - domenu "${T}/codium-open-in-new-window.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 "desktop notifications" x11-libs/libnotify - optfeature "keyring support inside vscode" "virtual/secret-service" -} diff --git a/app-editors/vscodium/vscodium-1.97.2.25045.ebuild b/app-editors/vscodium/vscodium-1.97.2.25045.ebuild new file mode 100644 index 000000000000..6d99fa43b043 --- /dev/null +++ b/app-editors/vscodium/vscodium-1.97.2.25045.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2025 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="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/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}/codium-url-handler.desktop" \ + > "${T}/codium-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/codium.desktop" \ + > "${T}/codium.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/codium-open-in-new-window.desktop" \ + > "${T}/codium-open-in-new-window.desktop" || die + + domenu "${T}/codium.desktop" + domenu "${T}/codium-url-handler.desktop" + domenu "${T}/codium-open-in-new-window.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 "desktop notifications" x11-libs/libnotify + optfeature "keyring support inside vscode" "virtual/secret-service" +} diff --git a/app-editors/zed/Manifest b/app-editors/zed/Manifest index 530b18596d4e..a7aa342f5d48 100644 --- a/app-editors/zed/Manifest +++ b/app-editors/zed/Manifest @@ -2,19 +2,24 @@ DIST alacritty-5e78d20c709cb1ab8d44ca7a8702cc26d779227c.gh.tar.gz 1647703 BLAKE2 DIST alacritty-91d034ff8b53867143c005acfaa14609147c9a2c.gh.tar.gz 1642074 BLAKE2B b6e7458a29060ecf457ca44fc0e3f1f608237a304f5dc76019dc1d0baba6b964832d0a24de00b6a3d17dae0bcf4583b729c0455c6e5020bac4a473e0b2ac31e9 SHA512 930851cf579a34d3072a6e5e89f4a44f551b9df9975d1b111c00ff39815d549f9c421d2728528b0c841c28677709c2865476a69890ba299e4a0f4822f3c2029d DIST async-pipe-rs-82d00a04211cf4e1236029aa03e6b6ce2a74c553.gh.tar.gz 5575 BLAKE2B bbad7d35213afb7dc3eda1f72555cb5a61bc61acfa1b91771a528773c468629831f62bd26f9bdb345bcf94950892a294ce71cecc8552660cda5c28de6906764a SHA512 86b13e6acbc1d04fd386b10be1e8f1f917f0ad12a702e9709526f798ef45ee389f4e14bb4ff16d0f1b14b278c76b75b5bf925581af402b350dc933a96b019460 DIST async-stripe-3672dd4efb7181aa597bf580bf5a2f5d23db6735.gh.tar.gz 1057821 BLAKE2B 93218011a1f75acedfb9d4cd65fb3016b4a604926de173b4ce3839a562ec1483c3a7aa2b4c5f77fe50ac648eb9dfb076d19a7c736426136fd5e0f0d3f80d9541 SHA512 6d7765423294ab80aea5c7889bdfe20fab5384ed7ea9d54fde8208879a07b62425e71e77ed0fb182c59ef473f693181a7ed99925753bf6e672b4a729c6454700 +DIST async-tls-1e759a4b5e370f87dc15e40756ac4f8815b61d9d.gh.tar.gz 24819 BLAKE2B ff2e7deabf494337036ee4b7545b3ee446406f6a7ec925d5ce20bb193daccbb9563b525e094d0da4dbfdf4fd78d5247b98501d92548597d689d7b35d020038f5 SHA512 59feb17f57ff8c28d512e8e25e5ad9ff1fb0960c9b96f2aa6dd4e19448eea382666c391e88a3435bb6bfca6f5592041d7e17ce445767fcef93f03737ba003a6f DIST blade-091a8401033847bb9b6ace3fcf70448d069621c5.gh.tar.gz 3317880 BLAKE2B fc460d02d6f766048eb2552ff39a61536ba787461190b1fae1ff5ae73b3d1a237ef93486d6f3f458c904c9c33e6a6184c4017d2a7233dd03554de23b3063543b SHA512 42419c9dfac7c7de567e358c58209094bf2c81d0304f5f42715d0fb7134b9bd75654e70a5320ee4ffbab5954b50a118ba0d0e4b34b8feb3d232691a4ee2f06f2 +DIST blade-b16f5c7bd873c7126f48c82c39e7ae64602ae74f.gh.tar.gz 3318172 BLAKE2B 408a2831f949f8655a47fc60d18b8977fd57677b75d527acbb1f357ed111fcab777fd7106dc0d6dfd748845ae3c89b844399669809e9aba536e54463e2ff4154 SHA512 51bf8382947c29a4b03e26c4d4e475c0841bfb6430be9aa0e4e8a9a62ff7615eefd60ff3daf729a70862fd33d7d27072edb08df986e7d970fca00c31d5c01b3f DIST blade-e142a3a5e678eb6a13e642ad8401b1f3aa38e969.gh.tar.gz 3304563 BLAKE2B 11a7b9c6825ded7ddfcd81cc6f132f7b93c0a8d5dd78fc730525bd16d2f16d590f3d8f33714302d13278febe7f012f6c98d86a7c744f2e79f2e0a36e088ffb6b SHA512 1d5a0533a9348b216147b3a27f39c64ac3e318f820e1025edc5bf778cfb41f3e62f8bed8bfb8bedbcb672b24660601f701965ee0b6f40c05ac61405bdd95df1f DIST cosmic-text-542b20ca4376a3b5de5fa629db1a4ace44e18e0c.gh.tar.gz 180043 BLAKE2B 44f4429467d7e54c5348d564ae565c8e8759ccc482045ecc9fe4e3ca6c03c45f6537902e7d8867b557e0b0d1017f03b4e24f63e48a51b774e576da42439c7bb1 SHA512 7a31d1816debbbc892fd16b7b84994569fb046dfcf7f68a1be47885d4a01194f4a849d6d2e91dd534be7c39a0339108711b7017eebc15cd64b63014b5a5b57f0 DIST cpal-fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50.gh.tar.gz 120253 BLAKE2B e40b9097384b66454b3250a5fdea79c1db3453d08c96bf83a7f8c2aedd361bbd23e3a74ac9b542e284f642605b03180b5ecf6c104772b9fedf79c26709f42d4d SHA512 8bcc10b1e6d278034c2f999bbb858b2d681862c9d4170febde4ab0026a32dae8894fbe7a029c5c6f444ab7bb02b1afea33947919f571c64400642efa334a5452 DIST font-kit-40391b7c0041d8a8572af2afa3de32ae088f0120.gh.tar.gz 1289463 BLAKE2B f35f28341ad40c77434f2765fa6ab546a3b1eeb950dd3f92ac90676f0005167aa84772d62852c45e2c24511f5e79cc8eff7844e5382bb21212c8f08cedd890fd SHA512 c6848000f0ba629b9b001618f06511882832f0334095606c7d6d4929f56a9d78fbe2db04411732619aafbc128cdaf44e7a6d32d351d0577b439cf2e0fa343682 DIST git2-rs-a3b90cb3756c1bb63e2317bf9cfa57838178de5c.gh.tar.gz 257303 BLAKE2B 0104bde155d4a8bbb99bd0632cee0d6df29c8091296fd85bec146b2983005f02552d74022ff1f0ec30c57f175eeffeffe9ec5596f1561ac83264b9126b9e7d66 SHA512 3f8bb1c8dd65de41b9ecc061a4eef67d70194f1c40bb3c74832ce4d3a4e20b37c3a7279606a2602394fff49524596ea9fda3694dce602b9e951ca8bba3c44162 DIST livekit-rust-sdks-060964da10574cd9bf06463a53bf6e0769c5c45e.gh.tar.gz 6266797 BLAKE2B 57669579275548c764ac54c251e67c51b327b6d07a1d6381e84ee8b47323b58f541f51ac187f1cbbe70e43763dc3c93f787339fd88eee2215caf7ad092a04bac SHA512 217b9646c5266b4c4e6bc22490c5b9408496641da932e924fc2835a91224412edd374cb8f691d41d1cf82cead4dbdc067f34497e53bf66c7bffb535c5c6a7734 +DIST livekit-rust-sdks-811ceae29fabee455f110c56cd66b3f49a7e5003.gh.tar.gz 6266800 BLAKE2B 2fe47ce962213ba34b7709e35154d67a1648f1d0f2d84b50fa8f33ad58cebfd696ed7bee63a971dff0a280a613e961dcd65a7ee6c092c3e8c303765e025d1599 SHA512 263be325b1315bb323b2cdf66c8f481e7cdaaa62fa5efc3171de0934b203a2693cdf70dc7d9b75ac6d51ac0ce80878b199bcab27bb242a2dafb1c48e32de47be +DIST lsp-types-1fff0dd12e2071c5667327394cfec163d2a466ab.gh.tar.gz 70193 BLAKE2B 859cb326f358cb22f5ac63999808a2508ac78c461ca664b5f24b315473c1602e51c771b26edfdc5c09935d77ca0f7ed67745f953ba4e2acb4b78a7a89367f8d1 SHA512 71677cf3a0a3c21417a8d70f505523805c4703789f95902262d09e9da26e21321b11e833e321e482daaec3c2629eb4fa64aa4f8dfff27b08490b82250b96341e DIST lsp-types-72357d6f6d212bdffba3b5ef4b31d8ca856058e7.gh.tar.gz 70057 BLAKE2B 56e987fb62ee832ce6049a58a9caec08293d8a104aec43cbd4800e19f11a0b01980b231b54b7b3845b265caf7c35fb987844f6dcdbf3370a8bfe64869d25a6f6 SHA512 3df8105950ca1d0b04e02b78aae90849937691e5d5edd00d24dcdb2dd06a53cb97e6fee09611d28289d53dde9f556ca722e4dc804ab398c095b1e144c7227300 DIST nvim-rs-69500bae73b8b3f02a05b7bee621a0d0e633da6c.gh.tar.gz 47933 BLAKE2B 4fbb0f1bd14fcbc708a52357c03574e7fe864f4a33fd7202f13bdbc1527ecc4f14377994c2d1bab9806ca921cab9a6287abd91e70802bfba4526f12b71587238 SHA512 ff75686616e5e2fc2a8629c5a03922f5a97963da42054bfe2c1c8f54edccf7b2a0f1d624460e4f51a04ee6c228b174c7308a68ff504ea5efe10df0edacbb53de DIST oo7-9d5d5fcd7e4e0add9b420ffb58f67661b0b37568.gh.tar.gz 111786 BLAKE2B ee432f892a55a205b7eea8adadb2540e9f365bec1aff3d81ddaf9ca9e7924645ddd36abcd4d3004bec49ab340e76b81c891e1aaf81ed689d27d19a4dcd620d3c SHA512 f1e7dbdfef0e786663d5086faa4ea46db0e7aa09e731d805a566d31429f0d216224ce1c2c49038a923f2434a6f8275ec2a6c6ade32bbd36efca78e47eab0aa64 DIST python-environment-tools-1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0.gh.tar.gz 1480973 BLAKE2B 72d44efb454a6be24c9e6b5ec7a0d4fb80becc930b53cf6e148136829006cf74e816e0198b17a0fdde0f6bb7206a3ab0150192b41f022fb5b57db253022c4d12 SHA512 5b885f19a9be4deeb2f13b2a25c700df6ee2e45430643d5d9f00473c16b2fc2001caaf5c69502a20f752a52bed79b19120d31efd64701be2aa21ff08a5c8c137 DIST python-environment-tools-ffcbf3f28c46633abd5448a52b1f396c322e0d6c.gh.tar.gz 1480288 BLAKE2B c48838f09a8f7f0e73d415c32c35e3ffeb0b2c1f6aacd41fc2a837e15ae94af20049a2239b8e3a8c9a2872dd2286e4c3c2220c83fc5e17ce931584be4820bdd8 SHA512 25093d814cd48bdce48494099828e90d0065cb12e9736c3c712b1a5ad481abef2b8befafbc35602965d945c6d381e00667aff39d30ed21e0ac2fa612beb186fa DIST reqwest-fd110f6998da16bbca97b6dddda9be7827c50e29.gh.tar.gz 222254 BLAKE2B 59d486fa9e4dbe67e1b45efbeb39f17d9010aa97fe57467f66cefc231291197dfa6a5e8ca313faf3d727b1bcbffba79fbca141efc190db1c2928f13727241f9a SHA512 f4e486682469a97dd2db9e594ef053e10abcad80afd93e86d288a5e364518a15ed6446e2cac43abd9040207c34a5a52f3c1ff1a4190604d914dbd278bc7d5a67 +DIST tree-sitter-git-commit-88309716a69dd13ab83443721ba6e0b491d37ee9.gh.tar.gz 73789 BLAKE2B 0c87bac702bc3b88b9846944a8880b619be6aff3206a339da7a74ed81ca64c033ddf9a0c13a8320b6897dc6de225c8568661cb29a82cf445c8b6818c904f2395 SHA512 53141c8a98a22e031c44d158dbe0cbb7a6f41bc7e762b9b22c86db3e861f7b43771d136f958f6c207f621ba074e15a4fc37aae29ec7c4a6468a2a7ceae67eaf2 DIST tree-sitter-go-mod-6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c.gh.tar.gz 29074 BLAKE2B 97e3fdffc203d036c59a9cfb3e36c6eea835a19729b472673d9b317b93c88b1a4faf1ebd21ff56c733c5ee054571f9e4e917236c3dc8850b130c6377300efeaa SHA512 d484994f4f0418f929c2723a8765fe5b0b7beb2c43f6587aba82f5c176d212e14790d01bdc368f7dd5b4d861ff2d991cb2c2e28d1c54c60600ea8d8bfa4667d7 DIST tree-sitter-go-mod-a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca.gh.tar.gz 27305 BLAKE2B 919875231d9f57e8dfe4d9e7772bd71126bf3ce8d39f7d1c9cb5823810b461c96e69389f6736e819a29958e5ac934424ffa9b291c8268741c4ecff2b76ad526a SHA512 247f4298cef3aae19207f06cb977bc84afdbf7b037d34bb294c09482074935e0552711ec7ae1d5c22d4590a0f2c80fb83d59787c4fc14acde4e06f20b6a18105 DIST tree-sitter-go-work-acb0617bf7f4fda02c6217676cc64acb89536dc7.gh.tar.gz 16413 BLAKE2B 2b97192ad26449d28bb47acb99bd3a0b9cbb8fd2521693099d4191e1d8920b74d1b93f35a1d4f9081dd7bf161f2053f8eba6f2264c8b68d0fbd0fd7d1d1c75b8 SHA512 1b88438403d38019134c41db99c509e4cdbb75c4ba947abb1b5459a9f94eff33006fca4fda4b0a35412507bcdd9f0536a7e1ba2ac0918120242b46bcca9dec96 @@ -29,9 +34,9 @@ DIST zed-0.165.4-crates.tar.xz 100617284 BLAKE2B 2ae775115768befa1509f57a3c6177b DIST zed-0.165.4.tar.gz 13286399 BLAKE2B 971ae47f9344d8fd07dbd0237a61a04b62f848f5f5eb84542e1d5e86ddae07603387c48af1e6068a94d3dea910a0234102f63a64f59b88d482398f4ed69346b5 SHA512 ab55422f05eeac551a485be147ee0336bdd790ac51ff21c719c1f432735e695be0e25f747bf2ba92e0f06bce520aa328f867300647d9828ce282bec87f61fe07 DIST zed-0.168.2-crates.tar.xz 102307616 BLAKE2B 07c3b4270cdb230c1821dcdbcf8d2412e22bcd83d0bcad8d920cb8a24fb7759c94ef631ae3aa043b9fe7435c36fdd4737dcfe88b4cf8e754c91901b2061c6fc3 SHA512 e0e347725001e6d30af3e19556ba698c058572550da928efb6cb8ad2525c25cb2a8234a0ae3bc6a7c3ad9abdeb9b84336b82e11fb0574ce1e3ef02a8b641d850 DIST zed-0.168.2.tar.gz 13487508 BLAKE2B 7e9f8a73eb461f852d85f9596f3db1af0ce56c5c994c413a90b270d5b2b5bb2e994f78853a17b5579ba9905f761cec11d56c67a686643ca5ae4a36dcd83cfb5f SHA512 c7a1c93e044879209dd19b00dba7e046b13175ed82a4968c1aabe1f1605a61605cb4d8d7906a186c61c6129d59a58e14dd2f336263b301f8b59d3e9f7b332f1b -DIST zed-0.172.10-crates.tar.xz 101309808 BLAKE2B 98770d79f4cddda7c8215760a4856b42107414d50c0b28499e8dab334e36d7f1629034875f396cf3e342ccac562bf71d6be61e360f57388badca594fe691fcb0 SHA512 3b549b155ed160350852f71281f966a35900089f85fd05190d15bbdd9a257c124aa313ad1ddedc0c5f644d0f64f49d8c86091aebb0f897e5a51640bfe48d9007 -DIST zed-0.172.10.tar.gz 13621974 BLAKE2B df0fc8e93ca584c84281e86a86c5c4d9ae47d13aac3bfaa3c5837aa64677e9fccb0f6b6eabce8a5b953af5c2062a587e4e31bef8cebe0003ea5a78e1e98ecbc9 SHA512 4799a04191ac07a8da178252f79097def1f1959c4ecbbfef71999765d4ed6db41089b7445c529e1b6784c8598cd6c60707028048f8fdb2afbf96b99b7ad016e8 +DIST zed-0.173.8-crates.tar.xz 105781268 BLAKE2B 26ff8b1a6c567391b7c1456cf79933a15df096fcb9a48aa28d5e2f3dd14d52d139e6a3c71ba14846d2bd036e72bc3d5c6e1733c12b179a1823c9580e5abe1026 SHA512 78dda7d4a74da881bc145bf404091588e9c88311c196b29c07d138ae5d354f396fe824eb547e2fc1b3d05906dcef767a56e6f72c5126443122e3ed482a71b06e +DIST zed-0.173.8.tar.gz 13710072 BLAKE2B 78b9e1cbe2eea13fb290d273c7e7a6aaf4354619b5b9bfec20417becfd794d1767b1cd6115a3e614723599a9b0573a7bb56ec815c8a4740e730fdd7c07f523fc SHA512 3b2b9a502cfc1a49979acd1058a68ab0283d57d697d793c4dd18fb1e0a0352ed12ec3204e138f8e866f1e4ea5fbcedce6580af41f0c403ff56b622ca7cade6d0 EBUILD zed-0.165.4.ebuild 9509 BLAKE2B 12979687e47d1b8df2affa08f32cc4cb118578477e5946649654dacbd763149194ea14e5ef250b82dd374bfa777d1308c78a2c6774403626a79ba21e1c7210cd SHA512 665ebb2c035faa9c5219bc057d45fe6e102f39d84649d67d2e0403949604fcd114128a5c57192fbc28a749fd583ab163121b7ca5f4a9715e9fd0d40539c51ce2 EBUILD zed-0.168.2.ebuild 11505 BLAKE2B 1b614242968c757bdece760f455d25e8b34502098d31523689fc36918b8228e9d85d60292af85f502338dc69d2139f2f9347bd1082deeabe8bccd54c5c92a538 SHA512 5592cafac8272ce0b21526041803b3100218f3133dcf937866b9fd3ccd987b5636ae3d7bd62963a4818b530c69c662cee00f27d0c95f617dfc92b8fde49d8fbe -EBUILD zed-0.172.10.ebuild 12148 BLAKE2B f3fea80e65e909c8d6d846b6a69e052497969ce5c7d269f1637c8678ebeb009d4a984681a801e956e36aa323758c52f2dd0d2f0a24a506c2863c2e4802547fb6 SHA512 472b75f58cb3fbd9ac6dcc531179082c5dd48c208293cddd92f5d4a9712dca359582a42a5db8d3b37fce126b8143ab855d70e6602bc8ffa9b857d011d3d8c932 +EBUILD zed-0.173.8.ebuild 12723 BLAKE2B cf9c5246c1ce81ed3f5f255568c60a3a0d780725b169b000eea5456ee535b2cc9cd22f612ca558debb51d4a1b8dc85aefb49fd05946a7dea053baa97d8a92037 SHA512 f14ba82d1a71d070cb48107607325dd0a86adf8942268a94bfb9e67f03d9b5b9d6c885e01b440a1cf55953ef0af6b88e1bf774630eff9088962cf6e380a7fa84 MISC metadata.xml 575 BLAKE2B 3793593f06424fd3986e23cd148b663bfcbf5c1dc0f76847a3991bbdde8badfdc863d0994ba1b59fc0e886243ded4e4421da4b4bf6d2951887801f78b0d6d290 SHA512 b0660a1a36d59dea6b9a6e25a239f0484e1cbf98a6569dd17d6bae1145f12d7e3ac2609bbce32627bf7ca6161581cd82c087d7deb17dd662c23bd81db6465a02 diff --git a/app-editors/zed/zed-0.172.10.ebuild b/app-editors/zed/zed-0.172.10.ebuild deleted file mode 100644 index 6718d4f851a5..000000000000 --- a/app-editors/zed/zed-0.172.10.ebuild +++ /dev/null @@ -1,210 +0,0 @@ -# Copyright 2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.13.5 - -EAPI=8 - -CRATES=" -" - -declare -A GIT_CRATES=( - [alacritty_terminal]='https://github.com/alacritty/alacritty;5e78d20c709cb1ab8d44ca7a8702cc26d779227c;alacritty-%commit%/alacritty_terminal' - [async-pipe]='https://github.com/zed-industries/async-pipe-rs;82d00a04211cf4e1236029aa03e6b6ce2a74c553;async-pipe-rs-%commit%' - [async-stripe]='https://github.com/zed-industries/async-stripe;3672dd4efb7181aa597bf580bf5a2f5d23db6735;async-stripe-%commit%' - [blade-graphics]='https://github.com/kvark/blade;091a8401033847bb9b6ace3fcf70448d069621c5;blade-%commit%/blade-graphics' - [blade-macros]='https://github.com/kvark/blade;091a8401033847bb9b6ace3fcf70448d069621c5;blade-%commit%/blade-macros' - [blade-util]='https://github.com/kvark/blade;091a8401033847bb9b6ace3fcf70448d069621c5;blade-%commit%/blade-util' - [cosmic-text]='https://github.com/pop-os/cosmic-text;542b20ca4376a3b5de5fa629db1a4ace44e18e0c;cosmic-text-%commit%' - [cpal]='https://github.com/zed-industries/cpal;fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50;cpal-%commit%' - [font-kit]='https://github.com/zed-industries/font-kit;40391b7c0041d8a8572af2afa3de32ae088f0120;font-kit-%commit%' - [git2]='https://github.com/rust-lang/git2-rs;a3b90cb3756c1bb63e2317bf9cfa57838178de5c;git2-rs-%commit%' - [libgit2-sys]='https://github.com/rust-lang/git2-rs;a3b90cb3756c1bb63e2317bf9cfa57838178de5c;git2-rs-%commit%/libgit2-sys' - [libwebrtc]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/libwebrtc' - [livekit-api]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/livekit-api' - [livekit-protocol]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/livekit-protocol' - [livekit-runtime]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/livekit-runtime' - [livekit]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/livekit' - [lsp-types]='https://github.com/zed-industries/lsp-types;72357d6f6d212bdffba3b5ef4b31d8ca856058e7;lsp-types-%commit%' - [nvim-rs]='https://github.com/KillTheMule/nvim-rs;69500bae73b8b3f02a05b7bee621a0d0e633da6c;nvim-rs-%commit%' - [oo7]='https://github.com/zed-industries/oo7;9d5d5fcd7e4e0add9b420ffb58f67661b0b37568;oo7-%commit%/client' - [pet-conda]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-conda' - [pet-core]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-core' - [pet-env-var-path]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-env-var-path' - [pet-fs]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-fs' - [pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-global-virtualenvs' - [pet-homebrew]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-homebrew' - [pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-jsonrpc' - [pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-linux-global-python' - [pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-mac-commandlinetools' - [pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-mac-python-org' - [pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-mac-xcode' - [pet-pipenv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-pipenv' - [pet-pixi]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-pixi' - [pet-poetry]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-poetry' - [pet-pyenv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-pyenv' - [pet-python-utils]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-python-utils' - [pet-reporter]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-reporter' - [pet-telemetry]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-telemetry' - [pet-venv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-venv' - [pet-virtualenv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-virtualenv' - [pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-virtualenvwrapper' - [pet-windows-registry]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-windows-registry' - [pet-windows-store]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-windows-store' - [pet]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet' - [reqwest]='https://github.com/zed-industries/reqwest;fd110f6998da16bbca97b6dddda9be7827c50e29;reqwest-%commit%' - [tree-sitter-gomod]='https://github.com/camdencheek/tree-sitter-go-mod;6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c;tree-sitter-go-mod-%commit%' - [tree-sitter-gowork]='https://github.com/zed-industries/tree-sitter-go-work;acb0617bf7f4fda02c6217676cc64acb89536dc7;tree-sitter-go-work-%commit%' - [tree-sitter-heex]='https://github.com/zed-industries/tree-sitter-heex;1dd45142fbb05562e35b2040c6129c9bca346592;tree-sitter-heex-%commit%' - [tree-sitter-md]='https://github.com/tree-sitter-grammars/tree-sitter-markdown;9a23c1a96c0513d8fc6520972beedd419a973539;tree-sitter-markdown-%commit%' - [tree-sitter-yaml]='https://github.com/zed-industries/tree-sitter-yaml;baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a;tree-sitter-yaml-%commit%' - [webrtc-sys-build]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/webrtc-sys/build' - [webrtc-sys]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/webrtc-sys' - [xim-ctext]='https://github.com/XDeme1/xim-rs;d50d461764c2213655cd9cf65a0ea94c70d3c4fd;xim-rs-%commit%/xim-ctext' - [xim-parser]='https://github.com/XDeme1/xim-rs;d50d461764c2213655cd9cf65a0ea94c70d3c4fd;xim-rs-%commit%/xim-parser' - [xim]='https://github.com/XDeme1/xim-rs;d50d461764c2213655cd9cf65a0ea94c70d3c4fd;xim-rs-%commit%' - [xkbcommon]='https://github.com/ConradIrwin/xkbcommon-rs;fcbb4612185cc129ceeff51d22f7fb51810a03b2;xkbcommon-rs-%commit%' -) - -LLVM_COMPAT=( {18..19} ) -RUST_MIN_VER="1.81.0" -RUST_NEEDS_LLVM=1 -WEBRTC_COMMIT="dac8015-6" - -inherit cargo check-reqs desktop flag-o-matic llvm-r1 toolchain-funcs xdg - -DESCRIPTION="The fast, collaborative code editor" -HOMEPAGE="https://zed.dev https://github.com/zed-industries/zed" -SRC_URI=" - https://github.com/zed-industries/zed/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - https://gitlab.com/api/v4/projects/35204985/packages/generic/${PN}/${PV}/${P}-crates.tar.xz - amd64? ( - https://github.com/livekit/rust-sdks/releases/download/webrtc-${WEBRTC_COMMIT}/webrtc-linux-x64-release.zip -> - webrtc-${WEBRTC_COMMIT}-linux-x64-release.zip - ) - arm64? ( - https://github.com/livekit/rust-sdks/releases/download/webrtc-${WEBRTC_COMMIT}/webrtc-linux-arm64-release.zip -> - webrtc-${WEBRTC_COMMIT}-linux-arm64-release.zip - ) - ${CARGO_CRATE_URIS}" - -LICENSE="GPL-3+" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0 ISC - LGPL-3 MIT MPL-2.0 Unicode-3.0 ZLIB -" -SLOT="0" -KEYWORDS="~amd64 ~arm64" -IUSE="gles" -CHECKREQS_DISK_BUILD="9G" -CHECKREQS_MEMORY="16G" - -DEPEND=" - app-arch/zstd:= - app-misc/jq - dev-db/sqlite:3 - >=dev-libs/libgit2-1.9.0:= - dev-libs/mimalloc - dev-libs/openssl:0/3 - dev-libs/protobuf - dev-libs/wayland - dev-libs/wayland-protocols - dev-util/wayland-scanner - dev-util/vulkan-tools - media-fonts/noto - media-libs/alsa-lib - media-libs/fontconfig - media-libs/vulkan-loader[X] - net-analyzer/openbsd-netcat - net-misc/curl - sys-libs/zlib - x11-libs/libxcb:= - x11-libs/libxkbcommon[X] -" -RDEPEND="${DEPEND}" -BDEPEND=" - app-arch/unzip - dev-build/cmake - dev-util/vulkan-headers - sys-devel/gettext - sys-devel/mold - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}= - ') -" - -QA_FLAGS_IGNORED="usr/bin/zedit" - -pkg_setup() { - if tc-is-gcc; then - export CARGO_PROFILE_RELEASE_LTO="true" - elif tc-is-clang; then - export CARGO_PROFILE_RELEASE_LTO="thin" - fi - strip-unsupported-flags - # flags from upstream - export RUSTFLAGS="${RUSTFLAGS} -C symbol-mangling-version=v0 --cfg tokio_unstable -C link-arg=-fuse-ld=mold -C link-args=-Wl,--disable-new-dtags,-rpath,\$ORIGIN/../lib" - # linking error with llvm-18 - export RUSTFLAGS="${RUSTFLAGS} -C link-args=-Wl,-z,nostart-stop-gc" - # fix error in livekit-rust-sdks - export RUSTFLAGS="${RUSTFLAGS} -A unexpected_cfgs" - if use gles; then - export RUSTFLAGS="${RUSTFLAGS} --cfg gles" - fi - llvm-r1_pkg_setup - rust_pkg_setup -} - -src_prepare() { - default - - export APP_CLI="zedit" - export APP_ICON="zed" - export APP_ID="dev.zed.Zed" - export APP_NAME="Zed" - export APP_ARGS="%U" - export DO_STARTUP_NOTIFY="true" - envsubst < "crates/zed/resources/zed.desktop.in" > ${APP_ID}.desktop || die - - # Cargo offline fetch workaround - local CPAL_COMMIT="fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" - local CPAL_GIT="git = \"https://github.com/zed-industries/cpal\", rev = \"${CPAL_COMMIT}\"" - local CPAL_PATH="path = \"${WORKDIR}/cpal-${CPAL_COMMIT}\"" - - sed -e "s#${CPAL_GIT}#${CPAL_PATH}#" \ - -i "${S}/Cargo.toml" || die "Cargo fetch workaround failed" -} - -src_configure() { - cargo_src_configure --all-features -} - -src_compile() { - export RELEASE_VERSION="${PV}" - export ZED_UPDATE_EXPLANATION='Updates are handled by portage' - if use arm64; then - export LK_CUSTOM_WEBRTC="${WORKDIR}/linux-arm64-release" - elif use amd64; then - export LK_CUSTOM_WEBRTC="${WORKDIR}/linux-x64-release" - fi - cargo_src_compile --package zed --package cli -} - -src_install() { - newbin $(cargo_target_dir)/cli ${APP_CLI} - exeinto "/usr/libexec" - newexe $(cargo_target_dir)/zed zed-editor - - newicon -s 512 crates/zed/resources/app-icon.png zed.png - newicon -s 1024 crates/zed/resources/app-icon@2x.png zed.png - domenu "${S}/${APP_ID}.desktop" -} - -src_test () { - mkdir -p "${HOME}/.config/zed" || die - mkdir -p "${HOME}/.local/share/zed/logs/" || die - - SHELL=/usr/bin/sh RUST_BACKTRACE=full cargo_src_test -vv -} diff --git a/app-editors/zed/zed-0.173.8.ebuild b/app-editors/zed/zed-0.173.8.ebuild new file mode 100644 index 000000000000..d928e8fcd98c --- /dev/null +++ b/app-editors/zed/zed-0.173.8.ebuild @@ -0,0 +1,217 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.5 + +EAPI=8 + +CRATES=" +" + +declare -A GIT_CRATES=( + [alacritty_terminal]='https://github.com/alacritty/alacritty;5e78d20c709cb1ab8d44ca7a8702cc26d779227c;alacritty-%commit%/alacritty_terminal' + [async-pipe]='https://github.com/zed-industries/async-pipe-rs;82d00a04211cf4e1236029aa03e6b6ce2a74c553;async-pipe-rs-%commit%' + [async-stripe]='https://github.com/zed-industries/async-stripe;3672dd4efb7181aa597bf580bf5a2f5d23db6735;async-stripe-%commit%' + [async-tls]='https://github.com/zed-industries/async-tls;1e759a4b5e370f87dc15e40756ac4f8815b61d9d;async-tls-%commit%' + [blade-graphics]='https://github.com/kvark/blade;b16f5c7bd873c7126f48c82c39e7ae64602ae74f;blade-%commit%/blade-graphics' + [blade-macros]='https://github.com/kvark/blade;b16f5c7bd873c7126f48c82c39e7ae64602ae74f;blade-%commit%/blade-macros' + [blade-util]='https://github.com/kvark/blade;b16f5c7bd873c7126f48c82c39e7ae64602ae74f;blade-%commit%/blade-util' + [cosmic-text]='https://github.com/pop-os/cosmic-text;542b20ca4376a3b5de5fa629db1a4ace44e18e0c;cosmic-text-%commit%' + [cpal]='https://github.com/zed-industries/cpal;fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50;cpal-%commit%' + [font-kit]='https://github.com/zed-industries/font-kit;40391b7c0041d8a8572af2afa3de32ae088f0120;font-kit-%commit%' + [git2]='https://github.com/rust-lang/git2-rs;a3b90cb3756c1bb63e2317bf9cfa57838178de5c;git2-rs-%commit%' + [libgit2-sys]='https://github.com/rust-lang/git2-rs;a3b90cb3756c1bb63e2317bf9cfa57838178de5c;git2-rs-%commit%/libgit2-sys' + [libwebrtc]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/libwebrtc' + [livekit-api]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/livekit-api' + [livekit-protocol]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/livekit-protocol' + [livekit-runtime]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/livekit-runtime' + [livekit]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/livekit' + [lsp-types]='https://github.com/zed-industries/lsp-types;1fff0dd12e2071c5667327394cfec163d2a466ab;lsp-types-%commit%' + [nvim-rs]='https://github.com/KillTheMule/nvim-rs;69500bae73b8b3f02a05b7bee621a0d0e633da6c;nvim-rs-%commit%' + [oo7]='https://github.com/zed-industries/oo7;9d5d5fcd7e4e0add9b420ffb58f67661b0b37568;oo7-%commit%/client' + [pet-conda]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-conda' + [pet-core]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-core' + [pet-env-var-path]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-env-var-path' + [pet-fs]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-fs' + [pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-global-virtualenvs' + [pet-homebrew]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-homebrew' + [pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-jsonrpc' + [pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-linux-global-python' + [pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-mac-commandlinetools' + [pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-mac-python-org' + [pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-mac-xcode' + [pet-pipenv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-pipenv' + [pet-pixi]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-pixi' + [pet-poetry]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-poetry' + [pet-pyenv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-pyenv' + [pet-python-utils]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-python-utils' + [pet-reporter]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-reporter' + [pet-telemetry]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-telemetry' + [pet-venv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-venv' + [pet-virtualenv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-virtualenv' + [pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-virtualenvwrapper' + [pet-windows-registry]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-windows-registry' + [pet-windows-store]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-windows-store' + [pet]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet' + [reqwest]='https://github.com/zed-industries/reqwest;fd110f6998da16bbca97b6dddda9be7827c50e29;reqwest-%commit%' + [tree-sitter-gitcommit]='https://github.com/zed-industries/tree-sitter-git-commit;88309716a69dd13ab83443721ba6e0b491d37ee9;tree-sitter-git-commit-%commit%' + [tree-sitter-gomod]='https://github.com/camdencheek/tree-sitter-go-mod;6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c;tree-sitter-go-mod-%commit%' + [tree-sitter-gowork]='https://github.com/zed-industries/tree-sitter-go-work;acb0617bf7f4fda02c6217676cc64acb89536dc7;tree-sitter-go-work-%commit%' + [tree-sitter-heex]='https://github.com/zed-industries/tree-sitter-heex;1dd45142fbb05562e35b2040c6129c9bca346592;tree-sitter-heex-%commit%' + [tree-sitter-md]='https://github.com/tree-sitter-grammars/tree-sitter-markdown;9a23c1a96c0513d8fc6520972beedd419a973539;tree-sitter-markdown-%commit%' + [tree-sitter-yaml]='https://github.com/zed-industries/tree-sitter-yaml;baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a;tree-sitter-yaml-%commit%' + [webrtc-sys-build]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/webrtc-sys/build' + [webrtc-sys]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/webrtc-sys' + [xim-ctext]='https://github.com/XDeme1/xim-rs;d50d461764c2213655cd9cf65a0ea94c70d3c4fd;xim-rs-%commit%/xim-ctext' + [xim-parser]='https://github.com/XDeme1/xim-rs;d50d461764c2213655cd9cf65a0ea94c70d3c4fd;xim-rs-%commit%/xim-parser' + [xim]='https://github.com/XDeme1/xim-rs;d50d461764c2213655cd9cf65a0ea94c70d3c4fd;xim-rs-%commit%' + [xkbcommon]='https://github.com/ConradIrwin/xkbcommon-rs;fcbb4612185cc129ceeff51d22f7fb51810a03b2;xkbcommon-rs-%commit%' +) + +LLVM_COMPAT=( {18..19} ) +RUST_MIN_VER="1.81.0" +RUST_NEEDS_LLVM=1 +WEBRTC_COMMIT="dac8015-6" + +inherit cargo check-reqs desktop flag-o-matic llvm-r1 toolchain-funcs xdg + +DESCRIPTION="The fast, collaborative code editor" +HOMEPAGE="https://zed.dev https://github.com/zed-industries/zed" +SRC_URI=" + https://github.com/zed-industries/zed/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://gitlab.com/api/v4/projects/35204985/packages/generic/${PN}/${PV}/${P}-crates.tar.xz + amd64? ( + https://github.com/livekit/rust-sdks/releases/download/webrtc-${WEBRTC_COMMIT}/webrtc-linux-x64-release.zip -> + webrtc-${WEBRTC_COMMIT}-linux-x64-release.zip + ) + arm64? ( + https://github.com/livekit/rust-sdks/releases/download/webrtc-${WEBRTC_COMMIT}/webrtc-linux-arm64-release.zip -> + webrtc-${WEBRTC_COMMIT}-linux-arm64-release.zip + ) + ${CARGO_CRATE_URIS}" + +LICENSE="GPL-3+" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0 ISC + LGPL-3 MIT MPL-2.0 Unicode-3.0 ZLIB +" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="gles" +CHECKREQS_DISK_BUILD="9G" +CHECKREQS_MEMORY="16G" + +DEPEND=" + app-arch/zstd:= + app-misc/jq + dev-db/sqlite:3 + >=dev-libs/libgit2-1.9.0:= + dev-libs/mimalloc + dev-libs/openssl:0/3 + dev-libs/protobuf + dev-libs/wayland + dev-libs/wayland-protocols + dev-util/wayland-scanner + dev-util/vulkan-tools + media-fonts/noto + media-libs/alsa-lib + media-libs/fontconfig + media-libs/vulkan-loader[X] + net-analyzer/openbsd-netcat + net-misc/curl + sys-libs/zlib + x11-libs/libxcb:= + x11-libs/libxkbcommon[X] +" +RDEPEND="${DEPEND}" +BDEPEND=" + app-arch/unzip + dev-build/cmake + dev-util/vulkan-headers + sys-devel/gettext + sys-devel/mold + $(llvm_gen_dep ' + llvm-core/clang:${LLVM_SLOT}= + llvm-core/llvm:${LLVM_SLOT}= + ') +" + +QA_FLAGS_IGNORED="usr/bin/zedit" + +pkg_setup() { + if tc-is-gcc; then + export CARGO_PROFILE_RELEASE_LTO="true" + elif tc-is-clang; then + export CARGO_PROFILE_RELEASE_LTO="thin" + fi + strip-unsupported-flags + # flags from upstream + export RUSTFLAGS="${RUSTFLAGS} -C symbol-mangling-version=v0 --cfg tokio_unstable -C link-arg=-fuse-ld=mold -C link-args=-Wl,--disable-new-dtags,-rpath,\$ORIGIN/../lib" + # linking error with llvm-18 + export RUSTFLAGS="${RUSTFLAGS} -C link-args=-Wl,-z,nostart-stop-gc" + # fix error in livekit-rust-sdks + export RUSTFLAGS="${RUSTFLAGS} -A unexpected_cfgs" + if use gles; then + export RUSTFLAGS="${RUSTFLAGS} --cfg gles" + fi + llvm-r1_pkg_setup + rust_pkg_setup +} + +src_prepare() { + default + + export APP_CLI="zedit" + export APP_ICON="zed" + export APP_ID="dev.zed.Zed" + export APP_NAME="Zed" + export APP_ARGS="%U" + export DO_STARTUP_NOTIFY="true" + envsubst < "crates/zed/resources/zed.desktop.in" > ${APP_ID}.desktop || die + + # Cargo offline fetch workaround + local CPAL_COMMIT="fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50" + local CPAL_GIT="git = \"https://github.com/zed-industries/cpal\", rev = \"${CPAL_COMMIT}\"" + local CPAL_PATH="path = \"${WORKDIR}/cpal-${CPAL_COMMIT}\"" + + local ASYNC_TLS_COMMIT="1e759a4b5e370f87dc15e40756ac4f8815b61d9d" + local ASYNC_TLS_GIT="git = \"https://github.com/zed-industries/async-tls\", rev = \"${ASYNC_TLS_COMMIT}\"" + local ASYNC_TLS_PATH="path = \"${WORKDIR}/async-tls-${ASYNC_TLS_COMMIT}\"" + + sed -e "s#${CPAL_GIT}#${CPAL_PATH}#" \ + -e "s#${ASYNC_TLS_GIT}#${ASYNC_TLS_PATH}#" \ + -i "${S}/Cargo.toml" || die "Cargo fetch workaround failed" +} + +src_configure() { + cargo_src_configure --all-features +} + +src_compile() { + export RELEASE_VERSION="${PV}" + export ZED_UPDATE_EXPLANATION='Updates are handled by portage' + if use arm64; then + export LK_CUSTOM_WEBRTC="${WORKDIR}/linux-arm64-release" + elif use amd64; then + export LK_CUSTOM_WEBRTC="${WORKDIR}/linux-x64-release" + fi + cargo_src_compile --package zed --package cli +} + +src_install() { + newbin $(cargo_target_dir)/cli ${APP_CLI} + exeinto "/usr/libexec" + newexe $(cargo_target_dir)/zed zed-editor + + newicon -s 512 crates/zed/resources/app-icon.png zed.png + newicon -s 1024 crates/zed/resources/app-icon@2x.png zed.png + domenu "${S}/${APP_ID}.desktop" +} + +src_test () { + mkdir -p "${HOME}/.config/zed" || die + mkdir -p "${HOME}/.local/share/zed/logs/" || die + + SHELL=/usr/bin/sh RUST_BACKTRACE=full cargo_src_test -vv +} -- cgit v1.2.3