Skip to content

Commit

Permalink
Merge pull request #171139 from Homebrew/mecab-ipadic-test
Browse files Browse the repository at this point in the history
mecab, mecab-ipadic: fix build on Sonoma
  • Loading branch information
BrewTestBot committed May 15, 2024
2 parents da921e3 + e0122db commit 5d37f3d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 30 deletions.
25 changes: 10 additions & 15 deletions Formula/m/mecab-ipadic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,14 @@ class MecabIpadic < Formula
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "99d6b0d00f415c93713d108865f6caed947ea86168dc073b2656fc0361c4be6c"
sha256 cellar: :any_skip_relocation, arm64_ventura: "fd42086389a7302de36628435004c2f8de2f55b01f6fd8b5a74529779fc2754a"
sha256 cellar: :any_skip_relocation, arm64_monterey: "fd42086389a7302de36628435004c2f8de2f55b01f6fd8b5a74529779fc2754a"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "bdd2a69bbcbfe6e051278c94e4e19c6bfde63e2a3e525e2c57da0afb37ee5b6f"
sha256 cellar: :any_skip_relocation, sonoma: "bbba11df2394ce4bc3da17a720f4e69fd6081c2fab4682671f93432f05b57c3c"
sha256 cellar: :any_skip_relocation, ventura: "fd42086389a7302de36628435004c2f8de2f55b01f6fd8b5a74529779fc2754a"
sha256 cellar: :any_skip_relocation, monterey: "fd42086389a7302de36628435004c2f8de2f55b01f6fd8b5a74529779fc2754a"
sha256 cellar: :any_skip_relocation, big_sur: "4fc2878d95314057c5d0f726cc1dacf2ce110c7e84b77806e958970f9b34ccc5"
sha256 cellar: :any_skip_relocation, catalina: "90271975d35925136a14f2563e4b5201bed51b5c1fc27249d916676027c1016e"
sha256 cellar: :any_skip_relocation, mojave: "30967b4167d34f05c79f185d71a40198fff4067d0cce82aed59383548c898681"
sha256 cellar: :any_skip_relocation, high_sierra: "ef5cf167b05fd74457d5c31a46750450e8f80720ebc705766ee10df6ed41a861"
sha256 cellar: :any_skip_relocation, sierra: "33f42c18d7347708a56d8846c0bde5c8291b7685ce06b342e96442bca35f6663"
sha256 cellar: :any_skip_relocation, el_capitan: "9f0ae0a62141e3b28807349cb7a9560e36770acb869f4a4e7a54ea1a28ef8ba5"
sha256 cellar: :any_skip_relocation, x86_64_linux: "df2442b2842ff74edaee7ff39d84ac0ee9a4e6eefd931d80eac8c181b04d1b9d"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "2ab9a752833b99a87201dc1217e3774ca21aac1a87971dac1196bed13d1b428a"
sha256 cellar: :any_skip_relocation, arm64_ventura: "23c4ce0042e583b45fe99a339a10c481f80d5d2055ca896924e3e4c764460dc6"
sha256 cellar: :any_skip_relocation, arm64_monterey: "68eec45d5e084ffeab687ccd95391dcbb1cfd80ddb73232253304a1ea1fb0be0"
sha256 cellar: :any_skip_relocation, sonoma: "12212f7bc769338a7747d2ac184bf669454486336ca32335f15f140d3a0121bf"
sha256 cellar: :any_skip_relocation, ventura: "d901a98d8d01869855c5e55a35f4c252749306ee5a5eb44030f8c811885b44ed"
sha256 cellar: :any_skip_relocation, monterey: "6285de6570c904239f3f07fe0b8bb5c707b23c0741e36170ebc28aaed3da0b6d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "23ec6f722695c38dc93487d1320dc7e34c79b359647d4c8edd2cef0a045ed851"
end

depends_on "mecab"
Expand Down Expand Up @@ -60,6 +54,7 @@ def caveats
dicdir = #{HOMEBREW_PREFIX}/lib/mecab/dic/ipadic
EOS

pipe_output("mecab --rcfile=#{testpath}/mecabrc", "銇欍倐銈傘倐銈傘倐銈傘倐銈傘伄銇嗐仭\n", 0)
assert_match "鍚嶈", pipe_output("mecab --rcfile=#{testpath}/mecabrc", "銇欍倐銈傘倐銈傘倐銈傘倐銈傘伄銇嗐仭\n", 0)
assert_match "鍚嶈,鍥烘湁鍚嶈,绲勭箶", pipe_output("mecab --rcfile=#{testpath}/mecabrc", "A\n")
end
end
26 changes: 11 additions & 15 deletions Formula/m/mecab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,14 @@ class Mecab < Formula
end

bottle do
rebuild 3
sha256 arm64_sonoma: "0daf2cce68e6bb2c4886ea5737860447301d8eb6a4395d04f0e382c45b2d1b36"
sha256 arm64_ventura: "492e9bdfcbb7968c03dff7736cd94ba5ad97df0c164bb62c1fe9f9e389881ceb"
sha256 arm64_monterey: "868884cacf2503757291056a3cee77daaba404fd43abeeb0b2dc7e0a6fceee29"
sha256 arm64_big_sur: "495c42533a5ea5bdedcf4a95c05e613c3579f626b17d0df0396d8a0ea9328bbe"
sha256 sonoma: "087bf7e7601e967845864f284b1194b0d5f341dbbcd9f62ad52ff81e0df6a483"
sha256 ventura: "9bd251f2b61cab5850ac818ac06b879889c8c9c88c54c7163920099938c76b0d"
sha256 monterey: "839a67ae318170dea1c0ea8f3e55d8c5291da3e77ad0d62491fa656cf5539a18"
sha256 big_sur: "53efb8669f932aac26f4669db62eb858e6e31860923460a6c4e74d84685e8146"
sha256 catalina: "dba6306bcd5ddb9a824cb366b5432a036889440f2253634c99410fbb0abe0047"
sha256 mojave: "ef261d203140305ca8c9e4b7311c61176a17325df9454610d3eb33a312c4d3c5"
sha256 high_sierra: "d48340df17075e4a6237ffb87306a42566f8eabb736c546d790586266758f387"
sha256 sierra: "d98686ec62189de50f6ed5b7e682d59b90239c8dfd08cf32fd23543466586232"
sha256 el_capitan: "03df92bdd092065a7cbca5953a0e352c16cadfff5c9f186bbe1ee882258e56d3"
sha256 x86_64_linux: "47d2d29a34af53a9343cc99277fd19df64d0148e80007a19a2215e79b201a2a4"
rebuild 4
sha256 arm64_sonoma: "b442dff5851dc2e529a82d84a59b135e6f79ba6af1f295589e776aa2439d71f6"
sha256 arm64_ventura: "b64f24600f7e8cad0dd98a985b72a446db41af35a192261ec489fc059e9a354f"
sha256 arm64_monterey: "99d7d453a35685f10cc15e0135d7ec612b9d695e58a2d36032daef5b6dac9a6f"
sha256 sonoma: "d91a5e1bd7fdea15cfc0469705b33a71b02ad5c2ec2a599ab49829d9a6baa916"
sha256 ventura: "361bce3217483e859b5c6d364da2ea098c63058411ed5324af8bf6c018046fef"
sha256 monterey: "754a860b791ac92d825d4ff6b6b1f63e7c31e8983e603e844d1e4675732f343f"
sha256 x86_64_linux: "f730abd5e95a325a9e2e012ac01714e9a22e694d91e5bb026d501495d9899ff6"
end

conflicts_with "mecab-ko", because: "both install mecab binaries"
Expand All @@ -47,5 +40,8 @@ def post_install

test do
assert_equal "#{HOMEBREW_PREFIX}/lib/mecab/dic", shell_output("#{bin}/mecab-config --dicdir").chomp
return if OS.linux?

assert_includes (bin/"mecab").dynamically_linked_libraries, "/usr/lib/libiconv.2.dylib"
end
end

0 comments on commit 5d37f3d

Please sign in to comment.