aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorambs2012-02-07 19:45:57 +0000
committerJack Nagel2012-02-08 14:20:10 -0600
commitd9bd665f7e61ca0024ffbc779ec718cb397a3fec (patch)
treeb3e23ba057a5dd55ccd9f685feacff75b8bce7b8 /Library
parent600bae85cc012f50d88c8c91d3d39ed0e8c3a34c (diff)
downloadhomebrew-d9bd665f7e61ca0024ffbc779ec718cb397a3fec.tar.bz2
boost: add --with-icu option
Closes #10031. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/boost.rb17
1 files changed, 14 insertions, 3 deletions
diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb
index d4c542403..29c4349b8 100644
--- a/Library/Formula/boost.rb
+++ b/Library/Formula/boost.rb
@@ -12,6 +12,8 @@ class Boost < Formula
sha1 'c7871ddd020a24e3b0cfd3c9a352a1210b68b372'
end
+ depends_on "icu4c" if ARGV.include? "--with-icu"
+
def patches
# https://svn.boost.org/trac/boost/ticket/6131
#
@@ -28,7 +30,8 @@ class Boost < Formula
[
["--with-mpi", "Enable MPI support"],
["--universal", "Build universal binaries"],
- ["--without-python", "Build without Python"]
+ ["--without-python", "Build without Python"],
+ ["--with-icu", "Build regexp engine with icu support"],
]
end
@@ -72,6 +75,14 @@ class Boost < Formula
file.write "using mpi ;\n" if ARGV.include? '--with-mpi'
end
+ # we specify libdir too because the script is apparently broken
+ bargs = ["--prefix=#{prefix}", "--libdir=#{lib}"]
+
+ if ARGV.include? "--with-icu"
+ icu4c_prefix = Formula.factory('icu4c').prefix
+ bargs << "--with-icu=#{icu4c_prefix}"
+ end
+
args = ["--prefix=#{prefix}",
"--libdir=#{lib}",
"-j#{ENV.make_jobs}",
@@ -83,11 +94,11 @@ class Boost < Formula
args << "address-model=32_64" << "architecture=x86" << "pch=off" if ARGV.include? "--universal"
args << "--without-python" if ARGV.include? "--without-python"
- # we specify libdir too because the script is apparently broken
- system "./bootstrap.sh", "--prefix=#{prefix}", "--libdir=#{lib}"
+ system "./bootstrap.sh", *bargs
system "./bjam", *args
end
end
+
__END__
Index: /boost/foreach_fwd.hpp
===================================================================