aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-03 14:46:18 +0100
committerMike McQuaid2015-01-04 10:35:15 +0000
commit1c1e7d1cb42e46ec56aa07784eb648cd9732a171 (patch)
treec166bfd8dfe39fac65b7cb41a621b1d700fa4b18 /Library/Formula
parent8ee74297e179eeda9b5f2c470597c2b16421e0de (diff)
downloadhomebrew-1c1e7d1cb42e46ec56aa07784eb648cd9732a171.tar.bz2
aws-elasticbeanstalk: basic test added + modernize
Closes #35512. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/aws-elasticbeanstalk.rb25
1 files changed, 16 insertions, 9 deletions
diff --git a/Library/Formula/aws-elasticbeanstalk.rb b/Library/Formula/aws-elasticbeanstalk.rb
index ad7170602..fe5990f4f 100644
--- a/Library/Formula/aws-elasticbeanstalk.rb
+++ b/Library/Formula/aws-elasticbeanstalk.rb
@@ -1,14 +1,21 @@
-require 'formula'
-
class AwsElasticbeanstalk < AmazonWebServicesFormula
- homepage 'http://aws.amazon.com/code/6752709412171743'
- url 'https://s3.amazonaws.com/elasticbeanstalk/cli/AWS-ElasticBeanstalk-CLI-2.6.4.zip'
- sha1 '01dabe18801d4e16a1790ff737a28e29fdebb0ef'
+ homepage "http://aws.amazon.com/code/6752709412171743"
+ url "https://pypi.python.org/packages/source/a/awsebcli/awsebcli-3.0.10.tar.gz"
+ sha1 "60cb08e1946c6fa141c4708c2ea2020e2c03f0fc"
+
+ depends_on :python if MacOS.version <= :snow_leopard
def install
- # Remove versions for other platforms.
- rm_rf %w{eb/windows eb/linux AWSDevTools/Windows}
- libexec.install %w{AWSDevTools api eb}
- bin.install_symlink libexec/"eb/macosx/python2.7/eb"
+ ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
+
+ system "python", "setup.py", "install", "--prefix=#{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