homebrew-core/Formula/monetdb.rb
Mike McQuaid 7a4dabfc1a Use hash rockets again. (#5177)
This restores 1.8 hash rockets because they look nicer with e.g. `depends_on :foo => :bar`
2016-09-24 16:45:48 +01:00

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://www.monetdb.org/downloads/sources/Jun2016-SP1/MonetDB-11.23.7.zip"
sha256 "97115a045b3339a534b5e7efd6045dfbc1bdb7a704aeee4200a1336a559f48df"
bottle do
sha256 "fbe074bb30c5a80b3fb375cf3ce826f57aa13ecbfe6186e8d35053e5c85f880d" => :el_capitan
sha256 "8ee727bc923b4210451459d49067f4264444d47231f02d9247bc4123d829ec21" => :yosemite
sha256 "891ccc4558c9b0d63feb77050db350bb8165f438bf55f0547ebd2f394c6292e2" => :mavericks
end
head do
url "https://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 "homebrew/science/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