2011-09-30 09:31:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Monetdb < Formula
|
2014-05-27 13:52:37 +00:00
|
|
|
homepage 'https://www.monetdb.org/'
|
|
|
|
url 'https://dev.monetdb.org/downloads/sources/Jan2014-SP2/MonetDB-11.17.17.zip', :using => :ssl3
|
|
|
|
sha1 '1f1f668e96a6c38463f6ae7a3821fd05c86a04b3'
|
2011-09-30 09:31:48 +00:00
|
|
|
|
|
|
|
head 'http://dev.monetdb.org/hg/MonetDB', :using => :hg
|
|
|
|
|
2014-03-16 16:15:07 +00:00
|
|
|
option 'with-java'
|
|
|
|
|
2012-08-30 22:16:47 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2014-05-30 19:58:04 +00:00
|
|
|
depends_on :ant => :build
|
2011-09-30 09:31:48 +00:00
|
|
|
depends_on 'pcre'
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline' # Compilation fails with libedit.
|
2011-09-30 09:31:48 +00:00
|
|
|
|
|
|
|
def install
|
2012-08-26 06:31:24 +00:00
|
|
|
system "./bootstrap" if build.head?
|
2011-09-30 09:31:48 +00:00
|
|
|
|
2014-03-16 16:15:07 +00:00
|
|
|
args = ["--prefix=#{prefix}",
|
|
|
|
"--enable-debug=no",
|
|
|
|
"--enable-assert=no",
|
|
|
|
"--enable-optimize=yes",
|
|
|
|
"--enable-testing=no",
|
|
|
|
"--disable-jaql",
|
|
|
|
"--without-rubygem"]
|
|
|
|
|
|
|
|
args << "--with-java=no" if build.without? 'java'
|
|
|
|
|
|
|
|
system "./configure", *args
|
2011-09-30 09:31:48 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|