Skip to content

Commit

Permalink
sphinx: new libstemmer release
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Sep 3, 2014
1 parent 7b95e87 commit 94be705
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Formula/sphinx.rb
Expand Up @@ -29,7 +29,7 @@ class Sphinx < Formula
# http://snowball.tartarus.org/
resource 'stemmer' do
url 'http://snowball.tartarus.org/dist/libstemmer_c.tgz'
sha1 'bbe1ba5bbebb146575a575b8ca3342aa3b91bf93'
sha1 '9b0f120a68a3c688b2f5a8d0f681620465c29d38'
end

fails_with :llvm do
Expand All @@ -45,6 +45,11 @@ class Sphinx < Formula
def install
(buildpath/'libstemmer_c').install resource('stemmer')

# libstemmer changed the name of the non-UTF8 Hungarian source files,
# but the released version of sphinx still refers to it under the old name.
inreplace "libstemmer_c/Makefile.in",
"stem_ISO_8859_1_hungarian", "stem_ISO_8859_2_hungarian"

args = %W[--prefix=#{prefix}
--disable-dependency-tracking
--localstatedir=#{var}
Expand Down

0 comments on commit 94be705

Please sign in to comment.