50 lines
2.1 KiB
Ruby
50 lines
2.1 KiB
Ruby
class S3cmd < Formula
|
|
desc "Command-line tool for the Amazon S3 service"
|
|
homepage "http://s3tools.org/s3cmd"
|
|
url "https://downloads.sourceforge.net/project/s3tools/s3cmd/2.0.0/s3cmd-2.0.0.tar.gz"
|
|
sha256 "bf2a50802f1031cba83e99be488965803899d8ab0228c800c833b55c7269cd48"
|
|
head "https://github.com/s3tools/s3cmd.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "4a549ae2ffe3d604c94d92c4b5028de1053ce654dfd690b717549afbee5d8952" => :high_sierra
|
|
sha256 "5b768bdb9e81752dafd0f7d0bbffb349a663665322dee8659d5150b74b849a51" => :sierra
|
|
sha256 "10ece7a8b1360bd8c0360cadb104dd071728622c2889bbd5acaf389ff899bab1" => :el_capitan
|
|
sha256 "10ece7a8b1360bd8c0360cadb104dd071728622c2889bbd5acaf389ff899bab1" => :yosemite
|
|
end
|
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
resource "python-dateutil" do
|
|
url "https://files.pythonhosted.org/packages/51/fc/39a3fbde6864942e8bb24c93663734b74e281b984d1b8c4f95d64b0c21f6/python-dateutil-2.6.0.tar.gz"
|
|
sha256 "62a2f8df3d66f878373fd0072eacf4ee52194ba302e00082828e0d263b0418d2"
|
|
end
|
|
|
|
resource "python-magic" do
|
|
url "https://files.pythonhosted.org/packages/65/0b/c6b31f686420420b5a16b24a722fe980724b28d76f65601c9bc324f08d02/python-magic-0.4.13.tar.gz"
|
|
sha256 "604eace6f665809bebbb07070508dfa8cabb2d7cb05be9a56706c60f864f1289"
|
|
end
|
|
|
|
resource "six" do
|
|
url "https://files.pythonhosted.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz"
|
|
sha256 "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"
|
|
end
|
|
|
|
def install
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
|
resources.each do |r|
|
|
r.stage { system "python", *Language::Python.setup_install_args(libexec/"vendor") }
|
|
end
|
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
|
|
system "python", *Language::Python.setup_install_args(libexec)
|
|
|
|
bin.install Dir[libexec/"bin/*"]
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
man1.install Dir[libexec/"share/man/man1/*"]
|
|
end
|
|
|
|
test do
|
|
system bin/"s3cmd", "--help"
|
|
end
|
|
end
|