pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

helix: builds



Module Name:	pkgsrc-wip
Committed By:	nikita <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Fri Apr 1 13:28:15 2022 +0200
Changeset:	85154124c81133eee8548a9a789604212db4d6fe

Modified Files:
	helix/Makefile
	helix/PLIST

Log Message:
helix: builds

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=85154124c81133eee8548a9a789604212db4d6fe

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 helix/Makefile | 13 ++++++------
 helix/PLIST    | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+), 6 deletions(-)

diffs:
diff --git a/helix/Makefile b/helix/Makefile
index 6e46eca249..d63eeda17f 100644
--- a/helix/Makefile
+++ b/helix/Makefile
@@ -323,7 +323,7 @@ WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${DISTNAME}
 USE_LANGUAGES+=	c c++
 
 INSTALLATION_DIRS+=	share/helix/runtime/grammars
-
+INSTALLATION_DIRS+=	bin
 
 .include "cargo-depends.mk"
 
@@ -399,14 +399,15 @@ SUBST_MESSAGE.datadir=	Fixing datadir
 SUBST_FILES.datadir=	helix-loader/src/lib.rs
 SUBST_SED.datadir+=	-e 's,%%DATADIR%%,${PREFIX}/share/helix,g'
 
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/target/release/hx ${DESTDIR}${PREFIX}/bin
+
 post-install:
-	# ${MKDIR} -p ${PREFIX}/share/helix/runtime/grammars
 .for dirs in queries themes
-	(cd ${WRKSRC}/runtime && ${INSTALL} ${dirs} ${PREFIX}/share/helix/runtime/${dirs})
+	(cd ${WRKSRC}/runtime && ${INSTALL_DATA_DIR} ${dirs} ${DESTDIR}${PREFIX}/share/helix/runtime/${dirs})
 .endfor
-	${INSTALL} ${WRKSRC}/runtime/tutor.txt ${PREFIX}/share/helix/runtime/tutor.txt
-	# ${FIND} ${WRKSRC}/runtime/grammars -maxdepth 1 -type f -name '*.so' \
-	#	-exec ${INSTALL_LIB} {} ${STAGEDIR}${DATADIR}/runtime/grammars \;
+	${INSTALL} ${WRKSRC}/runtime/tutor.txt ${DESTDIR}${PREFIX}/share/helix/runtime/tutor.txt
+	${INSTALL_LIB} ${WRKSRC}/runtime/grammars/*.so ${DESTDIR}${PREFIX}/share/helix/runtime/grammars/
 
 .include "../../lang/rust/cargo.mk"
 .include "../../lang/rust/buildlink3.mk"
diff --git a/helix/PLIST b/helix/PLIST
index 7697cf0878..32bcb8ea5e 100644
--- a/helix/PLIST
+++ b/helix/PLIST
@@ -1,2 +1,67 @@
 @comment $NetBSD$
 bin/hx
+share/helix/runtime/grammars/bash.so
+share/helix/runtime/grammars/c-sharp.so
+share/helix/runtime/grammars/c.so
+share/helix/runtime/grammars/cmake.so
+share/helix/runtime/grammars/comment.so
+share/helix/runtime/grammars/cpp.so
+share/helix/runtime/grammars/css.so
+share/helix/runtime/grammars/dart.so
+share/helix/runtime/grammars/dockerfile.so
+share/helix/runtime/grammars/elixir.so
+share/helix/runtime/grammars/elm.so
+share/helix/runtime/grammars/erlang.so
+share/helix/runtime/grammars/fish.so
+share/helix/runtime/grammars/git-commit.so
+share/helix/runtime/grammars/git-config.so
+share/helix/runtime/grammars/git-diff.so
+share/helix/runtime/grammars/git-rebase.so
+share/helix/runtime/grammars/glsl.so
+share/helix/runtime/grammars/go.so
+share/helix/runtime/grammars/graphql.so
+share/helix/runtime/grammars/haskell.so
+share/helix/runtime/grammars/hcl.so
+share/helix/runtime/grammars/html.so
+share/helix/runtime/grammars/iex.so
+share/helix/runtime/grammars/java.so
+share/helix/runtime/grammars/javascript.so
+share/helix/runtime/grammars/json.so
+share/helix/runtime/grammars/julia.so
+share/helix/runtime/grammars/kotlin.so
+share/helix/runtime/grammars/latex.so
+share/helix/runtime/grammars/lean.so
+share/helix/runtime/grammars/ledger.so
+share/helix/runtime/grammars/llvm-mir.so
+share/helix/runtime/grammars/llvm.so
+share/helix/runtime/grammars/lua.so
+share/helix/runtime/grammars/make.so
+share/helix/runtime/grammars/markdown.so
+share/helix/runtime/grammars/nix.so
+share/helix/runtime/grammars/ocaml-interface.so
+share/helix/runtime/grammars/ocaml.so
+share/helix/runtime/grammars/org.so
+share/helix/runtime/grammars/perl.so
+share/helix/runtime/grammars/php.so
+share/helix/runtime/grammars/protobuf.so
+share/helix/runtime/grammars/python.so
+share/helix/runtime/grammars/regex.so
+share/helix/runtime/grammars/rescript.so
+share/helix/runtime/grammars/ruby.so
+share/helix/runtime/grammars/rust.so
+share/helix/runtime/grammars/scala.so
+share/helix/runtime/grammars/solidity.so
+share/helix/runtime/grammars/svelte.so
+share/helix/runtime/grammars/tablegen.so
+share/helix/runtime/grammars/toml.so
+share/helix/runtime/grammars/tsq.so
+share/helix/runtime/grammars/tsx.so
+share/helix/runtime/grammars/twig.so
+share/helix/runtime/grammars/typescript.so
+share/helix/runtime/grammars/vue.so
+share/helix/runtime/grammars/wgsl.so
+share/helix/runtime/grammars/yaml.so
+share/helix/runtime/grammars/zig.so
+share/helix/runtime/tutor.txt
+@pkgdir share/helix/runtime/themes
+@pkgdir share/helix/runtime/queries


Home | Main Index | Thread Index | Old Index