Created
March 8, 2012 20:49
-
-
Save ambs/2003356 to your computer and use it in GitHub Desktop.
Homebrew formula for FreeLing3 (SVN Head)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Freeling < Formula | |
homepage 'http://nlp.lsi.upc.edu/freeling/' | |
head 'http://devel.cpl.upc.edu/freeling/svn/trunk', :using => :svn | |
depends_on 'icu4c' | |
# requires boost --with-icu. At the moment I think that is not possible (to force options) | |
depends_on 'boost' | |
def install | |
icu4c_prefix = Formula.factory('icu4c').prefix | |
system "./autogen.sh", | |
"LDFLAGS=-L#{icu4c_prefix}/lib", | |
"CPPFLAGS=-I#{icu4c_prefix}/include", | |
"--prefix=#{prefix}" | |
system "make install" | |
end | |
def test | |
# This test will fail and we won't accept that! It's enough to just | |
# replace "false" with the main program this formula installs, but | |
# it'd be nice if you were more thorough. Test the test with | |
# `brew test FreeLing`. Remove this comment before submitting | |
# your pull request! | |
system "false" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment