Created
April 17, 2012 10:25
-
-
Save alexstubbs/2405111 to your computer and use it in GitHub Desktop.
Patch to 2.0.4 git checkout 8dbb32e /usr/local/Library/Formula/sphinx.rb to install sphinx 0.9.8.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 194e3668c19878d6d1a2527443ed37ff6e922cb3 Mon Sep 17 00:00:00 2001 | |
From: Alexandru Stubbs <[email protected]> | |
Date: Tue, 17 Apr 2012 11:23:16 +0100 | |
Subject: [PATCH] Formula to install sphinx 0.9.8.1 | |
--- | |
Library/Formula/sphinx.rb | 12 ++++++------ | |
1 files changed, 6 insertions(+), 6 deletions(-) | |
diff --git a/Library/Formula/sphinx.rb b/Library/Formula/sphinx.rb | |
index e7f9a0e..6d7bf4d 100644 | |
--- a/Library/Formula/sphinx.rb | |
+++ b/Library/Formula/sphinx.rb | |
@@ -10,8 +10,8 @@ end | |
class Sphinx < Formula | |
homepage 'http://www.sphinxsearch.com' | |
- url 'http://sphinxsearch.com/files/sphinx-2.0.4-release.tar.gz' | |
- md5 '7da4df3df3decb24d8c6fb8f47de1d3d' | |
+ url 'http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz' | |
+ md5 '428a14df41fb425e664d9e2d6178c037' | |
head 'http://sphinxsearch.googlecode.com/svn/trunk/' | |
@@ -40,8 +40,8 @@ class Sphinx < Formula | |
end | |
def install | |
- lstem = Pathname.pwd+'libstemmer_c' | |
- Libstemmer.new.brew { lstem.install Dir['*'] } | |
+ # lstem = Pathname.pwd+'libstemmer_c' | |
+ # Libstemmer.new.brew { lstem.install Dir['*'] } | |
args = ["--prefix=#{prefix}", | |
"--disable-debug", | |
@@ -49,7 +49,7 @@ class Sphinx < Formula | |
"--localstatedir=#{var}"] | |
# always build with libstemmer support | |
- args << "--with-libstemmer" | |
+ # args << "--with-libstemmer" | |
# configure script won't auto-select PostgreSQL | |
args << "--with-pgsql" if ARGV.include?('--pgsql') or which 'pg_config' | |
@@ -60,7 +60,7 @@ class Sphinx < Formula | |
end | |
def caveats; <<-EOS.undent | |
- Sphinx has been compiled with libstemmer support. | |
+ # Sphinx has been compiled with libstemmer support. | |
Sphinx depends on either MySQL or PostreSQL as a datasource. | |
-- | |
1.7.4.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment