2014-03-21 22:12:58 +00:00
|
|
|
class Euca2ools < Formula
|
2015-06-05 14:55:47 +00:00
|
|
|
desc "Eucalyptus client API tools-works with Amazon EC2 and IAM"
|
2014-03-21 22:12:58 +00:00
|
|
|
homepage "https://github.com/eucalyptus/euca2ools"
|
2015-07-31 23:18:58 +00:00
|
|
|
url "https://github.com/eucalyptus/euca2ools/archive/v3.2.1.tar.gz"
|
|
|
|
sha256 "1d232d6c389b1fa1de9132abd04356bd3e28160e8410a0e5a41f5e0f3da4a125"
|
2014-12-03 22:44:40 +00:00
|
|
|
head "https://github.com/eucalyptus/euca2ools.git"
|
2014-03-21 22:12:58 +00:00
|
|
|
|
2014-12-24 14:59:03 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-07-31 23:29:12 +00:00
|
|
|
sha256 "8c7ef23097472b3b801d13abdfb4d416ea8156ea69915b5ab09051f7bbc1e4c8" => :yosemite
|
|
|
|
sha256 "fe63a3a7c44cd0f276962ff87e3f39d02ed667f09006f1357a30ce96616a0b34" => :mavericks
|
|
|
|
sha256 "fd09cae80f9a8648fc1a7048bd8eb3f2856c6df746baeae2ded8f33829eafb5b" => :mountain_lion
|
2014-12-24 14:59:03 +00:00
|
|
|
end
|
|
|
|
|
2014-04-30 22:38:40 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2014-03-21 22:12:58 +00:00
|
|
|
|
|
|
|
resource "requestbuilder" do
|
2015-07-31 23:18:58 +00:00
|
|
|
url "https://github.com/boto/requestbuilder/archive/v0.3.4.tar.gz"
|
|
|
|
sha256 "f4fa8fab964b7ed94163d941c752e33dce3fd059f29618c9243808fd89a9aeb4"
|
2014-03-21 22:12:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "requests" do
|
2015-03-14 21:14:40 +00:00
|
|
|
url "https://pypi.python.org/packages/source/r/requests/requests-2.6.0.tar.gz"
|
|
|
|
sha256 "1cdbed1f0e236f35ef54e919982c7a338e4fea3786310933d3a7887a04b74d75"
|
2014-03-21 22:12:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "setuptools" do
|
2015-04-06 23:43:35 +00:00
|
|
|
url "https://pypi.python.org/packages/source/s/setuptools/setuptools-15.0.tar.gz"
|
|
|
|
sha256 "718d13adf87f99a45835bb20e0a1c4c036de644cd32b3f112639403aa04ebeb5"
|
2014-03-21 22:12:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "six" do
|
2015-04-06 23:43:35 +00:00
|
|
|
url "https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz"
|
|
|
|
sha256 "e24052411fc4fbd1f672635537c3fc2330d9481b18c0317695b46259512c91d5"
|
2014-03-21 22:12:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "lxml" do
|
2015-04-06 23:43:35 +00:00
|
|
|
url "https://pypi.python.org/packages/source/l/lxml/lxml-3.4.2.tar.gz"
|
|
|
|
sha256 "c7d5990298af6ffb00312973a25f0cc917a6368126dd40eaab41d78d3e1ea25d"
|
2014-03-21 22:12:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2014-04-30 22:38:40 +00:00
|
|
|
ENV["PYTHONPATH"] = lib+"python2.7/site-packages"
|
2014-03-21 22:12:58 +00:00
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
|
|
|
|
|
2014-07-19 03:42:47 +00:00
|
|
|
resources.each do |r|
|
|
|
|
r.stage { system "python", "setup.py", "install", "--prefix=#{libexec}" }
|
|
|
|
end
|
2014-03-21 22:12:58 +00:00
|
|
|
|
|
|
|
system "python", "setup.py", "install", "--single-version-externally-managed", "--record=installed.txt",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
|
|
|
|
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-12-24 14:49:44 +00:00
|
|
|
system "#{bin}/euca-version"
|
2014-03-21 22:12:58 +00:00
|
|
|
system "#{bin}/euca-describe-instances", "--help"
|
|
|
|
end
|
|
|
|
end
|