diff options
| author | Adam Vandenberg | 2014-05-08 09:40:15 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-08 09:40:15 -0700 |
| commit | afb2bfb51db43790b4821f5dca187a417624440d (patch) | |
| tree | a464f1fed8bfd2f32870d952dc09ee3c94f4339e /Library/Formula | |
| parent | 4815f883d356c1b19a19b71403b64f82148f7ae7 (diff) | |
| download | homebrew-afb2bfb51db43790b4821f5dca187a417624440d.tar.bz2 | |
dub: style changes
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/dub.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Library/Formula/dub.rb b/Library/Formula/dub.rb index efb8d389d..184f7f666 100644 --- a/Library/Formula/dub.rb +++ b/Library/Formula/dub.rb @@ -1,32 +1,32 @@ -require 'formula' +require "formula" # dub generates version information from git, when building. # To not break this, we provide a custom download strategy. class DubHeadDownloadStrategy < GitDownloadStrategy def stage @clone.cd {reset} - safe_system 'git', 'clone', @clone, '.' + safe_system "git", "clone", @clone, "." end end class Dub < Formula - homepage 'http://code.dlang.org/about' - url 'https://github.com/rejectedsoftware/dub/archive/v0.9.21.tar.gz' - sha1 '7752e14f3f5add50b1c7d9138739d72b276e6abe' + homepage "http://code.dlang.org/about" + url "https://github.com/rejectedsoftware/dub/archive/v0.9.21.tar.gz" + sha1 "7752e14f3f5add50b1c7d9138739d72b276e6abe" - head 'https://github.com/rejectedsoftware/dub.git', :using => DubHeadDownloadStrategy + head "https://github.com/rejectedsoftware/dub.git", :using => DubHeadDownloadStrategy devel do url "https://github.com/rejectedsoftware/dub/archive/v0.9.22-beta.2.tar.gz" sha1 "031b525e6d10515a11c227229a47027281142e6d" end - depends_on 'pkg-config' => :build - depends_on 'dmd' => :build + depends_on "pkg-config" => :build + depends_on "dmd" => :build def install system "./build.sh" - bin.install 'bin/dub' + bin.install "bin/dub" end test do |
