Skip to content

Instantly share code, notes, and snippets.

@ambs
Created March 8, 2012 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ambs/2003356 to your computer and use it in GitHub Desktop.
Save ambs/2003356 to your computer and use it in GitHub Desktop.
Homebrew formula for FreeLing3 (SVN Head)
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