Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
freeling: use Formula[]
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Feb 27, 2014
1 parent ce6e52a commit 0a8e233
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Library/Formula/freeling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class Freeling < Formula
depends_on 'libtool' => :build

def install
icu4c_prefix = Formula.factory('icu4c').prefix
libtool_prefix = Formula.factory('libtool').prefix
ENV.append 'LDFLAGS', "-L#{libtool_prefix}/lib"
ENV.append 'LDFLAGS', "-L#{icu4c_prefix}/lib"
ENV.append 'CPPFLAGS', "-I#{libtool_prefix}/include"
ENV.append 'CPPFLAGS', "-I#{icu4c_prefix}/include"
icu4c = Formula['icu4c']
libtool = Formula['libtool']
ENV.append 'LDFLAGS', "-L#{libtool.lib}"
ENV.append 'LDFLAGS', "-L#{icu4c.lib}"
ENV.append 'CPPFLAGS', "-I#{libtool.include}"
ENV.append 'CPPFLAGS', "-I#{icu4c.include}"

system "./configure", "--prefix=#{prefix}", "--enable-boost-locale"

Expand Down

0 comments on commit 0a8e233

Please sign in to comment.