homebrew-core/Formula/sqsh.rb

36 lines
881 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Sqsh < Formula
homepage 'http://www.sqsh.org/'
url 'http://sourceforge.net/projects/sqsh/files/sqsh/sqsh-2.1.9/sqsh-2.1.9.tgz'
sha1 '73f33a57edaa717f5b181ec2748aabe0da3b9967'
2012-08-26 06:18:01 +00:00
option "enable-x", "Enable X windows support"
depends_on :x11 if build.include? "enable-x"
depends_on 'freetds'
depends_on 'readline'
def install
2012-08-26 06:18:01 +00:00
args = %W[
--prefix=#{prefix}
--mandir=#{man}
--with-readline
]
ENV['LIBDIRS'] = Readline.new('readline').lib
ENV['INCDIRS'] = Readline.new('readline').include
2012-08-26 06:18:01 +00:00
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