2011-01-20 18:33:31 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-11-18 20:44:26 +00:00
|
|
|
class LionOrNewer < Requirement
|
2013-01-20 02:45:59 +00:00
|
|
|
satisfy MacOS.version >= :lion
|
2012-11-18 20:44:26 +00:00
|
|
|
|
|
|
|
def message
|
|
|
|
"Drizzle requires Mac OS X 10.7 (Lion) or newer."
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Drizzle < Formula
|
2011-01-20 18:33:31 +00:00
|
|
|
homepage 'http://drizzle.org'
|
2012-08-06 01:57:33 +00:00
|
|
|
url 'https://launchpad.net/drizzle/7.1/7.1.36/+download/drizzle-7.1.36-stable.tar.gz'
|
|
|
|
sha1 '6ce317d6a6b0560e75d5bcf44af2e278443cfbfe'
|
2011-01-20 18:33:31 +00:00
|
|
|
|
2013-02-03 20:39:40 +00:00
|
|
|
depends_on 'intltool' => :build
|
2013-01-27 22:42:32 +00:00
|
|
|
depends_on LionOrNewer
|
2012-11-18 20:44:26 +00:00
|
|
|
|
2012-11-10 13:58:10 +00:00
|
|
|
# https://github.com/mxcl/homebrew/issues/14289
|
|
|
|
depends_on 'boost149'
|
2013-02-03 20:39:40 +00:00
|
|
|
depends_on 'protobuf'
|
2011-01-20 18:33:31 +00:00
|
|
|
depends_on 'libevent'
|
|
|
|
depends_on 'pcre'
|
|
|
|
depends_on 'libgcrypt'
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2011-01-20 18:33:31 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-24 22:47:08 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2011-01-20 18:33:31 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|