Last active
December 9, 2018 18:02
-
-
Save petri/2e178435e2005c8cdfe62b9bdc0e67b5 to your computer and use it in GitHub Desktop.
hfst homebrew recipe
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
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