/
Portfile
65 lines (53 loc) · 2.25 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- 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
# $Id$
PortSystem 1.0
PortGroup ruby 1.0
ruby.setup vagrant 1.0.7 gem {} rubygems
set myname vagrant
categories-append devel emulators
platforms darwin
maintainers gwmail.gwu.edu:egall openmaintainer
license MIT
description ${myname} is a tool for building and distributing \
virtualized development environments.
long_description ${description}
homepage http://www.vagrantup.com/
checksums rmd160 1f66b5899b428b9d4a28fdccaeb5c129b604696d \
sha256 8a2fd6f778d4e317f5e82531c4c4d8ba0e7fe41f0fa86e5e8b47256dc5b895b7
# rb-rake is not universal
universal_variant no
# The ruby portgroup now adds a dependency on rb-rake for us, so we can
# now stop manually specifying it here
# (although maybe we should switch to rb19-rake instead though?)
depends_lib-append port:rb-archive-tar-minitar \
port:rb-erubis \
port:rb-json \
port:rb-log4r \
port:rb-net-scp \
port:rb-net-ssh \
port:libffi
depends_run-append bin:VBoxManage:VirtualBox
# Making a variant for this until ticket #38208 is resolved.
# Note: this variant does NOT actually work yet
variant test description {Build tests} {
# Need to fetch entire source from GitHub to be able to run tests
# (for some reason it fails when I put it in a variant like this...)
PortGroup github 1.0
github.setup mitchellh ${myname} ${version} v
set name rb-${myname}
# The rb19-bundler is unfortunate, as it is generally not a good
# idea to mix ruby versions, but it is actually necessary for testing,
# and there is no just-regular rb-bundler port.
depends_build-append \
port:rb-minitest \
port:rb-mocha \
port:rb-rspec \
bin:bundle:rb19-bundler
test.run yes
test.cmd ${prefix}/bin/bundle-1.9 install && ${prefix}/bin/rake-1.8
test.target
pre-test {
file mkdir ${workpath}/.home
}
}
# TODO: update to 1.5.0