# -*- 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
github.setup moby moby 17.05.0-ce v
description The open-source application container engine
long_description Docker is an open source project to pack, ship \
and run any application as a lightweight container.
checksums rmd160 e03f7ceb997f9241d822ee15573ef68e870bb11b \
sha256 14d6e2fb393b4a10ef5d5112f6bd931948349e52cb793b6fcf945a034997c983 \
build.target dynbinary-client
set distfile_dirname [exec tar tzf ${distpath}/[lindex ${distfiles} 0] | sed -n 1p]
set docker_gitcommit [string map "${github.author}-${github.project}- {} / {}" ${distfile_dirname}]
if {![regexp -nocase -- {^[0-9a-f]{7}$} ${docker_gitcommit}]} {
return -code error "can't determine git commit"
build.env-append DOCKER_GITCOMMIT=${docker_gitcommit}
xinstall -d ${destroot}${prefix}/bin
xinstall -m 755 ${worksrcpath}/bundles/${version}/${build.target}/${name}-${version} ${destroot}${prefix}/bin/${name}
variant bash_completion {
depends_run-append path:etc/bash_completion:bash-completion
set completions_path ${prefix}/share/bash-completion/completions
xinstall -d ${destroot}${completions_path}
xinstall -m 644 ${worksrcpath}/contrib/completion/bash/${name} ${destroot}${completions_path}/
depends_run-append path:${prefix}/bin/zsh:zsh
set site-functions ${destroot}${prefix}/share/zsh/site-functions
xinstall -d ${site-functions}
xinstall ${worksrcpath}/contrib/completion/zsh/_${name} ${site-functions}/