homebrew-core/Formula/hfstospell.rb
2019-10-16 08:23:11 +02:00

44 lines
1.6 KiB
Ruby

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 6
bottle do
cellar :any
sha256 "686d0c070747980c0ba5305cb5a75e71d3c0f30d94701829553b6b71a09cca1a" => :catalina
sha256 "9c6c69212f1e6784eba39c412fee40fc7f67e113f0ce905573d71dd1ea3e1c5e" => :mojave
sha256 "2f9c344944d7e1ab33854b091421df503a9ae7b6d1ac052b3879616e85173086" => :high_sierra
sha256 "75b751ea37a89444b7f815d3fb356c8fd8bbe6c60a07161f966bb32719431235" => :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