Ticket #64573: Portfile-helix.diff
File Portfile-helix.diff, 1.4 KB (added by gkoller (Guido Kollerie), 3 years ago) |
---|
-
Portfile
old new 26 26 # Helix does not build well using frozen deps 27 27 build.pre_args --release -v -j${build.jobs} 28 28 29 notes " 30 Helix also needs it's runtime files so make sure to copy/symlink the 31 ${prefix}/share/${name}/runtime/ directory into your config directory 32 (for example ~/.config/helix/runtime). This location can be overriden 33 via the HELIX_RUNTIME environment variable. 34 " 35 36 29 37 post-extract { 30 38 system -W ${worksrcpath} "git submodule update --init" 31 39 } … … 34 42 xinstall -m 0755 \ 35 43 ${worksrcpath}/target/[cargo.rust_platform]/release/hx \ 36 44 ${destroot}${prefix}/bin/ 37 } 45 46 # Install runtime files (tree-sitter grammers, queries, etc) 47 xinstall -d -m 755 ${destroot}${prefix}/share/${name}/runtime 48 fs-traverse f_or_d ${worksrcpath}/runtime { 49 set subpath [strsed ${f_or_d} "s|${worksrcpath}/runtime/||"] 50 if { ${subpath} ne "" } { 51 if { [file isdirectory ${f_or_d}] } { 52 xinstall -d \ 53 ${destroot}${prefix}/share/${name}/runtime/${subpath} 54 } elseif { [file isfile ${f_or_d}] } { 55 xinstall -m 0644 ${f_or_d} \ 56 ${destroot}${prefix}/share/${name}/runtime/${subpath} 57 } 58 } 59 } 60 }