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-23 01:56:04 +00:00
|
|
|
url "https://dist.duck.sh/duck-src-4.8.18026.tar.gz"
|
|
|
|
sha256 "ff75b2b0a4df30aef4f6cd2ba20fb3fa1198760fb7d8216abc62e032df4aa1e4"
|
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-08-10 09:37:09 +00:00
|
|
|
sha256 "1cf4fd37421f57153d17789025ad2b95909e009e8507226d3e33457474f47121" => :yosemite
|
|
|
|
sha256 "0be31b18470ab4fe70bedbaa730ca1de5204355c2ddd3d114ad4763afdf611f0" => :mavericks
|
|
|
|
sha256 "b2a3135eee96ba4ab7d66b049f16467e61c6cb69a6bbfd98b32c46ef570be9f0" => :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
|
2015-08-23 01:56:04 +00:00
|
|
|
system "#{bin}/duck", "--download", Formula["when"].stable.url, testpath/"test"
|
|
|
|
(testpath/"test").verify_checksum Formula["when"].stable.checksum
|
2015-01-06 15:05:05 +00:00
|
|
|
end
|
|
|
|
end
|