homebrew-core/Formula/monetdb.rb
Jack Nagel e2f9856882 Rename readline to gnu-readline
The Readline class clashes with the Readline module from the Ruby
stdlib. This has mostly worked, but with the recent debugging support's
integration of IRB, it is no longer possible for them to coexist. So we
need to rename it.

The implications of this are:

 - Anything that depends on readline will reinstall it as
   "gnu-readline". Anything already installed will continue to function.

 - "brew upgrade readline" will say "gnu-readline not installed", as
   "readline" is now an alias.

 - Probably other things.

So there are some downsides, but we will just have to deal with them.

Fixes Homebrew/homebrew#15776.
2012-11-10 20:07:32 -06:00

26 lines
814 B
Ruby

require 'formula'
class Monetdb < Formula
homepage 'http://www.monetdb.org/'
url 'http://dev.monetdb.org/downloads/sources/Oct2012/MonetDB-11.13.3.tar.bz2'
sha1 'b414d85f49463b0d46da1275bc91f166c302d50d'
head 'http://dev.monetdb.org/hg/MonetDB', :using => :hg
depends_on 'pkg-config' => :build
depends_on 'pcre'
depends_on 'gnu-readline' # Compilation fails with libedit.
def install
system "./bootstrap" if build.head?
system "./configure", "--prefix=#{prefix}",
"--enable-debug=no",
"--enable-assert=no",
"--enable-optimize=yes",
"--enable-testing=no",
"--disable-jaql",
"--without-rubygem"
system "make install"
end
end