2021-12-18 17:54:10 +03:00
|
|
|
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
|
|
|
|
|
|
PortSystem 1.0
|
|
|
|
|
PortGroup golang 1.0
|
|
|
|
|
|
2026-07-04 21:00:34 -04:00
|
|
|
go.setup github.com/lima-vm/lima 2.1.4 v
|
2023-10-22 13:28:36 -04:00
|
|
|
go.offline_build no
|
2025-08-23 19:35:50 -04:00
|
|
|
revision 0
|
2021-12-18 17:54:10 +03:00
|
|
|
|
2023-04-15 15:14:26 -04:00
|
|
|
homepage https://lima-vm.io
|
|
|
|
|
|
2021-12-18 17:54:10 +03:00
|
|
|
description Linux virtual machines
|
|
|
|
|
|
2024-03-12 15:09:34 +01:00
|
|
|
long_description {*}{
|
|
|
|
|
Lima launches Linux virtual machines with automatic file sharing
|
|
|
|
|
and port forwarding (similar to WSL2). The original goal of Lima
|
|
|
|
|
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,
|
2025-01-03 17:19:06 +01:00
|
|
|
Podman, Kubernetes, etc. Lima can also emulate other architectures
|
|
|
|
|
if QEMU is installed.
|
2024-03-12 15:09:34 +01:00
|
|
|
}
|
2021-12-18 17:54:10 +03:00
|
|
|
|
|
|
|
|
categories sysutils
|
|
|
|
|
installs_libs no
|
|
|
|
|
license Apache-2
|
2022-05-07 01:14:37 -04:00
|
|
|
maintainers {gmail.com:herby.gillot @herbygillot} \
|
2023-12-01 00:33:26 -05:00
|
|
|
{macports.halostatue.ca:austin @halostatue} \
|
2022-05-07 01:14:37 -04:00
|
|
|
openmaintainer
|
2021-12-18 17:54:10 +03:00
|
|
|
|
2026-07-04 21:00:34 -04:00
|
|
|
checksums rmd160 5b650b16072307ab128581fb3292bbd3ea32197a \
|
|
|
|
|
sha256 39209f4f573fc753aea3e95f52713a6432f32f73da5bb60ba913ca46edb1924c \
|
|
|
|
|
size 7813236
|
2022-01-13 12:26:47 +03:00
|
|
|
|
2022-05-07 01:14:37 -04:00
|
|
|
build.cmd make
|
2025-05-23 08:09:29 -04:00
|
|
|
build.args-append native
|
2021-12-18 17:54:10 +03:00
|
|
|
|
2025-06-11 22:53:19 -04:00
|
|
|
patchfiles patch-Makefile.diff \
|
2025-11-08 09:31:58 +01:00
|
|
|
patch-usrlocalgo.diff
|
2023-11-12 12:05:58 -05:00
|
|
|
|
2025-01-03 17:19:06 +01:00
|
|
|
platform darwin {
|
|
|
|
|
# Lima defaults to VZ with macOS 13.5 and later; drop dependency from 14 onwards
|
|
|
|
|
if {${os.major} < 23} {
|
2025-05-22 21:38:24 -04:00
|
|
|
depends_run-append port:qemu
|
2025-01-03 17:19:06 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-23 08:09:29 -04:00
|
|
|
variant additional_guestagents description {Guest agents for all architectures} {
|
|
|
|
|
build.args-append additional-guestagents
|
|
|
|
|
depends_run-append port:qemu
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
notes {
|
2025-08-23 19:35:50 -04:00
|
|
|
Lima has a variant (+additional_guestagents, disabled by default),\
|
|
|
|
|
that builds guest agents for all supported architectures, requiring\
|
|
|
|
|
qemu.
|
2025-05-23 08:09:29 -04:00
|
|
|
}
|
|
|
|
|
|
2023-11-12 12:05:58 -05:00
|
|
|
post-patch {
|
|
|
|
|
reinplace "s|@@VERSION@@|${version}|g" ${worksrcpath}/Makefile
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-29 21:07:06 +02:00
|
|
|
post-build {
|
|
|
|
|
set limactl ${worksrcpath}/_output/bin/limactl
|
2021-12-18 17:54:10 +03:00
|
|
|
|
2024-05-29 21:07:06 +02:00
|
|
|
set bash_completions_dir ${worksrcpath}/_output/share/bash-completion/completions
|
|
|
|
|
set fish_completions_dir ${worksrcpath}/_output/share/fish/vendor_completions.d
|
|
|
|
|
set zsh_completions_dir ${worksrcpath}/_output/share/zsh/site-functions
|
2021-12-18 17:54:10 +03:00
|
|
|
|
2024-03-12 15:09:34 +01:00
|
|
|
xinstall -d ${bash_completions_dir} ${fish_completions_dir} ${zsh_completions_dir}
|
2021-12-18 17:54:10 +03:00
|
|
|
|
2024-05-29 21:07:06 +02:00
|
|
|
system "${limactl} completion bash > ${bash_completions_dir}/${name}"
|
|
|
|
|
system "${limactl} completion fish > ${fish_completions_dir}/${name}.fish"
|
|
|
|
|
system "${limactl} completion zsh > ${zsh_completions_dir}/_${name}"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
destroot {
|
|
|
|
|
system -W ${worksrcpath} "make install DEST=${destroot}${prefix}"
|
2021-12-18 17:54:10 +03:00
|
|
|
}
|
2022-12-12 16:58:34 -05:00
|
|
|
|
|
|
|
|
github.livecheck.regex {([0-9.]+)}
|