diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/aws-elasticbeanstalk.rb | 25 |
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 |
