public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/helix/
Date: Sat, 01 Mar 2025 07:54:34 +0000 (UTC)	[thread overview]
Message-ID: <1740815665.78b29f23b232dfb1cfc07d801cbe3d23c09fc7ab.juippis@gentoo> (raw)

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
+}


             reply	other threads:[~2025-03-01  7:54 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-01  7:54 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-26  4:05 [gentoo-commits] repo/gentoo:master commit in: app-editors/helix/ Sam James
2025-03-01  7:54 Joonas Niilola
2025-01-09 19:38 Patrick McLean
2025-01-09 19:38 Patrick McLean
2024-09-21  5:32 Sam James
2024-07-23  5:27 Joonas Niilola
2024-07-23  5:27 Joonas Niilola
2024-07-23  5:27 Joonas Niilola
2024-07-23  5:27 Joonas Niilola
2024-07-23  5:27 Joonas Niilola
2024-07-23  4:29 Joonas Niilola
2024-05-23 14:25 Joonas Niilola
2024-04-05 11:29 Joonas Niilola
2024-04-04 17:34 Patrick McLean
2023-12-12 22:36 Patrick McLean
2023-12-12 22:36 Patrick McLean
2023-11-07  0:55 Patrick McLean
2023-10-26 17:19 Patrick McLean
2023-05-28  7:47 Joonas Niilola
2023-04-11 23:38 Patrick McLean
2023-03-17 22:54 Patrick McLean
2023-03-17  3:28 Patrick McLean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1740815665.78b29f23b232dfb1cfc07d801cbe3d23c09fc7ab.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox