Ticket #52838: portfile

File portfile, 2.7 KB (added by echophage (Echophage), 7 years ago)
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
5
6name                packer
7version             0.11.0
8
9categories          devel
10platforms           darwin
11license             MPL-2
12
13maintainers         outlook.com:echophage \
14                    openmaintainer
15                   
16description         Creating machine images and containers for multiple platforms from a single source config
17long_description    Packer is a tool for building identical machine images for multiple \
18                    platforms from a single source configuration. Packer is lightweight, \
19                    runs on every major operating system, and is highly performant, \
20                    creating machine images for multiple platforms in parallel. Packer \
21                    comes out of the box with support for the following platforms:\
22                    \
23                    Amazon EC2 (AMI). Both EBS-backed and instance-store AMIs \
24                    Azure \
25                    DigitalOcean \
26                    Docker \
27                    Google Compute Engine \
28                    OpenStack \
29                    Parallels \
30                    QEMU. Both KVM and Xen images \
31                    VirtualBox \
32                    VMware \
33                    Support for other platforms can be added via plugins.\
34                    \
35                    The images that Packer creates can easily be turned into Vagrant boxes.
36
37homepage            https://www.packer.io
38
39master_sites        https://github.com/mitchellh/packer/archive/
40distfiles           v$version.tar.gz
41
42checksums           rmd160  32fecfc7719e6fed77859036e396a6c5b44742ff \
43                    sha256  6e217b863a5b030fb92e019d3ba47c71fca641daa72f1ed8f2a0327a95bac266
44
45depends_build       port:go
46
47set gobuildpath     src/github.com/mitchellh
48
49extract {
50    xinstall -d ${workpath}/${gobuildpath}
51    system "tar -C ${workpath}/${gobuildpath} -xvzf ${distpath}/${distfiles}"
52    system "mv ${workpath}/${gobuildpath}/${name}-${version} ${workpath}/${gobuildpath}/${name}"
53}
54
55patchfiles          patch-makefile.diff \
56                    patch-build.sh.diff                   
57patch.dir           ${workpath}/src/github.com/mitchellh/packer
58
59use_configure       no
60
61use_parallel_build  no
62build.dir           ${workpath}/${gobuildpath}/${name}
63build.target        release
64build.env           GOPATH=${workpath} \
65                    PATH=/${prefix}/bin:/${prefix}/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:${workpath}/bin
66                   
67destroot {
68    copy ${workpath}/${gobuildpath}/${name}/bin/${name} ${destroot}/${prefix}/bin
69}