84824c15c1
Closes Homebrew/homebrew#38310. Signed-off-by: Tim D. Smith <git@tim-smith.us>
58 lines
2 KiB
Ruby
58 lines
2 KiB
Ruby
class AwsElasticbeanstalk < Formula
|
|
homepage "https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-reference-eb.html"
|
|
url "https://pypi.python.org/packages/source/a/awsebcli/awsebcli-3.2.tar.gz"
|
|
sha1 "599f3ad277134e8fe061e23aa5e1cbe0b6844311"
|
|
|
|
bottle do
|
|
cellar :any
|
|
revision 1
|
|
sha256 "3f7cdd03a9fb9760224f1ffc74d037632843e24a73ba5e14b672f5945c38434a" => :yosemite
|
|
sha256 "caa631e158241080dfee852e34e2e88621c0a995f2913250a85608af0d4c316c" => :mavericks
|
|
sha256 "489c6cfdd9bf63554077c485931c07f41654b22f4d584f78e007b940210b08fa" => :mountain_lion
|
|
end
|
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
resource "pyyaml" do
|
|
url "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz"
|
|
sha1 "1a2d5df8b31124573efb9598ec6d54767f3c4cd4"
|
|
end
|
|
|
|
resource "cement" do
|
|
url "https://pypi.python.org/packages/source/c/cement/cement-2.4.0.tar.gz"
|
|
sha1 "25e4fc1f85cc37fc6286bf0aa6cbf0ff23928044"
|
|
end
|
|
|
|
resource "python-dateutil" do
|
|
url "https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.4.0.tar.gz"
|
|
sha1 "159081a4c5b3602ab440a7db305f987c00ee8c6d"
|
|
end
|
|
|
|
resource "jmespath" do
|
|
url "https://pypi.python.org/packages/source/j/jmespath/jmespath-0.6.1.tar.gz"
|
|
sha1 "f3fc294e5225f2529968f58eb75c9da91fbeb9c1"
|
|
end
|
|
|
|
resource "six" do
|
|
url "https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz"
|
|
sha1 "d168e6d01f0900875c6ecebc97da72d0fda31129"
|
|
end
|
|
|
|
def install
|
|
ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
|
|
|
|
resources.each do |r|
|
|
r.stage { system "python", *Language::Python.setup_install_args(libexec) }
|
|
end
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec)
|
|
|
|
bash_completion.install libexec/"bin/eb_completion.bash"
|
|
bin.install Dir[libexec/"bin/{eb,jp}"]
|
|
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/eb", "--version"
|
|
end
|
|
end
|