2014-03-21 22:12:58 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Euca2ools < Formula
|
|
|
|
homepage "https://github.com/eucalyptus/euca2ools"
|
2014-06-11 17:58:25 +00:00
|
|
|
url "https://github.com/eucalyptus/euca2ools/archive/v3.1.0.tar.gz"
|
|
|
|
sha1 "5290172546707f3729da314535a7a9a429edda24"
|
2014-03-21 22:12:58 +00:00
|
|
|
head "https://github.com/eucalyptus/euca2ools.git", :branch => "master"
|
|
|
|
|
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
|
2014-06-11 17:58:25 +00:00
|
|
|
url "https://github.com/boto/requestbuilder/archive/v0.2.1.tar.gz"
|
|
|
|
sha1 "7c9b67293550959c5cd20513ae276727fa224e17"
|
2014-03-21 22:12:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "requests" do
|
2014-06-11 17:58:25 +00:00
|
|
|
url "https://pypi.python.org/packages/source/r/requests/requests-2.3.0.tar.gz"
|
|
|
|
sha1 "f57bc125d35ec01a81afe89f97dc75913a927e65"
|
2014-03-21 22:12:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "setuptools" do
|
2014-06-25 02:31:22 +00:00
|
|
|
url "https://pypi.python.org/packages/source/s/setuptools/setuptools-5.2.tar.gz"
|
|
|
|
sha1 "749f1ea153426866d6117d00256cf37c90b1b4f5"
|
2014-03-21 22:12:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "six" do
|
2014-06-11 17:58:25 +00:00
|
|
|
url "https://pypi.python.org/packages/source/s/six/six-1.7.2.tar.gz"
|
|
|
|
sha1 "6ed970106d18e48b361b09c227dac83b4cc72f26"
|
2014-03-21 22:12:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "lxml" do
|
2014-06-11 17:58:25 +00:00
|
|
|
url "https://pypi.python.org/packages/source/l/lxml/lxml-3.3.5.tar.gz"
|
|
|
|
sha1 "7a6e92f8ca482aab79835e1c9cd8410400792cd9"
|
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
|
|
|
|
system "#{bin}/euca-describe-instances", "--help"
|
|
|
|
end
|
|
|
|
end
|