# -*- 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           github 1.0

github.setup        machine-drivers docker-machine-driver-qemu 0324171328f7bdf2f1e7803dbdc3b18db457c786
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             20220617
revision            0
categories          devel
license             Apache-2
maintainers         {@sainnhe gmail.com:sainnhe} openmaintainer
description         Docker machine driver for pure qemu/kvm - no libvirt
long_description    A plugin for Docker Machine allowing to \
                    create Docker hosts locally on QEMU

checksums           rmd160  1577dd97e82b94db4512a0604603e47230b680c0 \
                    sha256  59dd9d1860a98668a3cc94b4547dae740387c17888dfd1e6d19166c316d0f356 \
                    size    15666

depends_lib         port:docker-machine

depends_run         port:qemu

depends_build       port:go

use_configure       no

build.target        default

destroot {
    xinstall -d ${destroot}${prefix}/bin
    xinstall -m 755 {*}[glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin/
}

notes "
You may want to run the following commands to use this machine driver to create a docker machine:

1. Create a `default` machine and start it:
$ docker-machine create --driver qemu default

2. Set-up the environment for the Docker client:
$ eval \"\$(docker-machine env default)\"
"
