Skip to content

Instantly share code, notes, and snippets.

@yaotti
Created July 26, 2011 13:08
Show Gist options
  • Save yaotti/1106712 to your computer and use it in GitHub Desktop.
Save yaotti/1106712 to your computer and use it in GitHub Desktop.
require 'formula'
class Groonga < Formula
url 'http://packages.groonga.org/source/groonga/groonga-1.2.3.tar.gz'
homepage ''
md5 'f259e7a135965276e6750d0225a67cfc'
def install
# Apply the commit to support *BSD
# https://github.com/groonga/groonga/commit/6a6362a00df314c734dfdd40d59671b1b64e53df#diff-0
system 'wget', 'https://raw.github.com/groonga/groonga/6a6362a00df314c734dfdd40d59671b1b64e53df/lib/dat/trie.cpp', '-O', 'lib/dat/trie.cpp'
system "./configure", "--prefix=#{prefix}", "--with-zlib"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment