e2f9856882
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.
35 lines
893 B
Ruby
35 lines
893 B
Ruby
require 'formula'
|
|
|
|
class Sqsh < Formula
|
|
homepage 'http://www.sqsh.org/'
|
|
url 'http://downloads.sourceforge.net/sourceforge/sqsh/sqsh-2.1.8.tar.gz'
|
|
sha1 'c16ed1c913169e19340971e3162cca8a8f23ed05'
|
|
|
|
option "enable-x", "Enable X windows support"
|
|
|
|
depends_on :x11 if build.include? "enable-x"
|
|
depends_on 'freetds'
|
|
depends_on 'gnu-readline'
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--mandir=#{man}
|
|
--with-readline
|
|
]
|
|
|
|
ENV['LIBDIRS'] = GnuReadline.new('gnu-readline').lib
|
|
ENV['INCDIRS'] = GnuReadline.new('gnu-readline').include
|
|
|
|
if build.include? "enable-x"
|
|
args << "--with-x"
|
|
args << "--x-libraries=#{MacOS::X11.lib}"
|
|
args << "--x-includes=#{MacOS::X11.include}"
|
|
end
|
|
|
|
ENV['SYBASE'] = Freetds.new("freetds").prefix
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
system "make", "install.man"
|
|
end
|
|
end
|