From be94ae04eee564451203d45977c2ef7c7ace1580 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 10 Nov 2024 03:03:09 +0000 Subject: gentoo auto-resync : 10:11:2024 - 03:03:09 --- app-editors/Manifest.gz | Bin 14132 -> 14134 bytes app-editors/helix/Manifest | 4 +- app-editors/helix/helix-24.03-r1.ebuild | 362 ---------------------------- app-editors/helix/helix-24.03-r2.ebuild | 362 ++++++++++++++++++++++++++++ app-editors/helix/helix-24.07-r1.ebuild | 363 +++++++++++++++++++++++++++++ app-editors/helix/helix-24.07.ebuild | 362 ---------------------------- app-editors/mousepad/Manifest | 4 +- app-editors/mousepad/mousepad-0.6.2.ebuild | 63 ----- app-editors/mousepad/mousepad-0.6.3.ebuild | 2 +- app-editors/zed/Manifest | 6 +- app-editors/zed/zed-0.155.2-r1.ebuild | 142 +++++++++++ app-editors/zed/zed-0.155.2.ebuild | 139 ----------- app-editors/zed/zed-0.159.10-r1.ebuild | 171 ++++++++++++++ app-editors/zed/zed-0.159.10.ebuild | 168 ------------- app-editors/zed/zed-0.160.7-r1.ebuild | 171 ++++++++++++++ app-editors/zed/zed-0.160.7.ebuild | 168 ------------- 16 files changed, 1216 insertions(+), 1271 deletions(-) delete mode 100644 app-editors/helix/helix-24.03-r1.ebuild create mode 100644 app-editors/helix/helix-24.03-r2.ebuild create mode 100644 app-editors/helix/helix-24.07-r1.ebuild delete mode 100644 app-editors/helix/helix-24.07.ebuild delete mode 100644 app-editors/mousepad/mousepad-0.6.2.ebuild create mode 100644 app-editors/zed/zed-0.155.2-r1.ebuild delete mode 100644 app-editors/zed/zed-0.155.2.ebuild create mode 100644 app-editors/zed/zed-0.159.10-r1.ebuild delete mode 100644 app-editors/zed/zed-0.159.10.ebuild create mode 100644 app-editors/zed/zed-0.160.7-r1.ebuild delete mode 100644 app-editors/zed/zed-0.160.7.ebuild (limited to 'app-editors') diff --git a/app-editors/Manifest.gz b/app-editors/Manifest.gz index c00e2ec216f7..486dd0bc153a 100644 Binary files a/app-editors/Manifest.gz and b/app-editors/Manifest.gz differ diff --git a/app-editors/helix/Manifest b/app-editors/helix/Manifest index 8aef5ed9c2f7..10287204d987 100644 --- a/app-editors/helix/Manifest +++ b/app-editors/helix/Manifest @@ -335,6 +335,6 @@ DIST winnow-0.6.5.crate 159316 BLAKE2B d28c6a069e3d557335c09ae04f1d90a9086b1744d DIST winsafe-0.0.19.crate 492820 BLAKE2B 4eba26861f85f668e134b08c60e9522b698aed61eaa5e6d4e89ef31c1b97953fa08a5157add52d9a306075df4ad97e9aaf1767eea4208b72401ec0bc1c3eb0e9 SHA512 0555ec74c5acbb69ab08e54d920094e806258079bffaff3f90297bb94a000c7da36d6eba0eae445d425c781465235dd70a198437cf83a1f113438bfd9baf4c21 DIST zerocopy-0.7.31.crate 151100 BLAKE2B 0363306c4b0f024bf87d8d689bfa63b7a12fcbf670cfb07a27a69d5b8269c38eadb73319b8788842d292bc73eb41a2a16820cb265cdf40f6a1f9dade3aa44d5c SHA512 672c71003c26a6cae1fc0704e13210b20055e66ccb1682e590effda094ab6c0409d56060c7dc8e94e4a0295b55e476f50bd2145096cbdad7b14c4abf613a251e DIST zerocopy-derive-0.7.31.crate 533507 BLAKE2B e0872636d43956d1405e296f51f313989b1cddd9911adc5f1c2a59274f9668003356bbc942cbe7f339d7173f8caca8378e7ba11461c181fa1b51e582bf833a5f SHA512 33a0e2b1045c6f584fd67c34a64d4262c848090acbeafbc75e4c553ec2e2d14dcb70285a1a2d840257757b1836fdb44778737aa06199cd4e831ac74623932827 -EBUILD helix-24.03-r1.ebuild 7419 BLAKE2B 26855e8bac333a085d370df2035ab17a55fc49defbee32f5564d50d90e9ce31fccab8e212439dc1ea7e9820504b91d7351e7fea6724cc7b73eea2ae1a40aa98e SHA512 2fbd715f102527350b07cfc9dbd5bc84ba57367fdd8471607012d606417362a466f3abb4414424c9a900d29c81def0e54c58c3d9077dca0063560a96635a667a -EBUILD helix-24.07.ebuild 7118 BLAKE2B 36c6493b4dca6a7f184890bb19e045c5276f02b5243aa1ffc373d055840ea6acc86b29a75be0aa6f1b0f02efa72515f8bf418a9405941ce86eda8121de2e6f4f SHA512 4a89072c8a9d313f29672b1406250f56f3c90d6bc87b82ff413148815c626f85f718b81f51727b57396a18a58d1edda6a19b15327a580787b62298f7582e03f7 +EBUILD helix-24.03-r2.ebuild 7419 BLAKE2B 26855e8bac333a085d370df2035ab17a55fc49defbee32f5564d50d90e9ce31fccab8e212439dc1ea7e9820504b91d7351e7fea6724cc7b73eea2ae1a40aa98e SHA512 2fbd715f102527350b07cfc9dbd5bc84ba57367fdd8471607012d606417362a466f3abb4414424c9a900d29c81def0e54c58c3d9077dca0063560a96635a667a +EBUILD helix-24.07-r1.ebuild 7134 BLAKE2B 2e4ba9d07744ac43435fc7a67d80f262762197894820652828e3c98c5533e1e26b6f13367e5681f52d6b8a1cab757383504378982bb2157fd11aa2648008da03 SHA512 e32c575eaba97050fc4dc0e422c95131ad0e8c98222c69167dfb826d99d40ac86878da6e3c14254908edba0e85842ebc24671b88084241387476cee8844428d1 MISC metadata.xml 810 BLAKE2B c9d3cf2b22533ee86d3d2750380c9e03ea3cd79a9c699c0d9df93d6ec7d0f1a4051004f91c59b78e6b915faea3f8f00ab3e10fcd892d3d50a1ea05c9b48b991e SHA512 0466db4f8af1ad67b70417fcf6a9970ceeb31fa81cd2691ee97527bdf593f55a863e3a0dc200301165d7794649a57486eb2fb92bb92d76fd450f080c58c96905 diff --git a/app-editors/helix/helix-24.03-r1.ebuild b/app-editors/helix/helix-24.03-r1.ebuild deleted file mode 100644 index 46ee3c25397e..000000000000 --- a/app-editors/helix/helix-24.03-r1.ebuild +++ /dev/null @@ -1,362 +0,0 @@ -# Copyright 2024-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.13.2 - -EAPI=8 - -CRATES=" - addr2line@0.20.0 - adler@1.0.2 - ahash@0.8.11 - aho-corasick@1.1.2 - allocator-api2@0.2.14 - android-tzdata@0.1.1 - android_system_properties@0.1.5 - anyhow@1.0.81 - arc-swap@1.7.1 - autocfg@1.1.0 - backtrace@0.3.68 - bitflags@1.3.2 - bitflags@2.5.0 - bstr@1.8.0 - bumpalo@3.12.0 - bytes@1.4.0 - cassowary@0.3.0 - cc@1.0.90 - cfg-if@1.0.0 - chardetng@0.1.17 - chrono@0.4.35 - clipboard-win@5.3.0 - clru@0.6.1 - codespan-reporting@0.11.1 - content_inspector@0.2.4 - core-foundation-sys@0.8.4 - cov-mark@1.1.0 - crc32fast@1.3.2 - crossbeam-channel@0.5.8 - crossbeam-deque@0.8.3 - crossbeam-epoch@0.9.15 - crossbeam-utils@0.8.16 - crossterm@0.27.0 - crossterm_winapi@0.9.1 - cxx-build@1.0.94 - cxx@1.0.94 - cxxbridge-flags@1.0.94 - cxxbridge-macro@1.0.94 - dunce@1.0.4 - either@1.9.0 - encoding_rs@0.8.33 - encoding_rs_io@0.1.7 - equivalent@1.0.0 - errno@0.3.8 - error-code@3.0.0 - etcetera@0.8.0 - faster-hex@0.9.0 - fastrand@2.0.1 - fern@0.6.2 - filedescriptor@0.8.2 - filetime@0.2.23 - flate2@1.0.27 - fnv@1.0.7 - form_urlencoded@1.2.1 - futures-core@0.3.30 - futures-executor@0.3.30 - futures-task@0.3.30 - futures-util@0.3.30 - getrandom@0.2.9 - gimli@0.27.3 - gix-actor@0.31.1 - gix-attributes@0.22.2 - gix-bitmap@0.2.11 - gix-chunk@0.4.8 - gix-command@0.3.6 - gix-commitgraph@0.24.2 - gix-config-value@0.14.6 - gix-config@0.36.0 - gix-date@0.8.5 - gix-diff@0.42.0 - gix-discover@0.31.0 - gix-features@0.38.1 - gix-filter@0.11.0 - gix-fs@0.10.1 - gix-glob@0.16.2 - gix-hash@0.14.2 - gix-hashtable@0.5.2 - gix-ignore@0.11.2 - gix-index@0.31.1 - gix-lock@13.0.0 - gix-macros@0.1.4 - gix-object@0.42.1 - gix-odb@0.59.0 - gix-pack@0.49.0 - gix-packetline-blocking@0.17.3 - gix-path@0.10.7 - gix-pathspec@0.7.2 - gix-quote@0.4.12 - gix-ref@0.43.0 - gix-refspec@0.23.0 - gix-revision@0.27.0 - gix-revwalk@0.13.0 - gix-sec@0.10.6 - gix-submodule@0.10.0 - gix-tempfile@13.0.0 - gix-trace@0.1.8 - gix-traverse@0.38.0 - gix-url@0.27.2 - gix-utils@0.1.11 - gix-validate@0.8.4 - gix-worktree@0.32.0 - gix@0.61.0 - globset@0.4.14 - grep-matcher@0.1.7 - grep-regex@0.1.12 - grep-searcher@0.1.13 - hashbrown@0.12.3 - hashbrown@0.14.3 - hermit-abi@0.2.6 - home@0.5.9 - iana-time-zone-haiku@0.1.1 - iana-time-zone@0.1.56 - idna@0.5.0 - ignore@0.4.22 - imara-diff@0.1.5 - indexmap@2.0.0 - indoc@2.0.5 - is-docker@0.2.0 - is-wsl@0.4.0 - itoa@1.0.6 - js-sys@0.3.61 - kstring@2.0.0 - libc@0.2.153 - libloading@0.8.3 - link-cplusplus@1.0.8 - linux-raw-sys@0.4.12 - lock_api@0.4.9 - log@0.4.21 - lsp-types@0.95.1 - memchr@2.6.3 - memmap2@0.9.0 - memoffset@0.9.0 - miniz_oxide@0.7.1 - mio@0.8.11 - nucleo-matcher@0.2.0 - nucleo@0.2.1 - num-traits@0.2.15 - num_cpus@1.15.0 - num_threads@0.1.6 - object@0.31.1 - once_cell@1.19.0 - open@5.1.2 - parking_lot@0.12.1 - parking_lot_core@0.9.7 - pathdiff@0.2.1 - percent-encoding@2.3.1 - pin-project-lite@0.2.12 - pin-utils@0.1.0 - proc-macro2@1.0.76 - prodash@28.0.0 - pulldown-cmark@0.10.0 - quickcheck@1.0.3 - quote@1.0.35 - rand@0.8.5 - rand_core@0.6.4 - rayon-core@1.11.0 - rayon@1.7.0 - redox_syscall@0.2.16 - redox_syscall@0.4.1 - regex-automata@0.4.5 - regex-cursor@0.1.4 - regex-syntax@0.8.2 - regex@1.10.4 - ropey@1.6.1 - rustc-demangle@0.1.23 - rustix@0.38.32 - ryu@1.0.13 - same-file@1.0.6 - scopeguard@1.1.0 - scratch@1.0.5 - serde@1.0.197 - serde_derive@1.0.197 - serde_json@1.0.114 - serde_repr@0.1.12 - serde_spanned@0.6.5 - sha1_smol@1.0.0 - shell-words@1.1.0 - signal-hook-mio@0.2.3 - signal-hook-registry@1.4.1 - signal-hook-tokio@0.3.1 - signal-hook@0.3.17 - slab@0.4.8 - slotmap@1.0.7 - smallvec@1.13.2 - smartstring@1.0.1 - smawk@0.3.1 - socket2@0.5.5 - static_assertions@1.1.0 - str_indices@0.4.1 - syn@1.0.109 - syn@2.0.48 - tempfile@3.10.1 - termcolor@1.2.0 - termini@1.0.0 - textwrap@0.16.1 - thiserror-impl@1.0.58 - thiserror@1.0.58 - threadpool@1.8.1 - time-core@0.1.1 - time-macros@0.2.10 - time@0.3.23 - tinyvec@1.6.0 - tinyvec_macros@0.1.1 - tokio-macros@2.2.0 - tokio-stream@0.1.15 - tokio@1.36.0 - toml@0.8.12 - toml_datetime@0.6.5 - toml_edit@0.22.8 - tree-sitter@0.22.2 - unicase@2.6.0 - unicode-bidi@0.3.13 - unicode-bom@2.0.2 - unicode-general-category@0.6.0 - unicode-ident@1.0.8 - unicode-linebreak@0.1.5 - unicode-normalization@0.1.22 - unicode-segmentation@1.11.0 - unicode-width@0.1.11 - url@2.5.0 - version_check@0.9.4 - walkdir@2.4.0 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.84 - wasm-bindgen-macro-support@0.2.84 - wasm-bindgen-macro@0.2.84 - wasm-bindgen-shared@0.2.84 - wasm-bindgen@0.2.84 - which@6.0.1 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.5 - winapi-x86_64-pc-windows-gnu@0.4.0 - winapi@0.3.9 - windows-sys@0.45.0 - windows-sys@0.48.0 - windows-sys@0.52.0 - windows-targets@0.42.2 - windows-targets@0.48.0 - windows-targets@0.52.0 - windows@0.48.0 - windows_aarch64_gnullvm@0.42.2 - windows_aarch64_gnullvm@0.48.0 - windows_aarch64_gnullvm@0.52.0 - windows_aarch64_msvc@0.42.2 - windows_aarch64_msvc@0.48.0 - windows_aarch64_msvc@0.52.0 - windows_i686_gnu@0.42.2 - windows_i686_gnu@0.48.0 - windows_i686_gnu@0.52.0 - windows_i686_msvc@0.42.2 - windows_i686_msvc@0.48.0 - windows_i686_msvc@0.52.0 - windows_x86_64_gnu@0.42.2 - windows_x86_64_gnu@0.48.0 - windows_x86_64_gnu@0.52.0 - windows_x86_64_gnullvm@0.42.2 - windows_x86_64_gnullvm@0.48.0 - windows_x86_64_gnullvm@0.52.0 - windows_x86_64_msvc@0.42.2 - windows_x86_64_msvc@0.48.0 - windows_x86_64_msvc@0.52.0 - winnow@0.6.5 - winsafe@0.0.19 - zerocopy-derive@0.7.31 - zerocopy@0.7.31 -" - -inherit cargo desktop shell-completion xdg - -DESCRIPTION="A post-modern text editor" -HOMEPAGE=" - https://helix-editor.com/ - https://github.com/helix-editor/helix -" -SRC_URI=" - https://github.com/helix-editor/helix/releases/download/${PV}/${P}-source.tar.xz -> ${P}.tar.xz - ${CARGO_CRATE_URIS} -" - -S="${WORKDIR}" - -LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB" -SLOT="0" -KEYWORDS="amd64" -IUSE="+grammar" - -RDEPEND="dev-vcs/git" - -QA_FLAGS_IGNORED=" - usr/bin/hx - usr/share/helix/runtime/grammars/.*\.so -" - -DOCS=( - README.md - CHANGELOG.md - book/ - docs/ -) - -src_compile() { - use grammar || local -x HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 - - cargo_src_compile -} - -src_install() { - cargo_src_install --path helix-term - - insinto "/usr/$(get_libdir)/${PN}" - use grammar && doins runtime/grammars/*.so - rm -r runtime/grammars || die - use grammar && dosym "../../../$(get_libdir)/${PN}" "${EPREFIX}/usr/share/${PN}/runtime/grammars" - - insinto /usr/share/helix - doins -r runtime - dodoc -r "${DOCS[@]}" - - doicon -s 256x256 contrib/${PN}.png - domenu contrib/Helix.desktop - - insinto /usr/share/metainfo - doins contrib/Helix.appdata.xml - - newbashcomp contrib/completion/hx.bash hx - newzshcomp contrib/completion/hx.zsh _hx - dofishcomp contrib/completion/hx.fish - - newenvd - 99helix <<< 'HELIX_RUNTIME="/usr/share/helix/runtime"' -} - -pkg_postinst() { - einfo "The runtime files have been" - einfo "installed in '/usr/share/helix/runtime'. The environment variable" - einfo "HELIX_RUNTIME was also installed on your system. In running shell instances" - einfo "you need to run 'source /etc/profile' to pick up the new variable" - einfo "or manually set the environment variable HELIX_RUNTIME=/usr/share/helix/runtime." - - if ! use grammar ; then - einfo "" - einfo "Grammars are not installed yet. To fetch and install them, run:" - einfo "" - einfo " hx --grammar fetch" - einfo " hx --grammar build" - fi - - xdg_desktop_database_update - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update -} diff --git a/app-editors/helix/helix-24.03-r2.ebuild b/app-editors/helix/helix-24.03-r2.ebuild new file mode 100644 index 000000000000..46ee3c25397e --- /dev/null +++ b/app-editors/helix/helix-24.03-r2.ebuild @@ -0,0 +1,362 @@ +# Copyright 2024-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.2 + +EAPI=8 + +CRATES=" + addr2line@0.20.0 + adler@1.0.2 + ahash@0.8.11 + aho-corasick@1.1.2 + allocator-api2@0.2.14 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + anyhow@1.0.81 + arc-swap@1.7.1 + autocfg@1.1.0 + backtrace@0.3.68 + bitflags@1.3.2 + bitflags@2.5.0 + bstr@1.8.0 + bumpalo@3.12.0 + bytes@1.4.0 + cassowary@0.3.0 + cc@1.0.90 + cfg-if@1.0.0 + chardetng@0.1.17 + chrono@0.4.35 + clipboard-win@5.3.0 + clru@0.6.1 + codespan-reporting@0.11.1 + content_inspector@0.2.4 + core-foundation-sys@0.8.4 + cov-mark@1.1.0 + crc32fast@1.3.2 + crossbeam-channel@0.5.8 + crossbeam-deque@0.8.3 + crossbeam-epoch@0.9.15 + crossbeam-utils@0.8.16 + crossterm@0.27.0 + crossterm_winapi@0.9.1 + cxx-build@1.0.94 + cxx@1.0.94 + cxxbridge-flags@1.0.94 + cxxbridge-macro@1.0.94 + dunce@1.0.4 + either@1.9.0 + encoding_rs@0.8.33 + encoding_rs_io@0.1.7 + equivalent@1.0.0 + errno@0.3.8 + error-code@3.0.0 + etcetera@0.8.0 + faster-hex@0.9.0 + fastrand@2.0.1 + fern@0.6.2 + filedescriptor@0.8.2 + filetime@0.2.23 + flate2@1.0.27 + fnv@1.0.7 + form_urlencoded@1.2.1 + futures-core@0.3.30 + futures-executor@0.3.30 + futures-task@0.3.30 + futures-util@0.3.30 + getrandom@0.2.9 + gimli@0.27.3 + gix-actor@0.31.1 + gix-attributes@0.22.2 + gix-bitmap@0.2.11 + gix-chunk@0.4.8 + gix-command@0.3.6 + gix-commitgraph@0.24.2 + gix-config-value@0.14.6 + gix-config@0.36.0 + gix-date@0.8.5 + gix-diff@0.42.0 + gix-discover@0.31.0 + gix-features@0.38.1 + gix-filter@0.11.0 + gix-fs@0.10.1 + gix-glob@0.16.2 + gix-hash@0.14.2 + gix-hashtable@0.5.2 + gix-ignore@0.11.2 + gix-index@0.31.1 + gix-lock@13.0.0 + gix-macros@0.1.4 + gix-object@0.42.1 + gix-odb@0.59.0 + gix-pack@0.49.0 + gix-packetline-blocking@0.17.3 + gix-path@0.10.7 + gix-pathspec@0.7.2 + gix-quote@0.4.12 + gix-ref@0.43.0 + gix-refspec@0.23.0 + gix-revision@0.27.0 + gix-revwalk@0.13.0 + gix-sec@0.10.6 + gix-submodule@0.10.0 + gix-tempfile@13.0.0 + gix-trace@0.1.8 + gix-traverse@0.38.0 + gix-url@0.27.2 + gix-utils@0.1.11 + gix-validate@0.8.4 + gix-worktree@0.32.0 + gix@0.61.0 + globset@0.4.14 + grep-matcher@0.1.7 + grep-regex@0.1.12 + grep-searcher@0.1.13 + hashbrown@0.12.3 + hashbrown@0.14.3 + hermit-abi@0.2.6 + home@0.5.9 + iana-time-zone-haiku@0.1.1 + iana-time-zone@0.1.56 + idna@0.5.0 + ignore@0.4.22 + imara-diff@0.1.5 + indexmap@2.0.0 + indoc@2.0.5 + is-docker@0.2.0 + is-wsl@0.4.0 + itoa@1.0.6 + js-sys@0.3.61 + kstring@2.0.0 + libc@0.2.153 + libloading@0.8.3 + link-cplusplus@1.0.8 + linux-raw-sys@0.4.12 + lock_api@0.4.9 + log@0.4.21 + lsp-types@0.95.1 + memchr@2.6.3 + memmap2@0.9.0 + memoffset@0.9.0 + miniz_oxide@0.7.1 + mio@0.8.11 + nucleo-matcher@0.2.0 + nucleo@0.2.1 + num-traits@0.2.15 + num_cpus@1.15.0 + num_threads@0.1.6 + object@0.31.1 + once_cell@1.19.0 + open@5.1.2 + parking_lot@0.12.1 + parking_lot_core@0.9.7 + pathdiff@0.2.1 + percent-encoding@2.3.1 + pin-project-lite@0.2.12 + pin-utils@0.1.0 + proc-macro2@1.0.76 + prodash@28.0.0 + pulldown-cmark@0.10.0 + quickcheck@1.0.3 + quote@1.0.35 + rand@0.8.5 + rand_core@0.6.4 + rayon-core@1.11.0 + rayon@1.7.0 + redox_syscall@0.2.16 + redox_syscall@0.4.1 + regex-automata@0.4.5 + regex-cursor@0.1.4 + regex-syntax@0.8.2 + regex@1.10.4 + ropey@1.6.1 + rustc-demangle@0.1.23 + rustix@0.38.32 + ryu@1.0.13 + same-file@1.0.6 + scopeguard@1.1.0 + scratch@1.0.5 + serde@1.0.197 + serde_derive@1.0.197 + serde_json@1.0.114 + serde_repr@0.1.12 + serde_spanned@0.6.5 + sha1_smol@1.0.0 + shell-words@1.1.0 + signal-hook-mio@0.2.3 + signal-hook-registry@1.4.1 + signal-hook-tokio@0.3.1 + signal-hook@0.3.17 + slab@0.4.8 + slotmap@1.0.7 + smallvec@1.13.2 + smartstring@1.0.1 + smawk@0.3.1 + socket2@0.5.5 + static_assertions@1.1.0 + str_indices@0.4.1 + syn@1.0.109 + syn@2.0.48 + tempfile@3.10.1 + termcolor@1.2.0 + termini@1.0.0 + textwrap@0.16.1 + thiserror-impl@1.0.58 + thiserror@1.0.58 + threadpool@1.8.1 + time-core@0.1.1 + time-macros@0.2.10 + time@0.3.23 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + tokio-macros@2.2.0 + tokio-stream@0.1.15 + tokio@1.36.0 + toml@0.8.12 + toml_datetime@0.6.5 + toml_edit@0.22.8 + tree-sitter@0.22.2 + unicase@2.6.0 + unicode-bidi@0.3.13 + unicode-bom@2.0.2 + unicode-general-category@0.6.0 + unicode-ident@1.0.8 + unicode-linebreak@0.1.5 + unicode-normalization@0.1.22 + unicode-segmentation@1.11.0 + unicode-width@0.1.11 + url@2.5.0 + version_check@0.9.4 + walkdir@2.4.0 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.84 + wasm-bindgen-macro-support@0.2.84 + wasm-bindgen-macro@0.2.84 + wasm-bindgen-shared@0.2.84 + wasm-bindgen@0.2.84 + which@6.0.1 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.5 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-sys@0.45.0 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-targets@0.42.2 + windows-targets@0.48.0 + windows-targets@0.52.0 + windows@0.48.0 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.0 + windows_aarch64_gnullvm@0.52.0 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.0 + windows_aarch64_msvc@0.52.0 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.0 + windows_i686_gnu@0.52.0 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.0 + windows_i686_msvc@0.52.0 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.0 + windows_x86_64_gnu@0.52.0 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.0 + windows_x86_64_gnullvm@0.52.0 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.0 + windows_x86_64_msvc@0.52.0 + winnow@0.6.5 + winsafe@0.0.19 + zerocopy-derive@0.7.31 + zerocopy@0.7.31 +" + +inherit cargo desktop shell-completion xdg + +DESCRIPTION="A post-modern text editor" +HOMEPAGE=" + https://helix-editor.com/ + https://github.com/helix-editor/helix +" +SRC_URI=" + https://github.com/helix-editor/helix/releases/download/${PV}/${P}-source.tar.xz -> ${P}.tar.xz + ${CARGO_CRATE_URIS} +" + +S="${WORKDIR}" + +LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB" +SLOT="0" +KEYWORDS="amd64" +IUSE="+grammar" + +RDEPEND="dev-vcs/git" + +QA_FLAGS_IGNORED=" + usr/bin/hx + usr/share/helix/runtime/grammars/.*\.so +" + +DOCS=( + README.md + CHANGELOG.md + book/ + docs/ +) + +src_compile() { + use grammar || local -x HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 + + cargo_src_compile +} + +src_install() { + cargo_src_install --path helix-term + + insinto "/usr/$(get_libdir)/${PN}" + use grammar && doins runtime/grammars/*.so + rm -r runtime/grammars || die + use grammar && dosym "../../../$(get_libdir)/${PN}" "${EPREFIX}/usr/share/${PN}/runtime/grammars" + + insinto /usr/share/helix + doins -r runtime + dodoc -r "${DOCS[@]}" + + doicon -s 256x256 contrib/${PN}.png + domenu contrib/Helix.desktop + + insinto /usr/share/metainfo + doins contrib/Helix.appdata.xml + + newbashcomp contrib/completion/hx.bash hx + newzshcomp contrib/completion/hx.zsh _hx + dofishcomp contrib/completion/hx.fish + + newenvd - 99helix <<< 'HELIX_RUNTIME="/usr/share/helix/runtime"' +} + +pkg_postinst() { + einfo "The runtime files have been" + einfo "installed in '/usr/share/helix/runtime'. The environment variable" + einfo "HELIX_RUNTIME was also installed on your system. In running shell instances" + einfo "you need to run 'source /etc/profile' to pick up the new variable" + einfo "or manually set the environment variable HELIX_RUNTIME=/usr/share/helix/runtime." + + if ! use grammar ; then + einfo "" + einfo "Grammars are not installed yet. To fetch and install them, run:" + einfo "" + einfo " hx --grammar fetch" + einfo " hx --grammar build" + fi + + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} diff --git a/app-editors/helix/helix-24.07-r1.ebuild b/app-editors/helix/helix-24.07-r1.ebuild new file mode 100644 index 000000000000..23c9065f87bd --- /dev/null +++ b/app-editors/helix/helix-24.07-r1.ebuild @@ -0,0 +1,363 @@ +# Copyright 2024-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.2 + +EAPI=8 + +CRATES=" + addr2line@0.20.0 + adler@1.0.2 + ahash@0.8.11 + aho-corasick@1.1.2 + allocator-api2@0.2.14 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + anyhow@1.0.86 + arc-swap@1.7.1 + autocfg@1.1.0 + backtrace@0.3.68 + bitflags@1.3.2 + bitflags@2.6.0 + bstr@1.8.0 + bumpalo@3.12.0 + bytes@1.4.0 + cassowary@0.3.0 + cc@1.0.106 + cfg-if@1.0.0 + chardetng@0.1.17 + chrono@0.4.38 + clipboard-win@5.4.0 + clru@0.6.1 + codespan-reporting@0.11.1 + content_inspector@0.2.4 + core-foundation-sys@0.8.4 + cov-mark@1.1.0 + crc32fast@1.3.2 + crossbeam-channel@0.5.8 + crossbeam-deque@0.8.3 + crossbeam-epoch@0.9.15 + crossbeam-utils@0.8.16 + crossterm@0.27.0 + crossterm_winapi@0.9.1 + cxx-build@1.0.94 + cxx@1.0.94 + cxxbridge-flags@1.0.94 + cxxbridge-macro@1.0.94 + dashmap@5.4.0 + deranged@0.3.11 + dunce@1.0.4 + either@1.9.0 + encoding_rs@0.8.34 + encoding_rs_io@0.1.7 + equivalent@1.0.0 + errno@0.3.8 + error-code@3.0.0 + etcetera@0.8.0 + faster-hex@0.9.0 + fastrand@2.1.0 + fern@0.6.2 + filedescriptor@0.8.2 + filetime@0.2.23 + flate2@1.0.27 + fnv@1.0.7 + form_urlencoded@1.2.1 + futures-core@0.3.30 + futures-executor@0.3.30 + futures-task@0.3.30 + futures-util@0.3.30 + getrandom@0.2.9 + gimli@0.27.3 + gix-actor@0.31.2 + gix-attributes@0.22.2 + gix-bitmap@0.2.11 + gix-chunk@0.4.8 + gix-command@0.3.7 + gix-commitgraph@0.24.2 + gix-config-value@0.14.6 + gix-config@0.37.0 + gix-date@0.8.6 + gix-diff@0.44.0 + gix-dir@0.5.0 + gix-discover@0.32.0 + gix-features@0.38.2 + gix-filter@0.11.2 + gix-fs@0.11.0 + gix-glob@0.16.2 + gix-hash@0.14.2 + gix-hashtable@0.5.2 + gix-ignore@0.11.2 + gix-index@0.33.0 + gix-lock@14.0.0 + gix-macros@0.1.5 + gix-object@0.42.2 + gix-odb@0.61.0 + gix-pack@0.51.0 + gix-packetline-blocking@0.17.4 + gix-path@0.10.7 + gix-pathspec@0.7.5 + gix-quote@0.4.12 + gix-ref@0.44.0 + gix-refspec@0.23.0 + gix-revision@0.27.1 + gix-revwalk@0.13.1 + gix-sec@0.10.6 + gix-status@0.10.0 + gix-submodule@0.11.0 + gix-tempfile@14.0.0 + gix-trace@0.1.9 + gix-traverse@0.39.1 + gix-url@0.27.3 + gix-utils@0.1.12 + gix-validate@0.8.5 + gix-worktree@0.34.0 + gix@0.63.0 + globset@0.4.14 + grep-matcher@0.1.7 + grep-regex@0.1.12 + grep-searcher@0.1.13 + hashbrown@0.12.3 + hashbrown@0.14.5 + hermit-abi@0.2.6 + home@0.5.9 + iana-time-zone-haiku@0.1.1 + iana-time-zone@0.1.56 + idna@0.5.0 + ignore@0.4.22 + imara-diff@0.1.6 + indexmap@2.0.0 + indoc@2.0.5 + is-docker@0.2.0 + is-wsl@0.4.0 + itoa@1.0.6 + js-sys@0.3.61 + kstring@2.0.0 + libc@0.2.155 + libloading@0.8.4 + link-cplusplus@1.0.8 + linux-raw-sys@0.4.12 + lock_api@0.4.9 + log@0.4.22 + lsp-types@0.95.1 + memchr@2.6.3 + memmap2@0.9.0 + memoffset@0.9.0 + miniz_oxide@0.7.1 + mio@0.8.11 + nucleo-matcher@0.2.0 + nucleo@0.2.1 + num-conv@0.1.0 + num-traits@0.2.15 + num_cpus@1.15.0 + num_threads@0.1.6 + object@0.31.1 + once_cell@1.19.0 + open@5.2.0 + parking_lot@0.12.3 + parking_lot_core@0.9.7 + pathdiff@0.2.1 + percent-encoding@2.3.1 + pin-project-lite@0.2.12 + pin-utils@0.1.0 + powerfmt@0.2.0 + proc-macro2@1.0.76 + prodash@28.0.0 + pulldown-cmark@0.11.0 + quickcheck@1.0.3 + quote@1.0.35 + rand@0.8.5 + rand_core@0.6.4 + rayon-core@1.11.0 + rayon@1.7.0 + redox_syscall@0.2.16 + redox_syscall@0.4.1 + regex-automata@0.4.5 + regex-cursor@0.1.4 + regex-syntax@0.8.2 + regex@1.10.5 + ropey@1.6.1 + rustc-demangle@0.1.23 + rustix@0.38.34 + ryu@1.0.13 + same-file@1.0.6 + scopeguard@1.1.0 + scratch@1.0.5 + serde@1.0.204 + serde_derive@1.0.204 + serde_json@1.0.120 + serde_repr@0.1.12 + serde_spanned@0.6.6 + sha1_smol@1.0.0 + shell-words@1.1.0 + signal-hook-mio@0.2.3 + signal-hook-registry@1.4.1 + signal-hook-tokio@0.3.1 + signal-hook@0.3.17 + slab@0.4.8 + slotmap@1.0.7 + smallvec@1.13.2 + smartstring@1.0.1 + smawk@0.3.1 + socket2@0.5.5 + static_assertions@1.1.0 + str_indices@0.4.1 + syn@1.0.109 + syn@2.0.48 + tempfile@3.10.1 + termcolor@1.2.0 + termini@1.0.0 + textwrap@0.16.1 + thiserror-impl@1.0.61 + thiserror@1.0.61 + threadpool@1.8.1 + time-core@0.1.2 + time-macros@0.2.18 + time@0.3.36 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + tokio-macros@2.3.0 + tokio-stream@0.1.15 + tokio@1.38.0 + toml@0.8.14 + toml_datetime@0.6.6 + toml_edit@0.22.14 + tree-sitter@0.22.6 + unicase@2.6.0 + unicode-bidi@0.3.15 + unicode-bom@2.0.2 + unicode-general-category@0.6.0 + unicode-ident@1.0.8 + unicode-linebreak@0.1.5 + unicode-normalization@0.1.22 + unicode-segmentation@1.11.0 + unicode-width@0.1.12 + url@2.5.2 + version_check@0.9.4 + walkdir@2.4.0 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.84 + wasm-bindgen-macro-support@0.2.84 + wasm-bindgen-macro@0.2.84 + wasm-bindgen-shared@0.2.84 + wasm-bindgen@0.2.84 + which@6.0.1 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.5 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-sys@0.45.0 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-targets@0.42.2 + windows-targets@0.48.0 + windows-targets@0.52.0 + windows@0.48.0 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.0 + windows_aarch64_gnullvm@0.52.0 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.0 + windows_aarch64_msvc@0.52.0 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.0 + windows_i686_gnu@0.52.0 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.0 + windows_i686_msvc@0.52.0 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.0 + windows_x86_64_gnu@0.52.0 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.0 + windows_x86_64_gnullvm@0.52.0 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.0 + windows_x86_64_msvc@0.52.0 + winnow@0.6.5 + winsafe@0.0.19 + zerocopy-derive@0.7.31 + zerocopy@0.7.31 +" + +inherit cargo desktop shell-completion xdg + +DESCRIPTION="A post-modern text editor" +HOMEPAGE=" + https://helix-editor.com/ + https://github.com/helix-editor/helix +" +SRC_URI=" + https://github.com/helix-editor/helix/releases/download/${PV}/${P}-source.tar.xz -> ${P}.tar.xz + ${CARGO_CRATE_URIS} +" +S="${WORKDIR}" + +LICENSE="MPL-2.0" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 BSD Boost-1.0 ISC MIT MPL-2.0 MPL-2.0 Unicode-DFS-2016 + ZLIB +" +SLOT="0" +KEYWORDS="amd64" +IUSE="+grammar" + +RDEPEND="dev-vcs/git" + +pkg_setup() { + QA_FLAGS_IGNORED=" + usr/bin/hx + /usr/$(get_libdir)/helix/.*\.so + " + export HELIX_DEFAULT_RUNTIME="${EPREFIX}/usr/share/${PN}/runtime" + use grammar || export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 + rust_pkg_setup +} + +src_install() { + cargo_src_install --path helix-term + + insinto "/usr/$(get_libdir)/${PN}" + use grammar && doins runtime/grammars/*.so + rm -r runtime/grammars || die + use grammar && dosym "../../../$(get_libdir)/${PN}" "${EPREFIX}/usr/share/${PN}/runtime/grammars" + + insinto /usr/share/helix + doins -r runtime + + doicon -s 256x256 contrib/${PN}.png + domenu contrib/Helix.desktop + + insinto /usr/share/metainfo + doins contrib/Helix.appdata.xml + + newbashcomp contrib/completion/hx.bash hx + newzshcomp contrib/completion/hx.zsh _hx + dofishcomp contrib/completion/hx.fish + + DOCS=( + README.md + CHANGELOG.md + docs/ + ) + HTML_DOCS=( + book/ + ) + einstalldocs +} + +pkg_postinst() { + if ! use grammar ; then + einfo "Grammars are not installed yet. To fetch them, run:" + einfo "" + einfo " hx --grammar fetch && hx --grammar build" + fi + + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} diff --git a/app-editors/helix/helix-24.07.ebuild b/app-editors/helix/helix-24.07.ebuild deleted file mode 100644 index 89deeb654e5f..000000000000 --- a/app-editors/helix/helix-24.07.ebuild +++ /dev/null @@ -1,362 +0,0 @@ -# Copyright 2024-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.13.2 - -EAPI=8 - -CRATES=" - addr2line@0.20.0 - adler@1.0.2 - ahash@0.8.11 - aho-corasick@1.1.2 - allocator-api2@0.2.14 - android-tzdata@0.1.1 - android_system_properties@0.1.5 - anyhow@1.0.86 - arc-swap@1.7.1 - autocfg@1.1.0 - backtrace@0.3.68 - bitflags@1.3.2 - bitflags@2.6.0 - bstr@1.8.0 - bumpalo@3.12.0 - bytes@1.4.0 - cassowary@0.3.0 - cc@1.0.106 - cfg-if@1.0.0 - chardetng@0.1.17 - chrono@0.4.38 - clipboard-win@5.4.0 - clru@0.6.1 - codespan-reporting@0.11.1 - content_inspector@0.2.4 - core-foundation-sys@0.8.4 - cov-mark@1.1.0 - crc32fast@1.3.2 - crossbeam-channel@0.5.8 - crossbeam-deque@0.8.3 - crossbeam-epoch@0.9.15 - crossbeam-utils@0.8.16 - crossterm@0.27.0 - crossterm_winapi@0.9.1 - cxx-build@1.0.94 - cxx@1.0.94 - cxxbridge-flags@1.0.94 - cxxbridge-macro@1.0.94 - dashmap@5.4.0 - deranged@0.3.11 - dunce@1.0.4 - either@1.9.0 - encoding_rs@0.8.34 - encoding_rs_io@0.1.7 - equivalent@1.0.0 - errno@0.3.8 - error-code@3.0.0 - etcetera@0.8.0 - faster-hex@0.9.0 - fastrand@2.1.0 - fern@0.6.2 - filedescriptor@0.8.2 - filetime@0.2.23 - flate2@1.0.27 - fnv@1.0.7 - form_urlencoded@1.2.1 - futures-core@0.3.30 - futures-executor@0.3.30 - futures-task@0.3.30 - futures-util@0.3.30 - getrandom@0.2.9 - gimli@0.27.3 - gix-actor@0.31.2 - gix-attributes@0.22.2 - gix-bitmap@0.2.11 - gix-chunk@0.4.8 - gix-command@0.3.7 - gix-commitgraph@0.24.2 - gix-config-value@0.14.6 - gix-config@0.37.0 - gix-date@0.8.6 - gix-diff@0.44.0 - gix-dir@0.5.0 - gix-discover@0.32.0 - gix-features@0.38.2 - gix-filter@0.11.2 - gix-fs@0.11.0 - gix-glob@0.16.2 - gix-hash@0.14.2 - gix-hashtable@0.5.2 - gix-ignore@0.11.2 - gix-index@0.33.0 - gix-lock@14.0.0 - gix-macros@0.1.5 - gix-object@0.42.2 - gix-odb@0.61.0 - gix-pack@0.51.0 - gix-packetline-blocking@0.17.4 - gix-path@0.10.7 - gix-pathspec@0.7.5 - gix-quote@0.4.12 - gix-ref@0.44.0 - gix-refspec@0.23.0 - gix-revision@0.27.1 - gix-revwalk@0.13.1 - gix-sec@0.10.6 - gix-status@0.10.0 - gix-submodule@0.11.0 - gix-tempfile@14.0.0 - gix-trace@0.1.9 - gix-traverse@0.39.1 - gix-url@0.27.3 - gix-utils@0.1.12 - gix-validate@0.8.5 - gix-worktree@0.34.0 - gix@0.63.0 - globset@0.4.14 - grep-matcher@0.1.7 - grep-regex@0.1.12 - grep-searcher@0.1.13 - hashbrown@0.12.3 - hashbrown@0.14.5 - hermit-abi@0.2.6 - home@0.5.9 - iana-time-zone-haiku@0.1.1 - iana-time-zone@0.1.56 - idna@0.5.0 - ignore@0.4.22 - imara-diff@0.1.6 - indexmap@2.0.0 - indoc@2.0.5 - is-docker@0.2.0 - is-wsl@0.4.0 - itoa@1.0.6 - js-sys@0.3.61 - kstring@2.0.0 - libc@0.2.155 - libloading@0.8.4 - link-cplusplus@1.0.8 - linux-raw-sys@0.4.12 - lock_api@0.4.9 - log@0.4.22 - lsp-types@0.95.1 - memchr@2.6.3 - memmap2@0.9.0 - memoffset@0.9.0 - miniz_oxide@0.7.1 - mio@0.8.11 - nucleo-matcher@0.2.0 - nucleo@0.2.1 - num-conv@0.1.0 - num-traits@0.2.15 - num_cpus@1.15.0 - num_threads@0.1.6 - object@0.31.1 - once_cell@1.19.0 - open@5.2.0 - parking_lot@0.12.3 - parking_lot_core@0.9.7 - pathdiff@0.2.1 - percent-encoding@2.3.1 - pin-project-lite@0.2.12 - pin-utils@0.1.0 - powerfmt@0.2.0 - proc-macro2@1.0.76 - prodash@28.0.0 - pulldown-cmark@0.11.0 - quickcheck@1.0.3 - quote@1.0.35 - rand@0.8.5 - rand_core@0.6.4 - rayon-core@1.11.0 - rayon@1.7.0 - redox_syscall@0.2.16 - redox_syscall@0.4.1 - regex-automata@0.4.5 - regex-cursor@0.1.4 - regex-syntax@0.8.2 - regex@1.10.5 - ropey@1.6.1 - rustc-demangle@0.1.23 - rustix@0.38.34 - ryu@1.0.13 - same-file@1.0.6 - scopeguard@1.1.0 - scratch@1.0.5 - serde@1.0.204 - serde_derive@1.0.204 - serde_json@1.0.120 - serde_repr@0.1.12 - serde_spanned@0.6.6 - sha1_smol@1.0.0 - shell-words@1.1.0 - signal-hook-mio@0.2.3 - signal-hook-registry@1.4.1 - signal-hook-tokio@0.3.1 - signal-hook@0.3.17 - slab@0.4.8 - slotmap@1.0.7 - smallvec@1.13.2 - smartstring@1.0.1 - smawk@0.3.1 - socket2@0.5.5 - static_assertions@1.1.0 - str_indices@0.4.1 - syn@1.0.109 - syn@2.0.48 - tempfile@3.10.1 - termcolor@1.2.0 - termini@1.0.0 - textwrap@0.16.1 - thiserror-impl@1.0.61 - thiserror@1.0.61 - threadpool@1.8.1 - time-core@0.1.2 - time-macros@0.2.18 - time@0.3.36 - tinyvec@1.6.0 - tinyvec_macros@0.1.1 - tokio-macros@2.3.0 - tokio-stream@0.1.15 - tokio@1.38.0 - toml@0.8.14 - toml_datetime@0.6.6 - toml_edit@0.22.14 - tree-sitter@0.22.6 - unicase@2.6.0 - unicode-bidi@0.3.15 - unicode-bom@2.0.2 - unicode-general-category@0.6.0 - unicode-ident@1.0.8 - unicode-linebreak@0.1.5 - unicode-normalization@0.1.22 - unicode-segmentation@1.11.0 - unicode-width@0.1.12 - url@2.5.2 - version_check@0.9.4 - walkdir@2.4.0 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.84 - wasm-bindgen-macro-support@0.2.84 - wasm-bindgen-macro@0.2.84 - wasm-bindgen-shared@0.2.84 - wasm-bindgen@0.2.84 - which@6.0.1 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.5 - winapi-x86_64-pc-windows-gnu@0.4.0 - winapi@0.3.9 - windows-sys@0.45.0 - windows-sys@0.48.0 - windows-sys@0.52.0 - windows-targets@0.42.2 - windows-targets@0.48.0 - windows-targets@0.52.0 - windows@0.48.0 - windows_aarch64_gnullvm@0.42.2 - windows_aarch64_gnullvm@0.48.0 - windows_aarch64_gnullvm@0.52.0 - windows_aarch64_msvc@0.42.2 - windows_aarch64_msvc@0.48.0 - windows_aarch64_msvc@0.52.0 - windows_i686_gnu@0.42.2 - windows_i686_gnu@0.48.0 - windows_i686_gnu@0.52.0 - windows_i686_msvc@0.42.2 - windows_i686_msvc@0.48.0 - windows_i686_msvc@0.52.0 - windows_x86_64_gnu@0.42.2 - windows_x86_64_gnu@0.48.0 - windows_x86_64_gnu@0.52.0 - windows_x86_64_gnullvm@0.42.2 - windows_x86_64_gnullvm@0.48.0 - windows_x86_64_gnullvm@0.52.0 - windows_x86_64_msvc@0.42.2 - windows_x86_64_msvc@0.48.0 - windows_x86_64_msvc@0.52.0 - winnow@0.6.5 - winsafe@0.0.19 - zerocopy-derive@0.7.31 - zerocopy@0.7.31 -" - -inherit cargo desktop shell-completion xdg - -DESCRIPTION="A post-modern text editor" -HOMEPAGE=" - https://helix-editor.com/ - https://github.com/helix-editor/helix -" -SRC_URI=" - https://github.com/helix-editor/helix/releases/download/${PV}/${P}-source.tar.xz -> ${P}.tar.xz - ${CARGO_CRATE_URIS} -" -S="${WORKDIR}" - -LICENSE="MPL-2.0" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 BSD Boost-1.0 ISC MIT MPL-2.0 MPL-2.0 Unicode-DFS-2016 - ZLIB -" -SLOT="0" -KEYWORDS="amd64" -IUSE="+grammar" - -RDEPEND="dev-vcs/git" - -pkg_setup() { - QA_FLAGS_IGNORED=" - usr/bin/hx - /usr/$(get_libdir)/helix/.*\.so - " - export HELIX_DEFAULT_RUNTIME="${EPREFIX}/usr/share/${PN}/runtime" - use grammar || export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 -} - -src_install() { - cargo_src_install --path helix-term - - insinto "/usr/$(get_libdir)/${PN}" - use grammar && doins runtime/grammars/*.so - rm -r runtime/grammars || die - use grammar && dosym "../../../$(get_libdir)/${PN}" "${EPREFIX}/usr/share/${PN}/runtime/grammars" - - insinto /usr/share/helix - doins -r runtime - - doicon -s 256x256 contrib/${PN}.png - domenu contrib/Helix.desktop - - insinto /usr/share/metainfo - doins contrib/Helix.appdata.xml - - newbashcomp contrib/completion/hx.bash hx - newzshcomp contrib/completion/hx.zsh _hx - dofishcomp contrib/completion/hx.fish - - DOCS=( - README.md - CHANGELOG.md - docs/ - ) - HTML_DOCS=( - book/ - ) - einstalldocs -} - -pkg_postinst() { - if ! use grammar ; then - einfo "Grammars are not installed yet. To fetch them, run:" - einfo "" - einfo " hx --grammar fetch && hx --grammar build" - fi - - xdg_desktop_database_update - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update -} diff --git a/app-editors/mousepad/Manifest b/app-editors/mousepad/Manifest index 0b7df5fa778d..4ca6498e0e46 100644 --- a/app-editors/mousepad/Manifest +++ b/app-editors/mousepad/Manifest @@ -1,5 +1,3 @@ -DIST mousepad-0.6.2.tar.bz2 1402314 BLAKE2B c783ec58317ca3c0eaa0023ade3043f4aa4f020a12c0258fe0cf1e2303aa07dfbc67b9aa0178ca9282da98754103fda6c90ba034fa4057dd855b400c0d371085 SHA512 086f60f6f405290ed76366f4c5195e9c8f9c5058d1892200a73e48d6378428efe47f2038e3eddb81186e22dd87d57580559a556b1b22f202b6f056c7f90b64ea DIST mousepad-0.6.3.tar.bz2 1428583 BLAKE2B 73a0eb0cfecaa88c6d3508034561206ff1a24139bbdea4cb677ec79de30a59386cf7beb7fd540d31c0a3ec4804ba2001b13470baf0bbec19dc4cf1cc315479ee SHA512 a47e9c0d5b039444ee455e80d0ab4642d5c29d6e5632ec4fccfcef061b4bf40a1709ea73b092b02e915e1796d1593ede68e59b9fe373e127302d34f82c9beae3 -EBUILD mousepad-0.6.2.ebuild 1260 BLAKE2B 63cd9db299c6a28506cf4bab78caace6efed665a7429d7a963364947dcec2c2e08d6e531360f4a859e179e137c0c29466864056cbe78204133bedc4928ae8125 SHA512 615adcfad923c131c3bec885a44d4b808b24f9dd24c99d13f5bd9110fb4ef44d7a3c258a2b2dd36d8b18fec6993ad8184a52fae82f4bb1691c9c607b29b70ca0 -EBUILD mousepad-0.6.3.ebuild 1266 BLAKE2B 692be2075715cc67eb39c60d313a20e8cc2b40da1d27eeabe2002d00358b01afed9752bf3f0a55b84e9c50636c72f777568b15f418b6d0e43e6aaefaeeafedb6 SHA512 3402e9da0211c1e2b29b5c7f3ab0faac0e38240503e53cf5694d53589d44b491727a59c354c21284eba4dd546ca6578a6a1a93f8fd1cd6b4953097e8b4c8aab2 +EBUILD mousepad-0.6.3.ebuild 1260 BLAKE2B 63cd9db299c6a28506cf4bab78caace6efed665a7429d7a963364947dcec2c2e08d6e531360f4a859e179e137c0c29466864056cbe78204133bedc4928ae8125 SHA512 615adcfad923c131c3bec885a44d4b808b24f9dd24c99d13f5bd9110fb4ef44d7a3c258a2b2dd36d8b18fec6993ad8184a52fae82f4bb1691c9c607b29b70ca0 MISC metadata.xml 318 BLAKE2B 53e8d0080a2643b6d5191012a6c86316d926678a85190371ce498705fc142f83d1a325a935a75f8f29c19c878a677ba96a35d5e8702a23c4f1e7ec210dbeef3e SHA512 89a0b309c4a205b97627be6c0d3fb1a280d9c4dfd2107c09854ef6a912e38e0dc2da39e0768d5103b81b72bf84eed7b1014084c52ff9482f4acc13e8d1a3def3 diff --git a/app-editors/mousepad/mousepad-0.6.2.ebuild b/app-editors/mousepad/mousepad-0.6.2.ebuild deleted file mode 100644 index ac76f8ba3fba..000000000000 --- a/app-editors/mousepad/mousepad-0.6.2.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit gnome2-utils xdg-utils - -DESCRIPTION="GTK+-based editor for the Xfce Desktop Environment" -HOMEPAGE=" - https://docs.xfce.org/apps/mousepad/start - https://gitlab.xfce.org/apps/mousepad/ -" -SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv x86" -IUSE="policykit spell +shortcuts" - -DEPEND=" - >=dev-libs/glib-2.56.2 - >=x11-libs/gtk+-3.22:3 - >=x11-libs/gtksourceview-4.0.0:4 - policykit? ( sys-auth/polkit ) - spell? ( app-text/gspell ) - shortcuts? ( >=xfce-base/libxfce4ui-4.17.5:= ) -" -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - dev-lang/perl - dev-util/intltool - sys-devel/gettext - virtual/pkgconfig -" - -src_configure() { - local myconf=( - --enable-gtksourceview4 - $(use_enable policykit polkit) - $(use_enable spell plugin-gspell) - $(use_enable shortcuts plugin-shortcuts) - ) - econf "${myconf[@]}" -} - -src_install() { - default - find "${D}" -name '*.la' -delete || die -} - -pkg_postinst() { - gnome2_schemas_update - xdg_desktop_database_update - xdg_icon_cache_update -} - -pkg_postrm() { - gnome2_schemas_update - xdg_desktop_database_update - xdg_icon_cache_update -} diff --git a/app-editors/mousepad/mousepad-0.6.3.ebuild b/app-editors/mousepad/mousepad-0.6.3.ebuild index 9ee8b38d6546..ac76f8ba3fba 100644 --- a/app-editors/mousepad/mousepad-0.6.3.ebuild +++ b/app-editors/mousepad/mousepad-0.6.3.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2" LICENSE="GPL-2+" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv x86" IUSE="policykit spell +shortcuts" DEPEND=" diff --git a/app-editors/zed/Manifest b/app-editors/zed/Manifest index 3c5c1bc020a4..94420092cffc 100644 --- a/app-editors/zed/Manifest +++ b/app-editors/zed/Manifest @@ -23,7 +23,7 @@ DIST zed-0.159.10-crates.tar.xz 94070480 BLAKE2B e71cbd177b8bda76f2a43b84e93c266 DIST zed-0.159.10.tar.gz 13112831 BLAKE2B 6ce82efb4fd6a637d8951b59a892cf70e7d09c7659d75affc39930fd6f97e249f599cd7fbef7410aed3bfc7e85ea529cc536c073c4761c61980af5762bbf3230 SHA512 dcd2fbd1f61eacaadaa5db418f88fd7bceb6e5e360ad3098adaf574a1f874c5d0d1ce4de52f274b6be9df32c4fd815d0f519f413a8f7297312bd191ff30f90eb DIST zed-0.160.7-crates.tar.xz 94131964 BLAKE2B f7f0887b90c660c807a0a59d0c8fd11524de7511942a0779f36a185bcd8de1bfe36ce68618bafb58e56fdeae4bf84274a600c79cd0b75f854e1764d683210ffe SHA512 cb422582835923825c514ca6e4174c79fc94970a2182b46019d73dd8e2357c02a5d6a5dd7bd5d6007663b413d81e3d0c473b8e847a14435e2422818adac04ddf DIST zed-0.160.7.tar.gz 13122247 BLAKE2B 944333d478f6c1595ee6efc70ca3a1b01fd242b51e5e289d985cb9df3c91cda1ae2b6fc497104656f36625bdd59d618b13b1f6f6060ac898626433947231bb34 SHA512 aa16f6ecd17371330b15281418581027f868819af17ed7b7c1dda1c1abbe05d9306d13b9aa94cdbe4ec533c24f8e37132d08a9497b07be0b5c225c3f3c3687d4 -EBUILD zed-0.155.2.ebuild 5274 BLAKE2B 3934653543a52b14c3e1e1cfc1105fa9fb1d3e253a08f285a09d3db57cd459349d349b08ed5c49f20266f3b31935a04fe164d75e026de600377018c94aa51466 SHA512 3cf71e0636412bf276c1788f8cc995f96a7cf552a6c3e1d8681da66d2b708b49354bffaf5af77a14aca8cd9c9bb1e6306836c01e7e991f6460d60008d6552e76 -EBUILD zed-0.159.10.ebuild 9386 BLAKE2B b5f66e0631d26e5a4478385d11524c542f2b4c9d40c27e0419d3609d3ee57b36862ca4d2c506d62f17b4b9266e4cd1ad1f6ee019bae0e0681fee20b6a908c88e SHA512 94763fe2b3036bc7b14285ba08a2ab4107cfffa77750434fd128df45a9bd5fc1624485dfe8dde168df883ddeeab6bc61b628c2478cb312217f58d44df51a19fc -EBUILD zed-0.160.7.ebuild 9386 BLAKE2B b5f66e0631d26e5a4478385d11524c542f2b4c9d40c27e0419d3609d3ee57b36862ca4d2c506d62f17b4b9266e4cd1ad1f6ee019bae0e0681fee20b6a908c88e SHA512 94763fe2b3036bc7b14285ba08a2ab4107cfffa77750434fd128df45a9bd5fc1624485dfe8dde168df883ddeeab6bc61b628c2478cb312217f58d44df51a19fc +EBUILD zed-0.155.2-r1.ebuild 5326 BLAKE2B 66bcab7477d6b53b4f99c38c088c2cdd1f42ee6ceb952b89e0e1e760f1840100340a07672d89a8952387650572b30620e4b445abc592aeb9378404b534cf640d SHA512 c1555d5ea8e3cb8af810cbf437d8033b379acd0a7bc019528e781696718d88943c5b1915e9458ae842916fcc904aa03dbcbe32b2d6804cd72deed21c344fd5e5 +EBUILD zed-0.159.10-r1.ebuild 9438 BLAKE2B 4ce00bd00caca8a245574631ad43b636b78c874453c76e78f12397ae4304f70f3d31f719b542fae1f5a8a3a0aa948babcb5a791e4c9cf2431a94d9cc31cddffc SHA512 790d62b8cb8f65c56538725d19f045270952b3bc92f37e29ff7cd2cbf18d83fd257b69bdfdb501d83e1faaa8a769d27d1e31a62d143903900d99cc0e4e4c401f +EBUILD zed-0.160.7-r1.ebuild 9438 BLAKE2B 4ce00bd00caca8a245574631ad43b636b78c874453c76e78f12397ae4304f70f3d31f719b542fae1f5a8a3a0aa948babcb5a791e4c9cf2431a94d9cc31cddffc SHA512 790d62b8cb8f65c56538725d19f045270952b3bc92f37e29ff7cd2cbf18d83fd257b69bdfdb501d83e1faaa8a769d27d1e31a62d143903900d99cc0e4e4c401f MISC metadata.xml 575 BLAKE2B 3793593f06424fd3986e23cd148b663bfcbf5c1dc0f76847a3991bbdde8badfdc863d0994ba1b59fc0e886243ded4e4421da4b4bf6d2951887801f78b0d6d290 SHA512 b0660a1a36d59dea6b9a6e25a239f0484e1cbf98a6569dd17d6bae1145f12d7e3ac2609bbce32627bf7ca6161581cd82c087d7deb17dd662c23bd81db6465a02 diff --git a/app-editors/zed/zed-0.155.2-r1.ebuild b/app-editors/zed/zed-0.155.2-r1.ebuild new file mode 100644 index 000000000000..7ac2746fed38 --- /dev/null +++ b/app-editors/zed/zed-0.155.2-r1.ebuild @@ -0,0 +1,142 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.3 + +EAPI=8 + +CRATES=" +" + +declare -A GIT_CRATES=( + [alacritty_terminal]='https://github.com/alacritty/alacritty;91d034ff8b53867143c005acfaa14609147c9a2c;alacritty-%commit%/alacritty_terminal' + [async-pipe]='https://github.com/zed-industries/async-pipe-rs;82d00a04211cf4e1236029aa03e6b6ce2a74c553;async-pipe-rs-%commit%' + [blade-graphics]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-graphics' + [blade-macros]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-macros' + [blade-util]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-util' + [cosmic-text]='https://github.com/pop-os/cosmic-text;542b20ca4376a3b5de5fa629db1a4ace44e18e0c;cosmic-text-%commit%' + [font-kit]='https://github.com/zed-industries/font-kit;40391b7c0041d8a8572af2afa3de32ae088f0120;font-kit-%commit%' + [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%' + [protols-tree-sitter-proto]='https://github.com/zed-industries/tree-sitter-proto;0848bd30a64be48772e15fbb9d5ba8c0cc5772ad;tree-sitter-proto-%commit%' + [tree-sitter-gomod]='https://github.com/zed-industries/tree-sitter-go-mod;a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca;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/zed-industries/tree-sitter-markdown;4cfa6aad6b75052a5077c80fd934757d9267d81b;tree-sitter-markdown-%commit%' + [tree-sitter-yaml]='https://github.com/zed-industries/tree-sitter-yaml;baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a;tree-sitter-yaml-%commit%' + [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 ) +RUST_MIN_VER="1.80.1" +RUST_NEEDS_LLVM=1 + +inherit llvm-r1 cargo check-reqs desktop flag-o-matic 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 + ${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-DFS-2016 ZLIB +" +SLOT="0" +KEYWORDS="~amd64" +CHECKREQS_DISK_BUILD="8G" +CHECKREQS_MEMORY="16G" + +DEPEND=" + app-arch/zstd:= + dev-db/sqlite:3 + dev-libs/libgit2:= + 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-misc/curl + sys-libs/zlib + x11-libs/libxcb:= + x11-libs/libxkbcommon[X] +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-util/vulkan-headers + sys-devel/gettext + sys-devel/mold + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT}= + sys-devel/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" + 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 +} + +src_configure() { + cargo_src_configure --all-features +} + +src_compile() { + export RELEASE_VERSION="${PV}" + export ZED_UPDATE_EXPLANATION='Updates are handled by portage' + 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.155.2.ebuild b/app-editors/zed/zed-0.155.2.ebuild deleted file mode 100644 index b4cace50d25f..000000000000 --- a/app-editors/zed/zed-0.155.2.ebuild +++ /dev/null @@ -1,139 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.13.3 - -EAPI=8 - -CRATES=" -" - -declare -A GIT_CRATES=( - [alacritty_terminal]='https://github.com/alacritty/alacritty;91d034ff8b53867143c005acfaa14609147c9a2c;alacritty-%commit%/alacritty_terminal' - [async-pipe]='https://github.com/zed-industries/async-pipe-rs;82d00a04211cf4e1236029aa03e6b6ce2a74c553;async-pipe-rs-%commit%' - [blade-graphics]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-graphics' - [blade-macros]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-macros' - [blade-util]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-util' - [cosmic-text]='https://github.com/pop-os/cosmic-text;542b20ca4376a3b5de5fa629db1a4ace44e18e0c;cosmic-text-%commit%' - [font-kit]='https://github.com/zed-industries/font-kit;40391b7c0041d8a8572af2afa3de32ae088f0120;font-kit-%commit%' - [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%' - [protols-tree-sitter-proto]='https://github.com/zed-industries/tree-sitter-proto;0848bd30a64be48772e15fbb9d5ba8c0cc5772ad;tree-sitter-proto-%commit%' - [tree-sitter-gomod]='https://github.com/zed-industries/tree-sitter-go-mod;a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca;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/zed-industries/tree-sitter-markdown;4cfa6aad6b75052a5077c80fd934757d9267d81b;tree-sitter-markdown-%commit%' - [tree-sitter-yaml]='https://github.com/zed-industries/tree-sitter-yaml;baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a;tree-sitter-yaml-%commit%' - [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 ) - -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 - ${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-DFS-2016 ZLIB -" -SLOT="0" -KEYWORDS="~amd64" -CHECKREQS_DISK_BUILD="8G" -CHECKREQS_MEMORY="16G" - -DEPEND=" - app-arch/zstd:= - dev-db/sqlite:3 - dev-libs/libgit2:= - 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-misc/curl - sys-libs/zlib - x11-libs/libxcb:= - x11-libs/libxkbcommon[X] -" -RDEPEND="${DEPEND}" -BDEPEND=" - >=virtual/rust-1.80.0 - dev-util/vulkan-headers - sys-devel/gettext - sys-devel/mold - $(llvm_gen_dep ' - sys-devel/clang:${LLVM_SLOT}= - sys-devel/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" -} - -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 -} - -src_configure() { - cargo_src_configure --all-features -} - -src_compile() { - export RELEASE_VERSION="${PV}" - export ZED_UPDATE_EXPLANATION='Updates are handled by portage' - 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.159.10-r1.ebuild b/app-editors/zed/zed-0.159.10-r1.ebuild new file mode 100644 index 000000000000..6b5c07a29c86 --- /dev/null +++ b/app-editors/zed/zed-0.159.10-r1.ebuild @@ -0,0 +1,171 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.3 + +EAPI=8 + +CRATES=" +" + +declare -A GIT_CRATES=( + [alacritty_terminal]='https://github.com/alacritty/alacritty;91d034ff8b53867143c005acfaa14609147c9a2c;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;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-graphics' + [blade-macros]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-macros' + [blade-util]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-util' + [cosmic-text]='https://github.com/pop-os/cosmic-text;542b20ca4376a3b5de5fa629db1a4ace44e18e0c;cosmic-text-%commit%' + [font-kit]='https://github.com/zed-industries/font-kit;40391b7c0041d8a8572af2afa3de32ae088f0120;font-kit-%commit%' + [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%' + [pet-conda]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-conda' + [pet-core]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-core' + [pet-env-var-path]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-env-var-path' + [pet-fs]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-fs' + [pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-global-virtualenvs' + [pet-homebrew]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-homebrew' + [pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-jsonrpc' + [pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-linux-global-python' + [pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-commandlinetools' + [pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-python-org' + [pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-xcode' + [pet-pipenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-pipenv' + [pet-poetry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-poetry' + [pet-pyenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-pyenv' + [pet-python-utils]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-python-utils' + [pet-reporter]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-reporter' + [pet-telemetry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-telemetry' + [pet-venv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-venv' + [pet-virtualenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-virtualenv' + [pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-virtualenvwrapper' + [pet-windows-registry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-windows-registry' + [pet-windows-store]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-windows-store' + [pet]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet' + [reqwest]='https://github.com/zed-industries/reqwest;fd110f6998da16bbca97b6dddda9be7827c50e29;reqwest-%commit%' + [tree-sitter-gomod]='https://github.com/zed-industries/tree-sitter-go-mod;a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca;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%' + [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 ) +RUST_MIN_VER="1.80.1" +RUST_NEEDS_LLVM=1 + +inherit llvm-r1 cargo check-reqs desktop flag-o-matic 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 + ${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-DFS-2016 ZLIB +" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gles" +CHECKREQS_DISK_BUILD="8G" +CHECKREQS_MEMORY="16G" + +DEPEND=" + app-arch/zstd:= + dev-db/sqlite:3 + dev-libs/libgit2:= + 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-misc/curl + sys-libs/zlib + x11-libs/libxcb:= + x11-libs/libxkbcommon[X] +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-build/cmake + dev-util/vulkan-headers + sys-devel/gettext + sys-devel/mold + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT}= + sys-devel/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" + 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 +} + +src_configure() { + cargo_src_configure --all-features +} + +src_compile() { + export RELEASE_VERSION="${PV}" + export ZED_UPDATE_EXPLANATION='Updates are handled by portage' + 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.159.10.ebuild b/app-editors/zed/zed-0.159.10.ebuild deleted file mode 100644 index 63b11db2c3dd..000000000000 --- a/app-editors/zed/zed-0.159.10.ebuild +++ /dev/null @@ -1,168 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.13.3 - -EAPI=8 - -CRATES=" -" - -declare -A GIT_CRATES=( - [alacritty_terminal]='https://github.com/alacritty/alacritty;91d034ff8b53867143c005acfaa14609147c9a2c;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;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-graphics' - [blade-macros]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-macros' - [blade-util]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-util' - [cosmic-text]='https://github.com/pop-os/cosmic-text;542b20ca4376a3b5de5fa629db1a4ace44e18e0c;cosmic-text-%commit%' - [font-kit]='https://github.com/zed-industries/font-kit;40391b7c0041d8a8572af2afa3de32ae088f0120;font-kit-%commit%' - [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%' - [pet-conda]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-conda' - [pet-core]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-core' - [pet-env-var-path]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-env-var-path' - [pet-fs]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-fs' - [pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-global-virtualenvs' - [pet-homebrew]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-homebrew' - [pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-jsonrpc' - [pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-linux-global-python' - [pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-commandlinetools' - [pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-python-org' - [pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-xcode' - [pet-pipenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-pipenv' - [pet-poetry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-poetry' - [pet-pyenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-pyenv' - [pet-python-utils]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-python-utils' - [pet-reporter]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-reporter' - [pet-telemetry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-telemetry' - [pet-venv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-venv' - [pet-virtualenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-virtualenv' - [pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-virtualenvwrapper' - [pet-windows-registry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-windows-registry' - [pet-windows-store]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-windows-store' - [pet]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet' - [reqwest]='https://github.com/zed-industries/reqwest;fd110f6998da16bbca97b6dddda9be7827c50e29;reqwest-%commit%' - [tree-sitter-gomod]='https://github.com/zed-industries/tree-sitter-go-mod;a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca;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%' - [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 ) - -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 - ${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-DFS-2016 ZLIB -" -SLOT="0" -KEYWORDS="~amd64" -IUSE="gles" -CHECKREQS_DISK_BUILD="8G" -CHECKREQS_MEMORY="16G" - -DEPEND=" - app-arch/zstd:= - dev-db/sqlite:3 - dev-libs/libgit2:= - 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-misc/curl - sys-libs/zlib - x11-libs/libxcb:= - x11-libs/libxkbcommon[X] -" -RDEPEND="${DEPEND}" -BDEPEND=" - dev-build/cmake - dev-util/vulkan-headers - sys-devel/gettext - sys-devel/mold - >=virtual/rust-1.80.0 - $(llvm_gen_dep ' - sys-devel/clang:${LLVM_SLOT}= - sys-devel/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" - if use gles; then - export RUSTFLAGS="${RUSTFLAGS} --cfg gles" - fi -} - -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 -} - -src_configure() { - cargo_src_configure --all-features -} - -src_compile() { - export RELEASE_VERSION="${PV}" - export ZED_UPDATE_EXPLANATION='Updates are handled by portage' - 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.160.7-r1.ebuild b/app-editors/zed/zed-0.160.7-r1.ebuild new file mode 100644 index 000000000000..6b5c07a29c86 --- /dev/null +++ b/app-editors/zed/zed-0.160.7-r1.ebuild @@ -0,0 +1,171 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.13.3 + +EAPI=8 + +CRATES=" +" + +declare -A GIT_CRATES=( + [alacritty_terminal]='https://github.com/alacritty/alacritty;91d034ff8b53867143c005acfaa14609147c9a2c;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;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-graphics' + [blade-macros]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-macros' + [blade-util]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-util' + [cosmic-text]='https://github.com/pop-os/cosmic-text;542b20ca4376a3b5de5fa629db1a4ace44e18e0c;cosmic-text-%commit%' + [font-kit]='https://github.com/zed-industries/font-kit;40391b7c0041d8a8572af2afa3de32ae088f0120;font-kit-%commit%' + [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%' + [pet-conda]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-conda' + [pet-core]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-core' + [pet-env-var-path]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-env-var-path' + [pet-fs]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-fs' + [pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-global-virtualenvs' + [pet-homebrew]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-homebrew' + [pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-jsonrpc' + [pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-linux-global-python' + [pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-commandlinetools' + [pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-python-org' + [pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-xcode' + [pet-pipenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-pipenv' + [pet-poetry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-poetry' + [pet-pyenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-pyenv' + [pet-python-utils]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-python-utils' + [pet-reporter]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-reporter' + [pet-telemetry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-telemetry' + [pet-venv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-venv' + [pet-virtualenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-virtualenv' + [pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-virtualenvwrapper' + [pet-windows-registry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-windows-registry' + [pet-windows-store]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-windows-store' + [pet]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet' + [reqwest]='https://github.com/zed-industries/reqwest;fd110f6998da16bbca97b6dddda9be7827c50e29;reqwest-%commit%' + [tree-sitter-gomod]='https://github.com/zed-industries/tree-sitter-go-mod;a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca;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%' + [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 ) +RUST_MIN_VER="1.80.1" +RUST_NEEDS_LLVM=1 + +inherit llvm-r1 cargo check-reqs desktop flag-o-matic 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 + ${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-DFS-2016 ZLIB +" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gles" +CHECKREQS_DISK_BUILD="8G" +CHECKREQS_MEMORY="16G" + +DEPEND=" + app-arch/zstd:= + dev-db/sqlite:3 + dev-libs/libgit2:= + 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-misc/curl + sys-libs/zlib + x11-libs/libxcb:= + x11-libs/libxkbcommon[X] +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-build/cmake + dev-util/vulkan-headers + sys-devel/gettext + sys-devel/mold + $(llvm_gen_dep ' + sys-devel/clang:${LLVM_SLOT}= + sys-devel/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" + 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 +} + +src_configure() { + cargo_src_configure --all-features +} + +src_compile() { + export RELEASE_VERSION="${PV}" + export ZED_UPDATE_EXPLANATION='Updates are handled by portage' + 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.160.7.ebuild b/app-editors/zed/zed-0.160.7.ebuild deleted file mode 100644 index 63b11db2c3dd..000000000000 --- a/app-editors/zed/zed-0.160.7.ebuild +++ /dev/null @@ -1,168 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.13.3 - -EAPI=8 - -CRATES=" -" - -declare -A GIT_CRATES=( - [alacritty_terminal]='https://github.com/alacritty/alacritty;91d034ff8b53867143c005acfaa14609147c9a2c;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;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-graphics' - [blade-macros]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-macros' - [blade-util]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-util' - [cosmic-text]='https://github.com/pop-os/cosmic-text;542b20ca4376a3b5de5fa629db1a4ace44e18e0c;cosmic-text-%commit%' - [font-kit]='https://github.com/zed-industries/font-kit;40391b7c0041d8a8572af2afa3de32ae088f0120;font-kit-%commit%' - [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%' - [pet-conda]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-conda' - [pet-core]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-core' - [pet-env-var-path]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-env-var-path' - [pet-fs]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-fs' - [pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-global-virtualenvs' - [pet-homebrew]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-homebrew' - [pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-jsonrpc' - [pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-linux-global-python' - [pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-commandlinetools' - [pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-python-org' - [pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-xcode' - [pet-pipenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-pipenv' - [pet-poetry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-poetry' - [pet-pyenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-pyenv' - [pet-python-utils]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-python-utils' - [pet-reporter]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-reporter' - [pet-telemetry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-telemetry' - [pet-venv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-venv' - [pet-virtualenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-virtualenv' - [pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-virtualenvwrapper' - [pet-windows-registry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-windows-registry' - [pet-windows-store]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-windows-store' - [pet]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet' - [reqwest]='https://github.com/zed-industries/reqwest;fd110f6998da16bbca97b6dddda9be7827c50e29;reqwest-%commit%' - [tree-sitter-gomod]='https://github.com/zed-industries/tree-sitter-go-mod;a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca;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%' - [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 ) - -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 - ${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-DFS-2016 ZLIB -" -SLOT="0" -KEYWORDS="~amd64" -IUSE="gles" -CHECKREQS_DISK_BUILD="8G" -CHECKREQS_MEMORY="16G" - -DEPEND=" - app-arch/zstd:= - dev-db/sqlite:3 - dev-libs/libgit2:= - 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-misc/curl - sys-libs/zlib - x11-libs/libxcb:= - x11-libs/libxkbcommon[X] -" -RDEPEND="${DEPEND}" -BDEPEND=" - dev-build/cmake - dev-util/vulkan-headers - sys-devel/gettext - sys-devel/mold - >=virtual/rust-1.80.0 - $(llvm_gen_dep ' - sys-devel/clang:${LLVM_SLOT}= - sys-devel/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" - if use gles; then - export RUSTFLAGS="${RUSTFLAGS} --cfg gles" - fi -} - -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 -} - -src_configure() { - cargo_src_configure --all-features -} - -src_compile() { - export RELEASE_VERSION="${PV}" - export ZED_UPDATE_EXPLANATION='Updates are handled by portage' - 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