boost: add --with-icu option

Closes #10031.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
ambs authored and Jack Nagel committed 2012-02-08 14:20:10 -06:00
1 parent 600bae85cc
commit d9bd665f7e
1 file changed
+14 -3
+14 -3
View File
@@ -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
===================================================================