aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sphinx.rb
diff options
context:
space:
mode:
authorJamie van Dyke2009-09-09 10:53:07 +0100
committerMax Howell2009-09-11 17:42:53 +0100
commit98528f14ef14a1c5496c10bfc6fff47806106fee (patch)
tree16fdd9df4bb3c687f8e57126b1f4d587aa52045d /Library/Formula/sphinx.rb
parentfa598eddfca7ab9a5be07ba8355f73ae8d93955c (diff)
downloadhomebrew-98528f14ef14a1c5496c10bfc6fff47806106fee.tar.bz2
Sphinx formula
How do you implement full-text search for that 10+ million row table, keep up with the load, and stay relevant? Sphinx is good at those kinds of riddles. Signed-off-by: Max Howell <max@methylblue.com> I added the mysql dependency.
Diffstat (limited to 'Library/Formula/sphinx.rb')
-rw-r--r--Library/Formula/sphinx.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/sphinx.rb b/Library/Formula/sphinx.rb
new file mode 100644
index 000000000..0c94e7ec9
--- /dev/null
+++ b/Library/Formula/sphinx.rb
@@ -0,0 +1,16 @@
+require 'brewkit'
+
+class Sphinx <Formula
+ @url='http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz'
+ @homepage='http://www.sphinxsearch.com'
+ @md5='428a14df41fb425e664d9e2d6178c037'
+
+ def deps
+ 'mysql'
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "make install"
+ end
+end