class Hfstospell < Formula desc "Helsinki Finite-State Technology ospell" homepage "https://hfst.github.io/" url "https://github.com/hfst/hfst-ospell/releases/download/v0.5.0/hfstospell-0.5.0.tar.gz" sha256 "0fd2ad367f8a694c60742deaee9fcf1225e4921dd75549ef0aceca671ddfe1cd" revision 5 bottle do cellar :any sha256 "3fc40f8552901ebf609c7ded5c7c167833b0cd6059f4bfb452ddc8f98a61aec3" => :mojave sha256 "9f21cd52687c76ef0d0a00f35b20856061e3b3885b6c78c84cd0dba5e1168d46" => :high_sierra sha256 "38f16780e69b8f322d73f1d3d5b200261bdc8f03cf821db6591ade42dca52a5a" => :sierra end depends_on "pkg-config" => :build depends_on "icu4c" depends_on "libarchive" depends_on "libxml++" uses_from_macos "libxml2" # Fix "error: no template named 'auto_ptr' in namespace 'std'" # Upstream PR 20 Jun 2018 "C++14 (C++1y) should be the highest supported standard." # See https://github.com/hfst/hfst-ospell/pull/41 patch do url "https://raw.githubusercontent.com/Homebrew/formula-patches/674a62d/hfstospell/no-cxx17.diff" sha256 "0a3146e871ac0e3c71248b8671d09f6d8a8a69713b6f4857eab7bdb684709083" end def install # icu4c 61.1 compatability ENV.append "CPPFLAGS", "-DU_USING_ICU_NAMESPACE=1" ENV.cxx11 system "./configure", "--disable-dependency-tracking", "--disable-silent-rules", "--prefix=#{prefix}" system "make", "install" end test do system "#{bin}/hfst-ospell", "--version" end end