aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-03-10 00:18:33 -0600
committerJack Nagel2013-03-10 00:18:33 -0600
commit68d5bae4042657a4b8ffa0635ccba4fb1e012c0e (patch)
treeb552624e39d2594f1ed377d9c219594bce7eb828 /Library
parent25e954852df5a44022e975c252a2efd627147463 (diff)
downloadhomebrew-68d5bae4042657a4b8ffa0635ccba4fb1e012c0e.tar.bz2
freeling: depends on boost with-icu
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/freeling.rb17
1 files changed, 1 insertions, 16 deletions
diff --git a/Library/Formula/freeling.rb b/Library/Formula/freeling.rb
index 83301bbaa..abd292b8f 100644
--- a/Library/Formula/freeling.rb
+++ b/Library/Formula/freeling.rb
@@ -7,15 +7,10 @@ class Freeling < Formula
sha1 'd05242e398f60d9720f9bbde2743ea469b1531d1'
depends_on 'icu4c'
- # requires boost --with-icu.
- # At the moment I think that we can not force build options
- depends_on 'boost'
+ depends_on 'boost' => 'with-icu'
depends_on 'libtool' => :build
def install
- opoo 'Requires boost with icu support.'
- opoo 'If the installation fails, remove boost and do a \'brew install boost --with-icu\''
-
icu4c_prefix = Formula.factory('icu4c').prefix
libtool_prefix = Formula.factory('libtool').prefix
ENV.append 'LDFLAGS', "-L#{libtool_prefix}/lib"
@@ -31,14 +26,4 @@ class Freeling < Formula
def test
system "echo 'Hello world' | #{bin}/analyze -f #{share}/freeling/config/en.cfg | grep -c 'world world NN 1'"
end
-
- def caveats; <<-EOS.undent
- This fomula requires that boost formula gets built with '--with-icu'
- option. If not, link will fail.
-
- If in doubt, try uninstalling boost (brew uninstall boost) and
- installint with ICU support (brew install --with-icu boost). For
- that you will also need icu4c installed (brew install icu4c).
- EOS
- end
end