diff --git a/sysutils/lima/Portfile b/sysutils/lima/Portfile index 10f817f64157e..0691ea5c4780d 100644 --- a/sysutils/lima/Portfile +++ b/sysutils/lima/Portfile @@ -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 @@ -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 @@ -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 @@ -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 }