2014-06-01 00:20:24 +00:00
|
|
|
class Fig < Formula
|
2015-02-28 10:50:00 +00:00
|
|
|
homepage "https://docs.docker.com/compose/"
|
2015-02-26 01:06:22 +00:00
|
|
|
url "https://github.com/docker/compose/archive/1.1.0.tar.gz"
|
|
|
|
sha1 "175066934c19f455606b16f1b4e4b9f26fc3f599"
|
2014-07-18 21:58:46 +00:00
|
|
|
|
2015-02-28 00:52:21 +00:00
|
|
|
bottle do
|
2015-03-04 21:31:20 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "c1fbe70891a82e92aeaa417622e05bf2dd6c6bb5" => :yosemite
|
|
|
|
sha1 "a8faccbb07062db68e3b4ef94983d6bdc0c0c673" => :mavericks
|
|
|
|
sha1 "824ac264234c2769f80cba86f05ba7649b588e1d" => :mountain_lion
|
2015-02-28 00:52:21 +00:00
|
|
|
end
|
|
|
|
|
2014-06-01 00:20:24 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
depends_on "libyaml"
|
2015-02-26 01:06:22 +00:00
|
|
|
|
|
|
|
# It's possible that the user wants to manually install Docker and Boot2Docker,
|
|
|
|
# for example, they want to compile Docker manually
|
|
|
|
depends_on "docker" => :recommended
|
|
|
|
depends_on "boot2docker" => :recommended
|
|
|
|
|
2015-01-11 14:48:27 +00:00
|
|
|
resource "docker-py" do
|
2015-02-26 01:06:22 +00:00
|
|
|
url "https://pypi.python.org/packages/source/d/docker-py/docker-py-0.7.2.tar.gz"
|
|
|
|
sha1 "c526e95ea974b2a40392dbe00d0ecbfffa6c5d4b"
|
2014-06-01 00:20:24 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "pyyaml" do
|
2015-01-11 14:48:27 +00:00
|
|
|
url "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz"
|
|
|
|
sha1 "1a2d5df8b31124573efb9598ec6d54767f3c4cd4"
|
2014-06-01 00:20:24 +00:00
|
|
|
end
|
|
|
|
|
2015-01-11 14:48:27 +00:00
|
|
|
resource "six" do
|
|
|
|
url "https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz"
|
|
|
|
sha1 "d168e6d01f0900875c6ecebc97da72d0fda31129"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "dockerpty" do
|
|
|
|
url "https://pypi.python.org/packages/source/d/dockerpty/dockerpty-0.3.2.tar.gz"
|
|
|
|
sha1 "4b323b7c2fce84452dc5950ff1b32d97d9a412aa"
|
2014-06-01 00:20:24 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "texttable" do
|
|
|
|
url "https://pypi.python.org/packages/source/t/texttable/texttable-0.8.1.tar.gz"
|
|
|
|
sha1 "ca505fb7424defa99f5a85bdaf433a6b24ffa82c"
|
|
|
|
end
|
|
|
|
|
2015-01-11 14:48:27 +00:00
|
|
|
resource "docopt" do
|
|
|
|
url "https://pypi.python.org/packages/source/d/docopt/docopt-0.6.2.tar.gz"
|
|
|
|
sha1 "224a3ec08b56445a1bd1583aad06b00692671e04"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "requests" do
|
2015-02-26 01:06:22 +00:00
|
|
|
url "https://pypi.python.org/packages/source/r/requests/requests-2.4.3.tar.gz"
|
|
|
|
sha1 "411f1bfa44556f7dd0f34cd822047c31baa7d741"
|
2015-01-11 14:48:27 +00:00
|
|
|
end
|
|
|
|
|
2014-06-01 00:20:24 +00:00
|
|
|
resource "websocket-client" do
|
|
|
|
url "https://pypi.python.org/packages/source/w/websocket-client/websocket-client-0.11.0.tar.gz"
|
|
|
|
sha1 "a38cb6072a25b18faf11d31dd415750692c36f33"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2015-01-11 14:48:27 +00:00
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
2014-07-18 22:21:48 +00:00
|
|
|
resources.each do |r|
|
2015-01-11 14:48:27 +00:00
|
|
|
r.stage do
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
|
|
|
end
|
2014-06-01 00:20:24 +00:00
|
|
|
end
|
|
|
|
|
2015-01-11 14:48:27 +00:00
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec)
|
2014-06-01 00:20:24 +00:00
|
|
|
|
2015-03-04 19:44:02 +00:00
|
|
|
bash_completion.install "contrib/completion/bash/docker-compose"
|
|
|
|
|
2015-01-11 14:48:27 +00:00
|
|
|
bin.install Dir[libexec/"bin/*"]
|
|
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
2015-02-26 01:06:22 +00:00
|
|
|
ln_s bin/"docker-compose", bin/"fig"
|
2014-06-01 00:20:24 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-02-26 01:06:22 +00:00
|
|
|
system "#{bin}/docker-compose", "--version"
|
2014-06-01 00:20:24 +00:00
|
|
|
end
|
|
|
|
end
|