From c4c52d1857e7590e57e534c779c76aac41202334 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sun, 27 Nov 2016 05:09:37 -0800 Subject: [PATCH] Revert "hunspell 1.5.0" This reverts commit 50f2e00a8dbdaec0ed44ae1262889c4e16f6a0ba. --- Formula/hunspell.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Formula/hunspell.rb b/Formula/hunspell.rb index cd17c5bba0..76178fd217 100644 --- a/Formula/hunspell.rb +++ b/Formula/hunspell.rb @@ -1,8 +1,9 @@ class Hunspell < Formula desc "Spell checker and morphological analyzer" homepage "https://hunspell.github.io" - url "https://github.com/hunspell/hunspell/archive/v1.5.0.tar.gz" - sha256 "b74f2df1aafdbc1f0941d721d7895da4b27b85bba7a4c699a9209477cbbf1f59" + url "https://github.com/hunspell/hunspell/archive/v1.4.1.tar.gz" + sha256 "c4476aff0ced52eec334eae1e8d3fdaaebdd90f5ecd0b57cf2a92a6fd220d1bb" + revision 1 bottle do sha256 "d4cc7d577e89e8e67312821828978a5bfa812188f674a67b29cfbc7dc7695dac" => :sierra @@ -14,7 +15,18 @@ class Hunspell < Formula conflicts_with "freeling", :because => "both install 'analyze' binary" + # hunspell does not prepend $HOME to all USEROODIRs + # https://github.com/hunspell/hunspell/issues/32 + patch do + url "https://raw.githubusercontent.com/Homebrew/formula-patches/684440d/hunspell/prepend_user_home_to_useroodirs.diff" + sha256 "456186c9e569c51065e7df2a521e325d536ba4627d000ab824f7e97c1e4bc288" + end + def install + ENV.deparallelize + + # The following line can be removed on release of next stable version + inreplace "configure", "1.4.0", "1.4.1" system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-ui",