homebrew-core/Formula/dub.rb

32 lines
1,000 B
Ruby
Raw Normal View History

class Dub < Formula
desc "Build tool for D projects"
2015-12-18 19:03:47 +00:00
homepage "https://code.dlang.org/about"
url "https://github.com/dlang/dub.git", :tag => "v0.9.25", :revision => "777e0033e9ca502c134a6cca6b5a06d0e3f78617"
head "https://github.com/dlang/dub.git", :shallow => false
2015-04-06 13:38:08 +00:00
bottle do
2016-05-24 13:58:02 +00:00
sha256 "072b9fa9d4907e79978c78f573d3a487f7ea6ca567d813d8d7311d1c43fbffee" => :el_capitan
sha256 "dd641577df4e3a73fa797e97a268c606d0ba4160623bfa7ec0683c162fb8c578" => :yosemite
sha256 "1c05ee4b3f609f81cd1507e22706befa2b78b945b8e2a7560d86e0a13746e845" => :mavericks
2015-04-06 13:38:08 +00:00
end
2016-06-07 12:41:47 +00:00
devel do
url "https://github.com/dlang/dub/archive/v1.0.0-beta.1.tar.gz"
sha256 "47191b7299562e0f25bdad28ad8be1d4fe09e6f7c40f50acc78455e3dc28da0c"
version "1.0.0-beta.1"
end
2014-05-08 16:40:15 +00:00
depends_on "pkg-config" => :build
depends_on "dmd" => :build
def install
2016-06-07 12:41:47 +00:00
ENV["GITVER"] = "1.0.0-beta.1" if build.devel?
system "./build.sh"
2014-05-08 16:40:15 +00:00
bin.install "bin/dub"
end
test do
system "#{bin}/dub; true"
end
end