2014-12-11 15:46:45 +00:00
|
|
|
class Deis < Formula
|
|
|
|
homepage "http://deis.io"
|
2015-03-03 17:07:41 +00:00
|
|
|
url "https://github.com/deis/deis/archive/v1.4.0.tar.gz"
|
|
|
|
sha1 "96bb7bb71bfe32cfb5e148ccb9deabd621ddbcd4"
|
2014-12-11 15:46:45 +00:00
|
|
|
|
2014-12-12 03:48:32 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-01-27 09:29:07 +00:00
|
|
|
sha1 "cafd088c365c8ab39e6a145b8791b5c0d3b0bed4" => :yosemite
|
|
|
|
sha1 "d9ee796b02fd0cb6c49bf5f3b5675e43fc31dc41" => :mavericks
|
|
|
|
sha1 "25164979f8da8ed21d230131319dbacf26289511" => :mountain_lion
|
2014-12-12 03:48:32 +00:00
|
|
|
end
|
|
|
|
|
2014-12-11 15:46:45 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
depends_on "libyaml"
|
|
|
|
|
|
|
|
resource "docopt" do
|
|
|
|
url "https://pypi.python.org/packages/source/d/docopt/docopt-0.6.2.tar.gz"
|
|
|
|
sha1 "224a3ec08b56445a1bd1583aad06b00692671e04"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "python-dateutil" do
|
2015-03-03 17:07:41 +00:00
|
|
|
url "https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.4.0.tar.gz"
|
|
|
|
sha1 "159081a4c5b3602ab440a7db305f987c00ee8c6d"
|
2014-12-11 15:46:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "PyYAML" do
|
|
|
|
url "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz"
|
|
|
|
sha1 "1a2d5df8b31124573efb9598ec6d54767f3c4cd4"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "requests" do
|
2015-01-10 17:45:30 +00:00
|
|
|
url "https://pypi.python.org/packages/source/r/requests/requests-2.5.1.tar.gz"
|
|
|
|
sha1 "f906c441be2f0e7a834cbf701a72788d3ac3d144"
|
2014-12-11 15:46:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "termcolor" do
|
|
|
|
url "https://pypi.python.org/packages/source/t/termcolor/termcolor-1.1.0.tar.gz"
|
|
|
|
sha1 "52045880a05c0fbd192343d9c9aad46a73d20e8c"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "six" do
|
2015-01-10 17:45:30 +00:00
|
|
|
url "https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz"
|
|
|
|
sha1 "d168e6d01f0900875c6ecebc97da72d0fda31129"
|
2014-12-11 15:46:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
|
|
|
|
|
|
|
resources.each do |r|
|
|
|
|
r.stage do
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
cd "client" do
|
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec)
|
|
|
|
end
|
|
|
|
|
|
|
|
bin.install Dir[libexec/"bin/*"]
|
|
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/deis", "logout"
|
|
|
|
end
|
|
|
|
end
|