mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 03:19:46 -05:00
This reverts commit adee531526.
Turns out one of the "other things" is a dealbreaker.
We only create kegs using a formula's canonical name. However, we do not
check that this is the case when mapping existing kegs back to formula
objects, and thus a keg with a name that happens to be an alias can fool
Homebrew into thinking the canonically-named keg exists.
So anything that enumerates kegs and then tries to do stuff with the
resulting formula objects will just break. This is obviously worse than
the debugger being broken, so reverting this for the time being.
36 lines
875 B
Ruby
36 lines
875 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 'readline'
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--mandir=#{man}
|
|
--with-readline
|
|
]
|
|
|
|
ENV['LIBDIRS'] = Readline.new('readline').lib
|
|
ENV['INCDIRS'] = Readline.new('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
|