diff options
| author | David Kocher | 2015-01-06 16:05:05 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-12 13:44:48 +0000 |
| commit | 9b7fca1ae74e6c94592416edc010d672d6e5bd0e (patch) | |
| tree | 3a434a885da2c0949932e26f622c6433aa29532a /Library | |
| parent | ebfad2d15f4f7a053ea9a69bafff0e548359f32d (diff) | |
| download | homebrew-9b7fca1ae74e6c94592416edc010d672d6e5bd0e.tar.bz2 | |
duck 4.6.2.16366 (new formula)
Closes #35605.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/duck.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/duck.rb b/Library/Formula/duck.rb new file mode 100644 index 000000000..613248dab --- /dev/null +++ b/Library/Formula/duck.rb @@ -0,0 +1,22 @@ +class Duck < Formula + homepage "https://duck.sh/" + url "https://dist.duck.sh/duck-src-4.6.2.16366.tar.gz" + sha1 "135f7ca7315fd478607e590eaa2df43418d85e0d" + head "https://svn.cyberduck.io/trunk/" + + depends_on :java => [:build, "1.7"] + depends_on :xcode => :build + depends_on "ant" => :build + + def install + system "ant", "-Dbuild.compile.target=1.7", "-Drevision=#{version.to_str[/(\d\.\d(\.\d)?)\.(\d+)/, 3]}", "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 |
