diff options
Diffstat (limited to 'devel/janet-lsp/files')
| -rw-r--r-- | devel/janet-lsp/files/janet-lsp.in | 11 | ||||
| -rw-r--r-- | devel/janet-lsp/files/patch-project.janet | 29 |
2 files changed, 11 insertions, 29 deletions
diff --git a/devel/janet-lsp/files/janet-lsp.in b/devel/janet-lsp/files/janet-lsp.in new file mode 100644 index 000000000000..69eea77d05c3 --- /dev/null +++ b/devel/janet-lsp/files/janet-lsp.in @@ -0,0 +1,11 @@ +@comment | This file is normally created by `jpm install`. The problem is that +@comment | it uses the path from --tree for janet and the full path to that tree +@comment | for the image. Both wrong. +@comment | See work/janet-lsp-*/jpm_tree/bin/janet-lsp for the version with the +@comment | wrong paths that this replaces. It is this small. +#!%%LOCALBASE%%/bin/janet +(import janet-lsp) +(put root-env :syspath "%%LOCALBASE%%/lib") + +(defn main [& args] + (janet-lsp/main ;args)) diff --git a/devel/janet-lsp/files/patch-project.janet b/devel/janet-lsp/files/patch-project.janet deleted file mode 100644 index 90c646d2579e..000000000000 --- a/devel/janet-lsp/files/patch-project.janet +++ /dev/null @@ -1,29 +0,0 @@ ---- project.janet.orig 2025-09-05 00:00:02 UTC -+++ project.janet -@@ -7,16 +7,17 @@ - "https://github.com/ianthehenry/judge.git" - "https://github.com/CFiggers/cmd.git"]) - --# (def cflags --# (case (os/which) --# :windows [] --# ["-s"])) -+(def cflags -+ (case (os/which) -+ :windows [] -+ :freebsd [] -+ ["-s"])) - --# (declare-executable --# :name "janet-lsp" --# :entry "src/main.janet" --# :cflags cflags --# :install true) -+(declare-executable -+ :name "janet-lsp" -+ :entry "src/main.janet" -+ :cflags cflags -+ :install true) - - (declare-archive - :name "janet-lsp" |
