2012-02-09 11:48:12 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class BoostBuild < Formula
|
|
|
|
homepage 'http://boost.org/boost-build2/'
|
2014-02-20 00:00:49 +00:00
|
|
|
url 'http://github.com/boostorg/build/archive/boost-1.55.0.tar.gz'
|
|
|
|
sha1 '9daf7587b017716ffd164bcf11d82c4ac00c8ca0'
|
2012-02-09 11:48:12 +00:00
|
|
|
|
2014-02-20 00:00:49 +00:00
|
|
|
head 'https://github.com/boostorg/build.git'
|
2012-02-09 11:48:12 +00:00
|
|
|
|
|
|
|
def install
|
2012-08-23 04:35:07 +00:00
|
|
|
if build.head?
|
2012-02-09 11:48:12 +00:00
|
|
|
system "./bootstrap.sh"
|
|
|
|
system "./b2", "--prefix=#{prefix}", "install"
|
|
|
|
else
|
2014-02-20 00:00:49 +00:00
|
|
|
cd 'v2' do
|
2012-02-09 11:48:12 +00:00
|
|
|
system "./bootstrap.sh"
|
|
|
|
system "./b2", "--prefix=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|