aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/boost-build.rb
blob: 63e37dc60e29d339de42a11e73c1a238ae7edfa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'formula'

class BoostBuild < Formula
  homepage 'http://boost.org/boost-build2/'
  url 'https://github.com/boostorg/build/archive/boost-1.55.0.tar.gz'
  sha1 '9daf7587b017716ffd164bcf11d82c4ac00c8ca0'

  head 'https://github.com/boostorg/build.git'

  bottle do
    cellar :any
    sha1 "b2d64e89dff33d0ddf55c30cb2bca1f015ac1d7a" => :yosemite
    sha1 "15905ff6a6324951e1b0d63761b8d1a4dac00861" => :mavericks
    sha1 "bb2094e4f4747dded749ddbb7d697cd7f9174740" => :mountain_lion
  end

  def install
    if build.head?
      system "./bootstrap.sh"
      system "./b2", "--prefix=#{prefix}", "install"
    else
      cd 'v2' do
        system "./bootstrap.sh"
        system "./b2", "--prefix=#{prefix}", "install"
      end
    end
  end
end