duck 5.3.8.23611

Closes #10484.

Signed-off-by: JCount <JCount42@gmail.com>
This commit is contained in:
David Kocher 2017-03-01 16:05:36 +01:00 committed by JCount
parent 92bb0e6314
commit 370be34b56

View file

@ -2,8 +2,8 @@ class Duck < Formula
desc "Command-line interface for Cyberduck (a multi-protocol file transfer tool)"
homepage "https://duck.sh/"
# check the changelog for the latest stable version: https://cyberduck.io/changelog/
url "https://dist.duck.sh/duck-src-4.7.3.18396.tar.gz"
sha256 "47e25f0a28393c388f37d319c9d51dd51eebdf15198ee48df3995af8a60bcc16"
url "https://dist.duck.sh/duck-src-5.3.8.23611.tar.gz"
sha256 "809b94dd1689a3b8473fe4e0ee329068aa361de82cf060cde9d3a0a2696f43f0"
head "https://svn.cyberduck.io/trunk/"
bottle do
@ -17,11 +17,13 @@ class Duck < Formula
depends_on :java => ["1.8+", :build]
depends_on :xcode => :build
depends_on "ant" => :build
depends_on "maven" => :build
def install
ENV.java_cache
revision = version.to_s.rpartition(".").last
system "ant", "-Dbuild.compile.target=1.8", "-Drevision=#{revision}", "cli"
libexec.install Dir["build/duck.bundle/*"]
system "mvn", "-DskipTests", "-Dgit.commitsCount=#{revision}", "--projects", "cli/osx", "--also-make", "verify"
libexec.install Dir["cli/osx/target/duck.bundle/*"]
bin.install_symlink "#{libexec}/Contents/MacOS/duck" => "duck"
end