72 lines
2.3 KiB
Ruby
72 lines
2.3 KiB
Ruby
class Deis < Formula
|
|
homepage "http://deis.io"
|
|
url "https://github.com/deis/deis/archive/v1.5.1.tar.gz"
|
|
sha1 "3a4b0caa0720785a6c093d15a62f2bcbb76324a4"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "fec83c5afc3261b56fccb415ae89588b1cde6828a007af0495b22f7cfbc93195" => :yosemite
|
|
sha256 "eb491d5b606955a10c0dfd916d61964e1a7b2447556b86b2928f977ba7036a0f" => :mavericks
|
|
sha256 "e357da38990b1e9cfd4ee3ad9577b8fa2c0e029752b0705d0bcaf6b9a14d899a" => :mountain_lion
|
|
end
|
|
|
|
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
|
|
url "https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.4.1.post1.tar.gz"
|
|
sha1 "55c712dac45ad14532d9bc05b64ba7e4bf6b56c6"
|
|
end
|
|
|
|
resource "PyYAML" do
|
|
url "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz"
|
|
sha1 "1a2d5df8b31124573efb9598ec6d54767f3c4cd4"
|
|
end
|
|
|
|
resource "requests" do
|
|
url "https://pypi.python.org/packages/source/r/requests/requests-2.5.1.tar.gz"
|
|
sha1 "f906c441be2f0e7a834cbf701a72788d3ac3d144"
|
|
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
|
|
url "https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz"
|
|
sha1 "d168e6d01f0900875c6ecebc97da72d0fda31129"
|
|
end
|
|
|
|
resource "tabulate" do
|
|
url "https://pypi.python.org/packages/source/t/tabulate/tabulate-0.7.4.tar.gz"
|
|
sha1 "8aa77884fc87932855f1a7eb7d741cc60e72281d"
|
|
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
|