2012-02-09 11:48:12 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class BoostBuild < Formula
|
|
|
|
homepage 'http://boost.org/boost-build2/'
|
2013-03-06 14:21:44 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/boost/boost/1.53.0/boost_1_53_0.tar.bz2'
|
|
|
|
sha1 'e6dd1b62ceed0a51add3dda6f3fc3ce0f636a7f3'
|
|
|
|
version '2011.12-svn'
|
2012-02-09 11:48:12 +00:00
|
|
|
|
2012-05-10 14:10:12 +00:00
|
|
|
head 'http://svn.boost.org/svn/boost/trunk/tools/build/v2/'
|
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
|
|
|
|
cd 'tools/build/v2' do
|
|
|
|
system "./bootstrap.sh"
|
|
|
|
system "./b2", "--prefix=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|