aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAndy Shinn2014-12-11 09:46:45 -0600
committerTim D. Smith2014-12-12 23:09:13 -0800
commit89a986f700ec294be63280495bb008b2b6f2d76a (patch)
tree19ec2ebfe1f88cf13bb9d547620cf20c75d3f43a /Library
parent00e53a999364c3d708982d698fd0d1d35fcefe3e (diff)
downloadhomebrew-89a986f700ec294be63280495bb008b2b6f2d76a.tar.bz2
deis 1.1.0
Closes #34845. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/deis.rb62
1 files changed, 62 insertions, 0 deletions
diff --git a/Library/Formula/deis.rb b/Library/Formula/deis.rb
new file mode 100644
index 000000000..179aedb93
--- /dev/null
+++ b/Library/Formula/deis.rb
@@ -0,0 +1,62 @@
+require "formula"
+
+class Deis < Formula
+ homepage "http://deis.io"
+ url "https://github.com/deis/deis/archive/v1.1.0.tar.gz"
+ sha1 "c57fb6073b374b95262c36959c6d2b6c508cda59"
+
+ 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.2.tar.gz"
+ sha1 "fbafcd19ea0082b3ecb17695b4cb46070181699f"
+ 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.4.3.tar.gz"
+ sha1 "411f1bfa44556f7dd0f34cd822047c31baa7d741"
+ 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.8.0.tar.gz"
+ sha1 "aa3b0659cbc85c6c7a91efc51f2d1007040070cd"
+ 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