diff --git a/sysutils/lima/Portfile b/sysutils/lima/Portfile index 10f817f64157e..e63d80445df55 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 @@ -28,8 +28,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 +36,22 @@ 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 Lima no longer depends on QEMU. If you\ + rely on it, you may want to explictly mark it as installed\ + to keep it around: + + port install qemu + } + } +} + post-patch { reinplace "s|@@VERSION@@|${version}|g" ${worksrcpath}/Makefile }