homebrew-core/Formula/juman.rb

42 lines
2.1 KiB
Ruby

class Juman < Formula
desc "Japanese morphological analysis system"
homepage "https://nlp.ist.i.kyoto-u.ac.jp/index.php?JUMAN"
url "https://nlp.ist.i.kyoto-u.ac.jp/nl-resource/juman/juman-7.01.tar.bz2"
sha256 "64bee311de19e6d9577d007bb55281e44299972637bd8a2a8bc2efbad2f917c6"
license "BSD-3-Clause"
bottle do
sha256 arm64_ventura: "1b844be8a1ab2d3d1a10245fb3c887c9175a7836c86275ea67b3dfdd8e3abc7e"
sha256 arm64_monterey: "cf0f825ad7796245c453f7993f4b7f5d069c4e4eb190ee5fcc46f86ad74f61b5"
sha256 arm64_big_sur: "9b0c1166c946ef258a558961fa82660502d705bbbecf6b8735a805b093802432"
sha256 ventura: "fea60e1ecb3168344e4d5576680b79b76036e6bf19d24553c5cde0c914ec8b1d"
sha256 monterey: "b8076e4c5626f942eff9a9e95ef8f06a9a2e013c344b626b2dc7c30756eb64aa"
sha256 big_sur: "69ca5acb9395c257b591bd6eedde58c0707929af25b767d470dcb5fef786c054"
sha256 catalina: "0cb4d99f79b907922d8352e841096301a132ab0f385c75910ab53198b1f72ab7"
sha256 mojave: "36bae86cd2b24c5b3b4e75aed31ab0cf5da261b7a77e7ffe8a9b279ca3b801d6"
sha256 high_sierra: "7e2b144bf77ccdb11ae0166827dd45feae62a950de00310dcb863d7f926a9510"
sha256 sierra: "5c1dfea7f62d1afce55c9d1ed2478f9ff3b1744285fbbf08c29eb171cc672fa7"
sha256 el_capitan: "6bd46cdc6ff4e159463f8d4fecda2b803c3054ec28305f3baa1ea4969c4da723"
sha256 x86_64_linux: "dc72214b5b06cb06dee3a256586b433541d36d3c1af89282952dbdc5e1f232b4"
end
# Fix -flat_namespace being used on Big Sur and later.
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-pre-0.4.2.418-big_sur.diff"
sha256 "83af02f2aa2b746bb7225872cab29a253264be49db0ecebb12f841562d9a2923"
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
md5 = OS.mac? ? "md5" : "md5sum"
result = pipe_output(md5, pipe_output(bin/"juman", "\xe4\xba\xac\xe9\x83\xbd\xe5\xa4\xa7\xe5\xad\xa6"))
assert_equal "a5dd58c8ffa618649c5791f67149ab56", result.chomp.split.first
end
end