2014-09-07 16:20:44 +00:00
|
|
|
class Omega < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Packaged search engine for websites, built on top of Xapian"
|
2014-09-07 16:20:44 +00:00
|
|
|
homepage "http://xapian.org"
|
|
|
|
url "http://oligarchy.co.uk/xapian/1.2.18/xapian-omega-1.2.18.tar.xz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "528feb8021a52ab06c7833cb9ebacefdb782f036e99e7ed5342046c3a82380c2"
|
2014-09-07 16:20:44 +00:00
|
|
|
|
2014-09-07 18:07:52 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "afdc13cb8c4a768df40606f12943ef56a314e3d3" => :mavericks
|
|
|
|
sha1 "7ea1a55103d2367a4d033508336274e0181a64bd" => :mountain_lion
|
|
|
|
sha1 "55217805d501af8d6bfac7db3a65e3b403d4c0b6" => :lion
|
|
|
|
end
|
|
|
|
|
2014-09-07 16:20:44 +00:00
|
|
|
depends_on "pcre"
|
|
|
|
depends_on "xapian"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/omindex", "--db", "./test", "--url", "/", "#{share}/doc/xapian-omega"
|
|
|
|
assert File.exist?("./test/flintlock")
|
|
|
|
end
|
|
|
|
end
|