2013-06-20 22:09:37 +00:00
|
|
|
class Dub < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Build tool for D projects"
|
2015-12-18 19:03:47 +00:00
|
|
|
homepage "https://code.dlang.org/about"
|
2016-05-24 09:05:50 +00:00
|
|
|
url "https://github.com/dlang/dub.git", :tag => "v0.9.25", :revision => "777e0033e9ca502c134a6cca6b5a06d0e3f78617"
|
|
|
|
head "https://github.com/dlang/dub.git", :shallow => false
|
2013-06-20 22:09:37 +00:00
|
|
|
|
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
|
2015-03-26 11:45:24 +00:00
|
|
|
depends_on "dmd" => :build
|
2013-06-20 22:09:37 +00:00
|
|
|
|
|
|
|
def install
|
2016-06-07 12:41:47 +00:00
|
|
|
ENV["GITVER"] = "1.0.0-beta.1" if build.devel?
|
2013-06-20 22:09:37 +00:00
|
|
|
system "./build.sh"
|
2014-05-08 16:40:15 +00:00
|
|
|
bin.install "bin/dub"
|
2013-06-20 22:09:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/dub; true"
|
|
|
|
end
|
|
|
|
end
|