Skip to content

Commit

Permalink
lima: fix templates folder not found when creating VM
Browse files Browse the repository at this point in the history
See: lima-vm/lima#1679
The old examples folder is replaced with a symlink, to preserve existing
references, similarly to how it is done in official binary archives.
  • Loading branch information
MidnightRocket authored and herbygillot committed Sep 13, 2023
1 parent 4e033af commit e485790
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sysutils/lima/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PortGroup golang 1.0

go.setup github.com/lima-vm/lima 0.17.2 v
github.tarball_from archive
revision 0
revision 1

homepage https://lima-vm.io

Expand Down Expand Up @@ -52,10 +52,12 @@ destroot {
{*}[glob ${worksrcpath}/_output/share/doc/lima/docs/*.md] \
${destroot}${prefix}/share/doc/lima/docs

xinstall -m 0755 -d ${destroot}${prefix}/share/lima/examples
xinstall -m 0755 -d ${destroot}${prefix}/share/lima/templates
xinstall -m 0644 \
{*}[glob ${worksrcpath}/_output/share/doc/lima/examples/*.yaml] \
${destroot}${prefix}/share/lima/examples
${destroot}${prefix}/share/lima/templates

ln -fs ${prefix}/share/lima/templates ${destroot}${prefix}/share/lima/examples
}

github.livecheck.regex {([0-9.]+)}

0 comments on commit e485790

Please sign in to comment.