2015-01-06 15:05:05 +00:00
|
|
|
class Duck < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Command-line interface for Cyberduck (a multi-protocol file transfer tool)"
|
2015-01-06 15:05:05 +00:00
|
|
|
homepage "https://duck.sh/"
|
2015-08-09 11:14:28 +00:00
|
|
|
url "https://dist.duck.sh/duck-src-4.7.2.18007.tar.gz"
|
|
|
|
sha256 "2b30071ef58aed42805724f318b1e3f013749cc534e54265ee305dfc2ec86d69"
|
2015-01-06 15:05:05 +00:00
|
|
|
head "https://svn.cyberduck.io/trunk/"
|
|
|
|
|
2015-01-11 23:40:12 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-07-03 13:55:02 +00:00
|
|
|
sha256 "bfe86da78894f372c068519d0ad4c460bc30f575fa7d340fc598ca8347b959c2" => :yosemite
|
|
|
|
sha256 "815df4596b0403106df8a896c250af44b76ecaf1670a239b97a7c5926ce95d71" => :mavericks
|
|
|
|
sha256 "e0183f13dcf4caa7522b25896708ad2ba1de370749eae07a0216c44b408f6223" => :mountain_lion
|
2015-01-11 23:40:12 +00:00
|
|
|
end
|
|
|
|
|
2015-04-23 11:13:09 +00:00
|
|
|
depends_on :java => ["1.7+", :build]
|
2015-01-06 15:05:05 +00:00
|
|
|
depends_on :xcode => :build
|
|
|
|
depends_on "ant" => :build
|
|
|
|
|
|
|
|
def install
|
2015-01-12 13:42:23 +00:00
|
|
|
revision = version.to_s.rpartition(".").last
|
|
|
|
system "ant", "-Dbuild.compile.target=1.7", "-Drevision=#{revision}", "cli"
|
2015-01-06 15:05:05 +00:00
|
|
|
libexec.install Dir["build/duck.bundle/*"]
|
|
|
|
bin.install_symlink "#{libexec}/Contents/MacOS/duck" => "duck"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
filename = (testpath/"test")
|
|
|
|
system "#{bin}/duck", "--download", stable.url, filename
|
|
|
|
filename.verify_checksum stable.checksum
|
|
|
|
end
|
|
|
|
end
|