commit: 99fb8fecfebf6655f213b634f56e9590462e851d Author: idealseal <realidealseal <AT> protonmail <DOT> com> AuthorDate: Mon Jul 21 19:27:49 2025 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> CommitDate: Tue Jul 22 16:57:54 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99fb8fec
app-editors/helix: add 25.07.1 Signed-off-by: idealseal <realidealseal <AT> protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43023 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> app-editors/helix/Manifest | 2 + app-editors/helix/helix-25.07.1.ebuild | 91 ++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/app-editors/helix/Manifest b/app-editors/helix/Manifest index 6bd9ae45d725..fa8f5e0fc207 100644 --- a/app-editors/helix/Manifest +++ b/app-editors/helix/Manifest @@ -113,6 +113,8 @@ DIST hashbrown-0.14.5.crate 141498 BLAKE2B 7d7f31b6377c901de12f78f0004a347e3e3b9 DIST helix-24.07.tar.xz 142746572 BLAKE2B 0214fb8fd07b83ba45d90a22bf232ddaaf20e17be5914e86946cafcfd391ac5ecaa6042c558d3c74a3f41f670572ac4925ec24a5acee3f57fdf60d18536a8967 SHA512 fa64e046d165cf1fa6c5e4a6ac37ea43d3829193e178e46d604efa2b11e4bf0fbe8b6526853936c952deba26e1781dad39f3d48b168c564c205d5df3629843ca DIST helix-25.01.1-crates.tar.xz 26033992 BLAKE2B d0038cbdcec7cab740cfcde8f264329c475411ae96ecaf8c913635aa0a92fb2af6a9d0cdf3e051f32c06b84d9842a8044c473997a045a73e965f442ff8709bad SHA512 5e3c14e69ade7b24f639ddb8be7426fffa1e3d9b90ac1359e464a568434090f8864a68c790e65825547680ce2defebc8adf163f41d167dae8dce4b569429b776 DIST helix-25.01.1.tar.xz 151110492 BLAKE2B fe8b78c3e41ebfdafdb52683deb6f353710425d7ba403672ea7462f12247401b559793156108817d6e51904649eeddb3a0e06d9943788c1c7b8379563c75b3f0 SHA512 154387a4c1b27e99534c3eb67bf268916f46b99579d5d1800a5cd9f04d10143366840d549b54c13fc487e43f6f7afebd4e5c719b4779ba817691b35e1e93b288 +DIST helix-25.07.1-crates.tar.xz 20449420 BLAKE2B 8ab48b077ce1bd851831ad7bb36e71ef33f4cceea4cece134d2c2985911eb952c4df68ca61ffc870e30a7f0253483c4fd51a2735ce8e60b206f68cc797d46529 SHA512 51dff79d1e798fd2be2ff3f428a11af607b2620d19bb5afefcf48b9bbc8abfd4b284c98faf720435c14313ff1783a1391ed369bb620a45291a8e6832092d9351 +DIST helix-25.07.1.tar.xz 170088608 BLAKE2B 3320a9f24a06c2e856039059bdfdd59dac1c113932d4ef39627aa1d07d2f3482f8d9210dfdfcd3e4b74f2f05af269d4378f33a9ae0d9ad37868bfb14cf62b72a SHA512 05431c7c1992752182275d7d98a5b988c3fc667cc2b37b2ebdc85b645e73e78458e306af665b901db04c9e58fadc52786bcffd962c41bf846136f54545b3b863 DIST hermit-abi-0.2.6.crate 13027 BLAKE2B 4df5306639511a5f69594e903f8ce62482cbbfbfe272a91a12f407483dbac4e87c2d7e5668cc06ca5c0fc149ca93a3152fe6ad4bb3b96cacf56a22cb635e5b7f SHA512 bad8442bb822a9c99f6536db16523c80f5139af6a139bcc359c03725c59ff935816e2ecc5c491dc362ac75ab2dff41ab1e9dd29431f5e9a109b60eb9b7a8dc28 DIST home-0.5.9.crate 8760 BLAKE2B 02277a6d0e54a88e62a50ceb5b50b08cd5dc1ca5ddc17a799db0f49a17fee8560df53f616ae22cd16020ae2a89ce7c6ec22e5e2c0d513405bc2859a6e3ec61f9 SHA512 3f1f7b619f1a47694cda92321a11d66ebbb2dc0b0c33446a7a4b886f547ee88231b61c038de04bb82acd50e617f19b5085893b8401206d32cd54502033e04bf1 DIST iana-time-zone-0.1.56.crate 19517 BLAKE2B 88a83a65b2e17afff6491953c1ec508168e3cb0d720992c7958aa98ffec263d3b32f4ad07664703b1e429d96faa211a50c557d5a1398a849c45ab9df796f8e4c SHA512 d1bc3ccc17c6d3abc44f8662a15b5c84f5381f90dceb5e14a826595706178ba0f8cbf7cfa86d3b7e967a51ef75a27cb868fda7a3531be9bd6e77e813580131e8 diff --git a/app-editors/helix/helix-25.07.1.ebuild b/app-editors/helix/helix-25.07.1.ebuild new file mode 100644 index 000000000000..06a8aa64aed0 --- /dev/null +++ b/app-editors/helix/helix-25.07.1.ebuild @@ -0,0 +1,91 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES="" + +RUST_MIN_VER="1.82" + +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 + https://github.com/gentoo-crate-dist/helix/releases/download/${PV}/${P}-crates.tar.xz +" +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)/${PN}/.*\.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 -r "/usr/$(get_libdir)/${PN}" "/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 +}
