Skip to content

Instantly share code, notes, and snippets.

@sh
sh / sphinx.rb
Created December 6, 2011 17:00
Brew formula for installing Sphinx Search 2.0.2 Beta
require 'formula'
class Sphinx < Formula
url 'http://sphinxsearch.com/files/sphinx-2.0.2-beta.tar.gz'
homepage 'http://www.sphinxsearch.com'
md5 'fafe0f1a71d0ded32404c067eba7d0b3'
head 'http://sphinxsearch.googlecode.com/svn/trunk/'
fails_with_llvm "ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)",
:build => 2334
/*! Cross-browser-compatible setZeroTimeout
*
* I took the original setZeroTimeout and made it cross-browser-compatible, using setTimeout(fn, 0) as a fallback in case postMessage is not supported.
* Mathias Bynens <http://mathiasbynens.be/>
* See <http://mathiasbynens.be/notes/settimeout-onload>
*
* Copyright statement below:
*
* See <http://dbaron.org/log/20100309-faster-timeouts>
* By L. David Baron <dbaron@dbaron.org>, 2010-03-07, 2010-03-09