From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1722864-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id BB61F1582EF
	for <garchives@archives.gentoo.org>; Sat, 01 Mar 2025 07:54:37 +0000 (UTC)
Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	(Authenticated sender: relay-lists.gentoo.org@gentoo.org)
	by smtp.gentoo.org (Postfix) with ESMTPSA id A66AA3430A7
	for <garchives@archives.gentoo.org>; Sat, 01 Mar 2025 07:54:37 +0000 (UTC)
Received: from bobolink.gentoo.org (localhost [127.0.0.1])
	by bobolink.gentoo.org (Postfix) with ESMTP id A80AE1102B7;
	Sat, 01 Mar 2025 07:54:36 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by bobolink.gentoo.org (Postfix) with ESMTPS id 9E3151102B7
	for <gentoo-commits@lists.gentoo.org>; Sat, 01 Mar 2025 07:54:36 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 4E303343088
	for <gentoo-commits@lists.gentoo.org>; Sat, 01 Mar 2025 07:54:36 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id D7AD116E6
	for <gentoo-commits@lists.gentoo.org>; Sat, 01 Mar 2025 07:54:34 +0000 (UTC)
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" <juippis@gentoo.org>
Message-ID: <1740815665.78b29f23b232dfb1cfc07d801cbe3d23c09fc7ab.juippis@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/helix/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-editors/helix/Manifest app-editors/helix/helix-25.01.1.ebuild
X-VCS-Directories: app-editors/helix/
X-VCS-Committer: juippis
X-VCS-Committer-Name: Joonas Niilola
X-VCS-Revision: 78b29f23b232dfb1cfc07d801cbe3d23c09fc7ab
X-VCS-Branch: master
Date: Sat, 01 Mar 2025 07:54:34 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: c49084f0-3d6c-47fe-acec-568bfd9c2298
X-Archives-Hash: cd26f29bcec29c3edbaa340deb821d43

commit:     78b29f23b232dfb1cfc07d801cbe3d23c09fc7ab
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Mon Jan 20 05:53:12 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Mar  1 07:54:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78b29f23

app-editors/helix: add 25.01.1

Also: Created vendor tarball to reduce ebuild and Manifest size

Signed-off-by: Jonas Frei <freijon <AT> pm.me>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-editors/helix/Manifest             |  2 +
 app-editors/helix/helix-25.01.1.ebuild | 90 ++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

diff --git a/app-editors/helix/Manifest b/app-editors/helix/Manifest
index b8a083f91247..60c763045147 100644
--- a/app-editors/helix/Manifest
+++ b/app-editors/helix/Manifest
@@ -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

diff --git a/app-editors/helix/helix-25.01.1.ebuild b/app-editors/helix/helix-25.01.1.ebuild
new file mode 100644
index 000000000000..21597d7497f9
--- /dev/null
+++ b/app-editors/helix/helix-25.01.1.ebuild
@@ -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
+}