From b859a5c6a2f8fdf1c660844a8d47a321b8ddea84 Mon Sep 17 00:00:00 2001 From: Steven R. Loomis Date: Tue, 12 Aug 2014 10:21:56 -0700 Subject: node: add optional icu4c dependency. Closes #31538. Signed-off-by: Mike McQuaid --- Library/Formula/node.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index a9159dbd0..07012b57f 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -23,8 +23,11 @@ class Node < Formula option "enable-debug", "Build with debugger hooks" option "without-npm", "npm will not be installed" option "without-completion", "npm bash completion will not be installed" + option "with-icu4c", "enable Intl support via ICU" depends_on :python => :build + depends_on "icu4c" => :optional + depends_on "pkg-config" => :build if build.with? 'icu4c' fails_with :llvm do build 2326 @@ -38,6 +41,7 @@ class Node < Formula def install args = %W{--prefix=#{prefix} --without-npm} args << "--debug" if build.include? "enable-debug" + args << "--with-intl=system-icu" if build.with? "icu4c" system "./configure", *args system "make", "install" -- cgit v1.2.3