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: Tue, 23 Jul 2024 05:27:04 +0000 (UTC)	[thread overview]
Message-ID: <1721712410.1d6918c36aec2f50fe71ccceffa68879b821325c.juippis@gentoo> (raw)

commit:     1d6918c36aec2f50fe71ccceffa68879b821325c
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Wed Jul 17 19:27:16 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Jul 23 05:26:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d6918c3

app-editors/helix: Install grammars into libdir

Signed-off-by: Jonas Frei <freijon <AT> pm.me>
Signed-off-by: Steffen Winter <steffen.winter <AT> proton.me>
Closes: https://github.com/gentoo/gentoo/pull/37569
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-editors/helix/helix-23.10-r3.ebuild |  7 ++++---
 app-editors/helix/helix-24.03-r1.ebuild |  7 ++++---
 app-editors/helix/helix-24.07.ebuild    | 29 ++++++++++++++++-------------
 3 files changed, 24 insertions(+), 19 deletions(-)

diff --git a/app-editors/helix/helix-23.10-r3.ebuild b/app-editors/helix/helix-23.10-r3.ebuild
index cce301b3bf47..820bf1627758 100644
--- a/app-editors/helix/helix-23.10-r3.ebuild
+++ b/app-editors/helix/helix-23.10-r3.ebuild
@@ -308,9 +308,10 @@ src_compile() {
 src_install() {
 	cargo_src_install --path helix-term
 
-	rm runtime/grammars/.gitkeep || die
-	rm -r runtime/grammars/sources || die
-	use grammar || rm -r runtime/grammars || die
+	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

diff --git a/app-editors/helix/helix-24.03-r1.ebuild b/app-editors/helix/helix-24.03-r1.ebuild
index 7ac23280faec..46ee3c25397e 100644
--- a/app-editors/helix/helix-24.03-r1.ebuild
+++ b/app-editors/helix/helix-24.03-r1.ebuild
@@ -315,9 +315,10 @@ src_compile() {
 src_install() {
 	cargo_src_install --path helix-term
 
-	rm runtime/grammars/.gitkeep || die
-	rm -r runtime/grammars/sources || die
-	use grammar || rm -r runtime/grammars || die
+	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

diff --git a/app-editors/helix/helix-24.07.ebuild b/app-editors/helix/helix-24.07.ebuild
index d73fe8256bfa..1e4539721df4 100644
--- a/app-editors/helix/helix-24.07.ebuild
+++ b/app-editors/helix/helix-24.07.ebuild
@@ -306,31 +306,24 @@ RDEPEND="dev-vcs/git"
 
 QA_FLAGS_IGNORED="
 	usr/bin/hx
-	usr/share/helix/runtime/grammars/.*\.so
+	usr/share/${PN}/runtime/grammars/.*\.so
 "
 
-DOCS=(
-	README.md
-	CHANGELOG.md
-	book/
-	docs/
-)
-
 pkg_setup() {
-	export HELIX_DEFAULT_RUNTIME="${EPREFIX}/usr/share/helix/runtime"
+	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
 
-	rm runtime/grammars/.gitkeep || die
-	rm -r runtime/grammars/sources || die
-	use grammar || rm -r runtime/grammars || die
+	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
@@ -341,6 +334,16 @@ src_install() {
 	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() {


             reply	other threads:[~2024-07-23  5:27 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23  5:27 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-01  7:54 [gentoo-commits] repo/gentoo:master commit in: app-editors/helix/ Joonas Niilola
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  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=1721712410.1d6918c36aec2f50fe71ccceffa68879b821325c.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