pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Match on url / codeberg instead of grammar name
Module Name: pkgsrc-wip
Committed By: atomicules <base%atomicules.co.uk@localhost>
Pushed By: atomicules
Date: Wed Dec 3 16:11:40 2025 +0000
Changeset: ff1beeb2d62eabc7ef21b7a5bc8839e0f9bfb122
Modified Files:
helix/Makefile
Log Message:
Match on url / codeberg instead of grammar name
Since this is _probably_ a Codeberg thing and makes this more future
proof if more people migrate to Codeberg.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ff1beeb2d62eabc7ef21b7a5bc8839e0f9bfb122
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
helix/Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diffs:
diff --git a/helix/Makefile b/helix/Makefile
index 61dabf3e43..96da7077a1 100644
--- a/helix/Makefile
+++ b/helix/Makefile
@@ -30,7 +30,10 @@ INSTALLATION_DIRS+= share/helix/runtime/grammars
post-extract:
${MKDIR} ${WRKSRC}/runtime/grammars/sources
.for name rev url path in ${TS_FILES}
- if [ "${name}" = "tree-sitter-prolog" ]; then ${LN} -s ${WRKDIR}/${name} ${WRKSRC}/runtime/grammars/sources/${path}; else ${LN} -s ${WRKDIR}/${name}-${rev} ${WRKSRC}/runtime/grammars/sources/${path}; fi
+ case "${url}" in \
+ "https://codeberg.org/"*) ${LN} -s ${WRKDIR}/${name} ${WRKSRC}/runtime/grammars/sources/${path} ;; \
+ *) ${LN} -s ${WRKDIR}/${name}-${rev} ${WRKSRC}/runtime/grammars/sources/${path} ;; \
+ esac
.endfor
.include "../../mk/bsd.prefs.mk"
Home |
Main Index |
Thread Index |
Old Index