diff options
| author | Jack Nagel | 2014-12-16 20:47:39 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-16 20:47:39 -0500 |
| commit | f74fea9bc8b300a8e6f3c58b47bd1a8335937eb7 (patch) | |
| tree | c80cadb7a94ad4bbbc795fb2cc78c55db85c0aed /Library/Formula | |
| parent | a44fb977d44fcd3d40c0f669a3d3ec68b431afe0 (diff) | |
| download | homebrew-f74fea9bc8b300a8e6f3c58b47bd1a8335937eb7.tar.bz2 | |
dub: remove custom download strategy
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/dub.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Library/Formula/dub.rb b/Library/Formula/dub.rb index 36928231d..617bfdd5e 100644 --- a/Library/Formula/dub.rb +++ b/Library/Formula/dub.rb @@ -1,20 +1,11 @@ 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 - cached_location.cd { reset } - quiet_safe_system "git", "clone", cached_location, "." - end -end - class Dub < Formula homepage "http://code.dlang.org/about" url "https://github.com/D-Programming-Language/dub/archive/v0.9.22.tar.gz" sha1 "9a7b7c838f1241de209473c09a194d355279457b" - head "https://github.com/D-Programming-Language/dub.git", :using => DubHeadDownloadStrategy, :shallow => false + head "https://github.com/D-Programming-Language/dub.git", :shallow => false devel do url "https://github.com/D-Programming-Language/dub/archive/v0.9.22-rc.1.tar.gz" @@ -26,6 +17,7 @@ class Dub < Formula depends_on "dmd" => :build def install + ENV["GIT_DIR"] = cached_download/".git" system "./build.sh" bin.install "bin/dub" end |
