Skip to content

Instantly share code, notes, and snippets.

@petri
Last active December 9, 2018 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petri/2e178435e2005c8cdfe62b9bdc0e67b5 to your computer and use it in GitHub Desktop.
Save petri/2e178435e2005c8cdfe62b9bdc0e67b5 to your computer and use it in GitHub Desktop.
hfst homebrew recipe
class Hfst < Formula
desc "Helsinki Finite-State Technology (library and application suite)"
homepage "https://hfst.github.io"
url "https://github.com/hfst/hfst/archive/v3.15.0.tar.gz"
sha256 "1ce90956d7c91d75e7c141e3852504b02728672239746858a141ccfae1712d19"
depends_on "automake"
depends_on "autoconf"
depends_on "libtool"
depends_on "bison"
depends_on "glib"
def install
opoo "In case of libtool problem, add a 'libtoolize' link pointing to 'glibtoolize'"
opoo "You need a fairly modern version of bison - the MacOS builtin is too old"
system "./autogen.sh"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--with-unicode-handler=glib",
"--with-readline",
"--enable-tagger",
"--prefix=#{prefix}"
system "make", "install" # if this fails, try separate make/make install steps
end
test do
system "#{bin}/hfst-info"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment