Commit 37778a71 authored by Ed Reel's avatar Ed Reel Committed by GitHub

Add aws package (#5639)

Update aws2 package description, homepage, license and source_url

Add --single-version-externally-managed to pip install
parent c38e2b9f
require 'package'
class Aws < Package
description 'Universal Command Line Interface for Amazon Web Services'
homepage 'https://github.com/aws/aws-cli'
version '1.19.53'
license 'Apache-2.0'
compatibility 'all'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url({
aarch64: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/aws-1.19.53-chromeos-armv7l.tar.xz',
armv7l: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/aws-1.19.53-chromeos-armv7l.tar.xz',
i686: 'https://downloads.sourceforge.net/project/chromebrew/i686/aws-1.19.53-chromeos-i686.tar.xz',
x86_64: 'https://downloads.sourceforge.net/project/chromebrew/x86_64/aws-1.19.53-chromeos-x86_64.tar.xz',
})
binary_sha256({
aarch64: '4697a774c31755e1fa19e76eb567dd7661392cdee69983b990452d2b3871fd3c',
armv7l: '4697a774c31755e1fa19e76eb567dd7661392cdee69983b990452d2b3871fd3c',
i686: '8b0849272c984f17d5f9c670b3d878767757d1e9161939dd4d8bde9b713f7a10',
x86_64: 'd02cbc9b1abfbc13875d291ef2cdd7cac1fe6cea0b3adfb5746a0fdff7382bff',
})
depends_on 'groff'
depends_on 'setuptools' => :build
def self.install
system "pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} \
-I awscli==#{version} --single-version-externally-managed --no-warn-script-location"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/bash.d"
@awsbashrc = <<~AWSBASHRCEOF
# Amazon Web Services CLI bash completion
source #{CREW_PREFIX}/bin/aws_bash_completer
AWSBASHRCEOF
IO.write("#{CREW_DEST_PREFIX}/etc/bash.d/aws", @awsbashrc)
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/zsh.d"
@awszshrc = <<~AWSZSHRCEOF
# Amazon Web Services CLI zsh completion
source #{CREW_PREFIX}/bin/aws_zsh_completer.sh
AWSZSHRCEOF
IO.write("#{CREW_DEST_PREFIX}/etc/zsh.d/aws", @awszshrc)
end
end
require 'package'
class Aws2 < Package
description 'The AWS CLI is an open source tool built on top of the AWS SDK for Python (Boto) that provides commands for interacting with AWS services.'
homepage 'https://aws.amazon.com/documentation/cli/'
version '0.2.7'
license 'Apache-2.0'
description 'This package makes it easy to start, stop and save AWS spot instances; and to manage EC2 resources.'
homepage 'https://github.com/simonm3/aws2'
@_ver='0.2.7'
version @_ver + '-1'
license 'GPL-3'
compatibility 'all'
source_url 'https://files.pythonhosted.org/packages/8e/d4/56cec0935aef056e6d20581b09c64d6e6395dc3ff381ec89e7c8e7f6667f/aws2-0.2.7.tar.gz'
source_url 'file:///dev/null'
source_sha256 'e7f09c31b8c152ea015a002c2f2dc8745f0e2ec01cc21cc5fd92afb6b97e24a4'
binary_url({
aarch64: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/aws2-0.2.7-chromeos-armv7l.tar.xz',
armv7l: 'https://downloads.sourceforge.net/project/chromebrew/armv7l/aws2-0.2.7-chromeos-armv7l.tar.xz',
i686: 'https://downloads.sourceforge.net/project/chromebrew/i686/aws2-0.2.7-chromeos-i686.tar.xz',
x86_64: 'https://downloads.sourceforge.net/project/chromebrew/x86_64/aws2-0.2.7-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '72215a5bbb0b6f63fa31492d89fe54e17630b505a64f89e37720823c3c346de3',
armv7l: '72215a5bbb0b6f63fa31492d89fe54e17630b505a64f89e37720823c3c346de3',
i686: '1420037e0c3b280a52d31c1ebcd6414449af5639df9beee939e612f16de9412f',
x86_64: 'd966588d9e78c2de23bf36800f46fa084aed2cd2603c417f24d1adba06024f9e'
})
depends_on 'rust' => :build
depends_on 'setuptools' => :build
depends_on 'six'
def self.install
system "pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} -I aws2==#{version} --no-warn-script-location"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/bash.d"
@awsbashrc = <<~AWSBASHRCEOF
# Amazon Web Services CLI bash completion
source #{CREW_PREFIX}/bin/aws_bash_completer
AWSBASHRCEOF
IO.write("#{CREW_DEST_PREFIX}/etc/bash.d/aws", @awsbashrc)
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/zsh.d"
@awszshrc = <<~AWSZSHRCEOF
# Amazon Web Services CLI zsh completion
source #{CREW_PREFIX}/bin/aws_zsh_completer.sh
AWSZSHRCEOF
IO.write("#{CREW_DEST_PREFIX}/etc/bash.d/aws", @awszshrc)
system "pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} -I aws2==#{@_ver} --no-warn-script-location"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment