app-editors/helix: add 25.01.1

Also: Created vendor tarball to reduce ebuild and Manifest size

Signed-off-by: Jonas Frei <freijon@pm.me>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Jonas Frei
2025-01-20 06:53:12 +01:00
committed by Joonas Niilola
parent f83aa51c4f
commit 78b29f23b2
2 changed files with 92 additions and 0 deletions

View File

@@ -199,6 +199,8 @@ DIST grep-searcher-0.1.14.crate 45073 BLAKE2B 351ef9d31b9db3eb8e9442b774366fed0c
DIST hashbrown-0.12.3.crate 102968 BLAKE2B 492072f27eaec45abd2c5d7405c614c0c6a8221425e901bb6174bfa1688ee524408a618650126d6c683b7285b9bf0a21dcdbff7347e4d8f97bf7111defa1b7e5 SHA512 b3700fcd659a21a6b9b3777c18b37a83bf25542b4e8f2b963779a122f5d22e1742c064cfc03e649583e7dd5c6e90ca8407f8c51a0e8755f6a108682853022f76
DIST hashbrown-0.14.5.crate 141498 BLAKE2B 7d7f31b6377c901de12f78f0004a347e3e3b948b1336a54b6abd8dd2210db0ac415efcdded421a00723f16563a7b833b5d1db3cad5c12cac916e273bf3e588b3 SHA512 215ea860bd3de80e2dd2d4647c9dd31c0ac895ea7c08b87256dc11d36407e412ffefaebc6cdbec024057dd4f24b3762b4fe427be307e15d1e68ccfde89a99742
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.01.tar.xz 150345008 BLAKE2B 64eba3a25c133d65a1fab90f2ab9e361e6fe0e0d6ec22b914f46200b2b1e9a5b36c5d61139f29a5944feb77541d50ed2f31064583a3d1ea3daaa9566a513881b SHA512 50eb80f08e9720ce6a54da8877f8dcc0d7a41289e2ba11cbe3b5b322d29d6f6ffba934816ae85fe10e9a5ec088d0545bb53dc4a313536dc8d62c097114e70b03
DIST hermit-abi-0.2.6.crate 13027 BLAKE2B 4df5306639511a5f69594e903f8ce62482cbbfbfe272a91a12f407483dbac4e87c2d7e5668cc06ca5c0fc149ca93a3152fe6ad4bb3b96cacf56a22cb635e5b7f SHA512 bad8442bb822a9c99f6536db16523c80f5139af6a139bcc359c03725c59ff935816e2ecc5c491dc362ac75ab2dff41ab1e9dd29431f5e9a109b60eb9b7a8dc28
DIST hermit-abi-0.3.9.crate 16165 BLAKE2B b779f005bd4cb9ba9abe401a0a559a5bbcc44726ac37f53e9c8d1f7218389ec8b48f74d14666261bc4fba4fbe5558cfefae873c49a2312c8c8bd4010b8344064 SHA512 f3a5a51d834a6ad55480b53f7e9cdc73a512ab0cc6c246a6ab1e8bf8f9851a0c8a55982f5bba6cb57b5a03b54870e73b0bab0a79195764c308318394a3ea8045

View File

@@ -0,0 +1,90 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=""
RUST_MIN_VER="1.76"
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/${PN}/releases/download/${PV}/${P}-source.tar.xz -> ${P}.tar.xz"
DEPS_URI="https://github.com/freijon/${PN}/releases/download/${PV}/${P}-crates.tar.xz"
SRC_URI+=" ${DEPS_URI}"
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
}