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/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/textproc/tree-sitter-grammars/Makefile b/textproc/tree-sitter-grammars/Makefile
index 586c9ea4c669..1407061a21f6 100644
--- a/textproc/tree-sitter-grammars/Makefile
+++ b/textproc/tree-sitter-grammars/Makefile
@@ -2,6 +2,7 @@ PORTNAME= tree-sitter-grammars
DISTVERSIONPREFIX= v
DISTVERSION= 0.4.2
DISTVERSIONSUFFIX= +1f9f9dd
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES+= https://git.sr.ht/~nbsp/tree-sitter-gemini/archive/:gemini \
https://git.sr.ht/~ecs/tree-sitter-hare/archive/:hare \
@@ -60,6 +61,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