blob: 4eaf6826c228390bd5943e55f70824fb7e73eb33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
class Duck < Formula
homepage "https://duck.sh/"
url "https://dist.duck.sh/duck-src-4.6.2.16480.tar.gz"
sha1 "6e38a90c97bbe7d577791a4fbdd07872e8457101"
head "https://svn.cyberduck.io/trunk/"
bottle do
cellar :any
sha1 "1455577527b024dd1ddf28fba3ab11f91458e7e7" => :yosemite
sha1 "cdbefd6d85244b658515fa639c07f2b05c37c4eb" => :mavericks
sha1 "d67d55eabd017376079eaed8ded19bc4c28f83d0" => :mountain_lion
end
depends_on :java => [:build, "1.7"]
depends_on :xcode => :build
depends_on "ant" => :build
def install
revision = version.to_s.rpartition(".").last
system "ant", "-Dbuild.compile.target=1.7", "-Drevision=#{revision}", "cli"
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
|