summaryrefslogtreecommitdiff
path: root/textproc/tree-sitter-grammars/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/tree-sitter-grammars/Makefile')
-rw-r--r--textproc/tree-sitter-grammars/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/textproc/tree-sitter-grammars/Makefile b/textproc/tree-sitter-grammars/Makefile
index 586c9ea4c669..c2aec35d5499 100644
--- a/textproc/tree-sitter-grammars/Makefile
+++ b/textproc/tree-sitter-grammars/Makefile
@@ -60,6 +60,10 @@ post-extract:
${CP} ${DISTDIR}/${LANG_HASH}/languages.toml ${WRKSRC}
+post-patch:
+ ${REINPLACE_CMD} "s#WRKDIR#${WRKDIR}#" \
+ ${WRKSRC}/src/main.rs
+
post-build:
cd ${WRKSRC}; \
${CARGO_TARGET_DIR}/release/build-tree-sitter --output ./output --tmp ${WRKSRC}/grammars