2015-01-06 15:05:05 +00:00
|
|
|
class Duck < Formula
|
|
|
|
homepage "https://duck.sh/"
|
2015-04-23 11:13:09 +00:00
|
|
|
url "https://dist.duck.sh/duck-src-4.7.17432.tar.gz"
|
|
|
|
sha1 "100996ffbabf2586eb149efd3097b4af20efa728"
|
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-04-24 13:59:18 +00:00
|
|
|
sha256 "d514c0960a9d735b84257e57f7878b87bdc99d425aa7dd3cab456ec57f5fcafe" => :yosemite
|
|
|
|
sha256 "4b2278554fe444de99c510fce0d236058ddf3c63d504a566d3ad33eb34f66b53" => :mavericks
|
|
|
|
sha256 "e6963de8e17bd35f4299e9add6176bdb434b9760450019ef1d36ca99577ea73a" => :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
|