Skip to content

Commit

Permalink
lima: drop dependency on QEMU from macOS 14 onwards
Browse files Browse the repository at this point in the history
  • Loading branch information
danchr committed Jan 3, 2025
1 parent 0559d2d commit f2c65b9
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions sysutils/lima/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PortGroup golang 1.0
go.setup github.com/lima-vm/lima 1.0.3 v
go.offline_build no
github.tarball_from archive
revision 0
revision 1

homepage https://lima-vm.io

Expand All @@ -18,7 +18,8 @@ long_description {*}{
was to promote containerd including nerdctl (contaiNERD ctl) to
Mac users, but Lima can be used for non-container applications as
well. Lima also supports other container engines, such as Docker,
Podman, Kubernetes, etc.
Podman, Kubernetes, etc. Lima can also emulate other architectures
if QEMU is installed.
}

categories sysutils
Expand All @@ -28,8 +29,6 @@ maintainers {gmail.com:herby.gillot @herbygillot} \
{macports.halostatue.ca:austin @halostatue} \
openmaintainer

depends_run port:qemu

checksums rmd160 60a71868460fe544be7e44f0ec10bc3d66198a10 \
sha256 c36e803f4faf41607220df4c1d7a61977a7d492facf03e0b67f1f69390840a90 \
size 7381537
Expand All @@ -38,6 +37,23 @@ build.cmd make

patchfiles patch-Makefile.diff

platform darwin {
# Lima defaults to VZ with macOS 13.5 and later; drop dependency from 14 onwards
if {${os.major} < 23} {
depends_run-append port:qemu
} else {
# added January 2025
notes {
Please note that the Lima now defaults to native\
virtualization support and not QEMU. If you rely on it,\
such as for emulating other architectures, you can install\
it explicitly:

port install qemu
}
}
}

post-patch {
reinplace "s|@@VERSION@@|${version}|g" ${worksrcpath}/Makefile
}
Expand Down

0 comments on commit f2c65b9

Please sign in to comment.