74 lines
2.3 KiB
Ruby
74 lines
2.3 KiB
Ruby
class RRequirement < Requirement
|
|
fatal true
|
|
|
|
satisfy { which("r") }
|
|
|
|
def message; <<-EOS.undent
|
|
R not found. The R integration module requires R.
|
|
Do one of the following:
|
|
- install R
|
|
-- run brew install homebrew/science/r or brew install Caskroom/cask/r
|
|
- remove the --with-r option
|
|
EOS
|
|
end
|
|
end
|
|
|
|
class Monetdb < Formula
|
|
desc "Column-store database"
|
|
homepage "https://www.monetdb.org/"
|
|
url "https://dev.monetdb.org/downloads/sources/Jul2015/MonetDB-11.21.5.zip"
|
|
sha256 "ed9f40a68a8a9af0723cde6380492cae28082c900eae06cc4d3266c15fe540ea"
|
|
|
|
bottle do
|
|
sha256 "39d2fd657f2d58f3340fa2cd512cfa5cb857650ebd5209e7208a6cb7c59cec01" => :yosemite
|
|
sha256 "f0b1a35b03593d29a67ca788bd646a50149d4c60ab86d5622a44ff879a60f4a2" => :mavericks
|
|
sha256 "c5d2f28101e1d4e06b35bd56af9450b3fa76a39854e9b33572046465ed59cbcd" => :mountain_lion
|
|
end
|
|
|
|
head do
|
|
url "http://dev.monetdb.org/hg/MonetDB", :using => :hg
|
|
|
|
depends_on "libtool" => :build
|
|
depends_on "gettext" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "autoconf" => :build
|
|
end
|
|
|
|
option "with-java", "Build the JDBC driver"
|
|
option "with-ruby", "Build the Ruby driver"
|
|
option "with-r", "Build the R integration module"
|
|
|
|
depends_on RRequirement => :optional
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on :ant => :build
|
|
depends_on "libatomic_ops" => [:build, :recommended]
|
|
depends_on "pcre"
|
|
depends_on "readline" # Compilation fails with libedit.
|
|
depends_on "openssl"
|
|
|
|
depends_on "unixodbc" => :optional # Build the ODBC driver
|
|
depends_on "geos" => :optional # Build the GEOM module
|
|
depends_on "gsl" => :optional
|
|
depends_on "cfitsio" => :optional
|
|
depends_on "homebrew/php/libsphinxclient" => :optional
|
|
|
|
def install
|
|
ENV["M4DIRS"] = "#{Formula["gettext"].opt_share}/aclocal" if build.head?
|
|
system "./bootstrap" if build.head?
|
|
|
|
args = ["--prefix=#{prefix}",
|
|
"--enable-debug=no",
|
|
"--enable-assert=no",
|
|
"--enable-optimize=yes",
|
|
"--enable-testing=no",
|
|
"--with-readline=#{Formula["readline"].opt_prefix}"]
|
|
|
|
args << "--with-java=no" if build.without? "java"
|
|
args << "--with-rubygem=no" if build.without? "ruby"
|
|
args << "--disable-rintegration" if build.without? "r"
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
end
|