# -*- 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 # After the upgrade, it is highly recommended to test the `podman machine`. # This port has problems with this command from time to time. # See https://gist.github.com/judaew/85c6e8a62bf0e7f5be5188e020492e21 go.setup github.com/containers/podman 5.0.1 v github.tarball_from archive revision 0 epoch 0 categories sysutils license Apache-2 maintainers {judaew @judaew} {@catap korins.ky:kirill} openmaintainer description Tool for managing OCI containers and pods. long_description \ Podman is a tool for running Linux containers. You can do this from a \ MacOS desktop as long as you have access to a linux box either running \ inside of a VM on the host, or available via the network. You need to \ install the remote client and then setup ssh connection information. checksums ${distname}${extract.suffix} \ rmd160 9d58d46d064e4d18c780fb6bbd44fde6a475d682 \ sha256 ee6253866e949431c3f2c0e87582c864b8dd1c96773fc93d6c73dfaff9630ee2 \ size 21863115 set py_ver 3.12 set py_ver_nodot [string map {. {}} ${py_ver}] depends_build-append \ port:go-md2man \ port:python${py_ver_nodot} \ port:pre-commit depends_run port:gvisor-tap-vsock port:vfkit port:qemu patchfiles patch-defaultHelperBinariesDir-for-MacPorts.diff post-patch { reinplace "s|@@PREFIX@@|${prefix}|g" \ ${worksrcpath}/vendor/github.com/containers/common/pkg/config/config_darwin.go } build.cmd make build.args PYTHON=${prefix}/bin/python${py_ver} \ PRE_COMMIT=${prefix}/bin/pre-commit build.target ${name}-remote ${name}-mac-helper docs if {${os.platform} eq "darwin" && ${os.major} <= 20} { # See https://trac.macports.org/ticket/69578 go.setup github.com/containers/podman 4.9.3 v epoch 1 checksums ${distname}${extract.suffix} \ rmd160 dd87729822e5486c174815445e814546b3a7e98b \ sha256 37afc5bba2738c68dc24400893b99226c658cc9a2b22309f4d7abe7225d8c437 \ size 21727849 depends_run-delete port:vfkit notes-append " WARN: Currently using podman 4.9.3 instead of 5.0.0+. See the reasons: https://trac.macports.org/ticket/69683 *** " } destroot { xinstall -m 0755 ${worksrcpath}/bin/darwin/${name} \ ${destroot}${prefix}/bin/ xinstall -m 0755 ${worksrcpath}/bin/darwin/${name}-mac-helper \ ${destroot}${prefix}/bin/ # Add man-pages xinstall -d ${destroot}${prefix}/share/man/man1 xinstall -m 640 {*}[glob ${worksrcpath}/docs/build/man/*.1] \ ${destroot}${prefix}/share/man/man1/ # Add shell completion xinstall -d ${destroot}${prefix}/share/bash-completion/completions xinstall -m 0644 ${worksrcpath}/completions/bash/${name} \ ${destroot}${prefix}/share/bash-completion/completions/ xinstall -d ${destroot}${prefix}/share/zsh/site-functions xinstall -m 0644 ${worksrcpath}/completions/zsh/_${name} \ ${destroot}${prefix}/share/zsh/site-functions xinstall -d ${destroot}${prefix}/share/fish/vendor_completions.d xinstall -m 644 ${worksrcpath}/completions/fish/${name}.fish \ ${destroot}${prefix}/share/fish/vendor_completions.d/ } notes-append " If you have an issue where podman won't run on ARM then try the following: https://trac.macports.org/ticket/67731#comment:14 " github.livecheck.regex {([^"r-]+)}