Skip to content

Instantly share code, notes, and snippets.

@rtxanson
Last active October 11, 2015 10:37
Show Gist options
  • Save rtxanson/3845612 to your computer and use it in GitHub Desktop.
Save rtxanson/3845612 to your computer and use it in GitHub Desktop.
Mac Brew formula for lttoolbox
require 'formula'
class Lttoolbox < Formula
homepage 'http://wiki.apertium.org/wiki/Lttoolbox'
url 'http://downloads.sourceforge.net/project/apertium/lttoolbox/3.2/lttoolbox-3.2.0.tar.gz'
sha1 'b5fedd442a1ad9dc09abcd84c5e69c7ef923ffc0'
head 'http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/lttoolbox'
depends_on 'libxml2'
def install
ENV['LIBTOOLIZE'] = '/usr/local/bin/glibtoolize'
ENV['PATH'] = '/usr/local/bin/:' + ENV['PATH']
system "./autogen.sh"
system "make"
system "make install" # if this fails, try separate make/make install steps
end
def test
system "make test"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment