aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/boost-build.rb
diff options
context:
space:
mode:
authorBruno Santos2012-02-09 11:48:12 +0000
committerJack Nagel2012-02-13 20:44:19 -0600
commit2fc829c3b82fd8e4932da98e659dab1a343edcd3 (patch)
tree8a5f3fcfcf8c9fe56749370a0571fd38147147ac /Library/Formula/boost-build.rb
parent9aac98f374fd2f9fcb22dda5a4461b6315197968 (diff)
downloadhomebrew-2fc829c3b82fd8e4932da98e659dab1a343edcd3.tar.bz2
New formula: boost-build
Boost.Jam is the engine of Boost.Build. The formula for Boost.Jam only installs the engine leaving up to the user to manually install and configure the remaining of Boost.Build. This revision adds Boost.Build formula, but it conflicts with Boost.Jam if both are installed. Closes #9133. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/boost-build.rb')
-rw-r--r--Library/Formula/boost-build.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/boost-build.rb b/Library/Formula/boost-build.rb
new file mode 100644
index 000000000..855aeaec3
--- /dev/null
+++ b/Library/Formula/boost-build.rb
@@ -0,0 +1,22 @@
+require 'formula'
+
+class BoostBuild < Formula
+ homepage 'http://boost.org/boost-build2/'
+ url 'http://downloads.sourceforge.net/project/boost/boost/1.48.0/boost_1_48_0.tar.bz2'
+ md5 'd1e9a7a7f532bb031a3c175d86688d95'
+ version '2011.04-svn'
+
+ head 'http://svn.boost.org/svn/boost/trunk/tools/build/v2/', :using => :svn
+
+ def install
+ if ARGV.build_head?
+ 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