2013-06-20 22:09:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Dub < Formula
|
|
|
|
homepage 'http://registry.vibed.org/'
|
2013-11-05 14:38:01 +00:00
|
|
|
url 'https://github.com/rejectedsoftware/dub/archive/v0.9.19.tar.gz'
|
|
|
|
sha1 'dcf880029190180a1a4a4753237c0eb164941c98'
|
2013-06-20 22:09:37 +00:00
|
|
|
|
2013-06-29 01:31:55 +00:00
|
|
|
head 'https://github.com/rejectedsoftware/dub.git'
|
2013-06-20 22:09:37 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'dmd' => :build
|
|
|
|
|
2013-11-11 17:09:48 +00:00
|
|
|
# patch is in upstream master
|
|
|
|
def patches
|
|
|
|
[
|
|
|
|
"https://github.com/rejectedsoftware/dub/commit/0e91afd52babf96128be43120dfd5f9a38b4d202.patch",
|
|
|
|
"https://github.com/rejectedsoftware/dub/commit/b08454b6baa5c7e9e2d5a21c943c21cb986fff23.patch",
|
|
|
|
]
|
|
|
|
end
|
2013-11-05 14:38:01 +00:00
|
|
|
|
2013-06-20 22:09:37 +00:00
|
|
|
def install
|
|
|
|
system "./build.sh"
|
|
|
|
bin.install 'bin/dub'
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/dub; true"
|
|
|
|
end
|
|
|
|
end
|