34 lines
1 KiB
Ruby
34 lines
1 KiB
Ruby
class Dub < Formula
|
|
desc "Build tool for D projects"
|
|
homepage "https://code.dlang.org/getting_started"
|
|
url "https://github.com/dlang/dub/archive/v1.2.1.tar.gz"
|
|
sha256 "e880cf9ca6234f751a53a427eba71b8d5585b6b660d6a489458f638d2ff60554"
|
|
version_scheme 1
|
|
|
|
head "https://github.com/dlang/dub.git"
|
|
|
|
bottle do
|
|
sha256 "e154102b9495451c0d451ebcd6ac7de6f5baf46274cf7a36ec468166e249b8ac" => :sierra
|
|
sha256 "e154102b9495451c0d451ebcd6ac7de6f5baf46274cf7a36ec468166e249b8ac" => :el_capitan
|
|
sha256 "fdc6753ba4c44dc2cbe6ac04217603c86e91b2f2e2018491d6afe94bcd61560e" => :yosemite
|
|
end
|
|
|
|
devel do
|
|
url "https://github.com/dlang/dub/archive/v1.2.2-beta.1.tar.gz"
|
|
sha256 "16f1de8db0c54b6fe7dc7e5944c6dc0146e9c8e51f38869944ddc778af78e537"
|
|
version "1.2.2-beta.1"
|
|
end
|
|
|
|
depends_on "pkg-config" => [:recommended, :run]
|
|
depends_on "dmd" => :build
|
|
|
|
def install
|
|
ENV["GITVER"] = version.to_s
|
|
system "./build.sh"
|
|
bin.install "bin/dub"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/dub --version")
|
|
end
|
|
end
|