28 lines
700 B
Ruby
28 lines
700 B
Ruby
require "formula"
|
|
|
|
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", :shallow => false
|
|
|
|
devel do
|
|
url "https://github.com/D-Programming-Language/dub/archive/v0.9.22-rc.1.tar.gz"
|
|
sha1 "8ca2ac66675ce869cbf4930e989bb6fa41dc61b8"
|
|
version "0.9.22-rc.1"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "dmd" => :build
|
|
|
|
def install
|
|
ENV["GIT_DIR"] = cached_download/".git"
|
|
system "./build.sh"
|
|
bin.install "bin/dub"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/dub; true"
|
|
end
|
|
end
|