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 6b12302 commit adb4335
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 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 @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit adb4335

Please sign in to comment.