aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTony Beckham2014-03-21 15:12:58 -0700
committerMike McQuaid2014-03-24 18:59:09 +0000
commitc31211690f400dea41b9979cec9f5437b12d99a1 (patch)
tree74e37180b1b7d7fde894e7c8270e7c4a3ea5a084 /Library/Formula
parentca522299773f27321161625addbbc6a804350fbe (diff)
downloadhomebrew-c31211690f400dea41b9979cec9f5437b12d99a1.tar.bz2
euca2ools 3.0.2 (new formula)
Commandline tools for interacting with AWS or Eucalyptus. Closes #27772. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/euca2ools.rb61
1 files changed, 61 insertions, 0 deletions
diff --git a/Library/Formula/euca2ools.rb b/Library/Formula/euca2ools.rb
new file mode 100644
index 000000000..9ef6efcb4
--- /dev/null
+++ b/Library/Formula/euca2ools.rb
@@ -0,0 +1,61 @@
+require "formula"
+
+class Euca2ools < Formula
+ homepage "https://github.com/eucalyptus/euca2ools"
+ url "https://github.com/eucalyptus/euca2ools/archive/3.0.2.tar.gz"
+ sha1 "73e235e7e6b17c8d1fb064c14aa24a3de36640e7"
+ head "https://github.com/eucalyptus/euca2ools.git", :branch => "master"
+
+ depends_on :python
+
+ resource "requestbuilder" do
+ url "https://github.com/boto/requestbuilder/archive/0.1.0.tar.gz"
+ sha1 "9674b907d6a152b2daccfd5e63e11463be31a5ab"
+ end
+
+ resource "requests" do
+ url "https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz"
+ sha1 "88eb1fd6a0dfb8b97262f8029978d7c75eebc16f"
+ end
+
+ resource "setuptools" do
+ url "https://pypi.python.org/packages/source/s/setuptools/setuptools-2.2.tar.gz"
+ sha1 "547eff11ea46613e8a9ba5b12a89c1010ecc4e51"
+ end
+
+ resource "six" do
+ url "https://pypi.python.org/packages/source/s/six/six-1.6.1.tar.gz"
+ sha1 "2a7941cc2233d9ad6d7d54dd5265d1eb9726c5a1"
+ end
+
+ resource "lxml" do
+ url "https://pypi.python.org/packages/source/l/lxml/lxml-3.3.3.tar.gz"
+ sha1 "e701a4d8d7840fdf04944004dc0f38deff65214b"
+ end
+
+ def install
+ ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
+ install_args = ["setup.py", "install", "--prefix=#{libexec}"]
+
+ # lxml's C bindings use flags unrecognized by clang,
+ # but since it doesn't use a makefile arg refurbishment
+ # is normally not enabled.
+ # See https://github.com/Homebrew/homebrew/issues/27639
+ ENV.append "HOMEBREW_CCCFG", "O"
+
+ resource("requestbuilder").stage { system "python", *install_args }
+ resource("requests").stage { system "python", *install_args }
+ resource("setuptools").stage { system "python", *install_args }
+ resource("lxml").stage { system "python", *install_args }
+ resource("six").stage { system "python", *install_args }
+
+ 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
+ system "#{bin}/euca-describe-instances", "--help"
+ end
+end