aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dub.rb
blob: 2a10dd2b280454bb5012e260b5a6f7e02a07abe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Dub < Formula
  homepage 'http://registry.vibed.org/'
  url  'https://github.com/rejectedsoftware/dub/archive/v0.9.16.tar.gz'
  sha1 'ed649b5faee87f0cb239b6c6467850c72c1a656b'

  head 'https://github.com/rejectedsoftware/dub.git'

  depends_on 'pkg-config' => :build
  depends_on 'dmd'  => :build

  def install
    system "./build.sh"
    bin.install 'bin/dub'
  end

  test do
    system "#{bin}/dub; true"
  end
end