Ticket #47998: Portfile

File Portfile, 1.8 KB (added by ajdudman, 9 years ago)

all fetching done in fetch and post-fetch

Line 
1# -*- 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
2# $Id$
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7# Please update the version of both boot2docker and docker ports together.
8github.setup    boot2docker boot2docker-cli 1.6.2 v
9name            boot2docker
10revision        0
11categories      sysutils
12maintainers     nomaintainer
13description     Boot2docker is a command-line, Linux-container management tool.
14long_description \
15        Boot2docker is a command-line interface to docker.  This tool downloads the \
16        boot2docker ISO image, creates a VirtualBox virtual machine, sets up two networks \
17        for that virtual machine (one NAT to allow the VM and containers to access the \
18        internet, the other host-only to allow container port mapping to work securely), \
19        and then provides the user a simple way to login via SSH.  IANA assigned docker \
20        plain-text port 2375 and ssl port 2376.
21
22license         Apache-2
23platforms       darwin
24worksrcdir      go/src/github.com/boot2docker/boot2docker-cli
25use_configure   no
26use_parallel_build  no
27
28depends_build   port:go
29depends_run     port:docker
30
31platform darwin {
32    pre-fetch {
33        if {${os.major} < 10} {
34            ui_error "${name} requires Snow Leopard or newer."
35            return -code error "unsupported platform"
36        }
37    }
38}
39
40fetch.type      git
41post-fetch {
42    system -W ${worksrcpath} "GOPATH=${workpath}/go go get -d"
43}
44
45build.env       GOPATH=${workpath}/go
46build.cmd       make -e
47build.target    goinstall
48
49destroot {
50    xinstall ${workpath}/go/bin/boot2docker-cli ${destroot}/${prefix}/bin/boot2docker
51}
52
53test.run        yes
54test.cmd        ${workpath}/go/bin/boot2docker-cli
55test.target     version