aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sphinx.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Formula/sphinx.rb b/Library/Formula/sphinx.rb
index b92066722..ad2b5ef31 100644
--- a/Library/Formula/sphinx.rb
+++ b/Library/Formula/sphinx.rb
@@ -22,10 +22,9 @@ class Sphinx < Formula
depends_on :mysql if build.include? 'mysql'
depends_on :postgresql if build.include? 'pgsql'
- # http://snowball.tartarus.org/
resource 'stemmer' do
- url 'http://snowball.tartarus.org/dist/libstemmer_c.tgz'
- sha1 '1ac6bb16e829e9f3a58f62c27047c26784975aa1'
+ url "https://github.com/snowballstem/snowball.git",
+ :revision => "9b58e92c965cd7e3208247ace3cc00d173397f3c"
end
fails_with :llvm do
@@ -39,7 +38,10 @@ class Sphinx < Formula
end
def install
- (buildpath/'libstemmer_c').install resource('stemmer')
+ resource('stemmer').stage do
+ system "make", "dist_libstemmer_c"
+ system "tar", "xzf", "dist/libstemmer_c.tgz", "-C", buildpath
+ end
args = %W[--prefix=#{prefix}
--disable-dependency-tracking