2010-08-19 03:01:12 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Sqsh < Formula
|
2010-08-19 03:01:12 +00:00
|
|
|
homepage 'http://www.sqsh.org/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/sqsh/sqsh/sqsh-2.3/sqsh-2.3.tgz'
|
2013-08-17 16:48:03 +00:00
|
|
|
sha1 '225bd6cfa5dcad4fae419becc5217fb3465c66d1'
|
2010-08-19 03:01:12 +00:00
|
|
|
|
2012-08-26 06:18:01 +00:00
|
|
|
option "enable-x", "Enable X windows support"
|
|
|
|
|
|
|
|
depends_on :x11 if build.include? "enable-x"
|
2010-08-19 03:01:12 +00:00
|
|
|
depends_on 'freetds'
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2010-08-19 03:01:12 +00:00
|
|
|
|
|
|
|
def install
|
2012-08-26 06:18:01 +00:00
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--mandir=#{man}
|
|
|
|
--with-readline
|
|
|
|
]
|
2010-08-19 03:01:12 +00:00
|
|
|
|
2014-04-07 02:26:56 +00:00
|
|
|
readline = Formula["readline"]
|
|
|
|
ENV['LIBDIRS'] = readline.opt_lib
|
|
|
|
ENV['INCDIRS'] = readline.opt_include
|
2010-08-19 03:01:12 +00:00
|
|
|
|
2012-08-26 06:18:01 +00:00
|
|
|
if build.include? "enable-x"
|
2010-08-19 03:01:12 +00:00
|
|
|
args << "--with-x"
|
2012-08-06 05:33:36 +00:00
|
|
|
args << "--x-libraries=#{MacOS::X11.lib}"
|
|
|
|
args << "--x-includes=#{MacOS::X11.include}"
|
2010-08-19 03:01:12 +00:00
|
|
|
end
|
|
|
|
|
2014-04-07 02:26:56 +00:00
|
|
|
ENV['SYBASE'] = Formula["freetds"].opt_prefix
|
2010-08-19 03:01:12 +00:00
|
|
|
system "./configure", *args
|
|
|
|
system "make", "install"
|
|
|
|
system "make", "install.man"
|
|
|
|
end
|
|
|
|
end
|