freetds 1.00.104

Removes most options

Closes #32906.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Sean Molenaar 2018-10-11 11:29:27 +02:00 committed by FX Coudert
parent 4d40fd1591
commit f3664604cb

View file

@ -1,9 +1,8 @@
class Freetds < Formula
desc "Libraries to talk to Microsoft SQL Server and Sybase databases"
homepage "http://www.freetds.org/"
url "http://www.freetds.org/files/stable/freetds-1.00.98.tar.bz2"
mirror "https://fossies.org/linux/privat/freetds-1.00.98.tar.bz2"
sha256 "a340ad1ce0d320551686af587db1ef93fe6130a14f8e7bde0fd3b33ab4d0515a"
url "http://www.freetds.org/files/stable/freetds-1.00.104.tar.gz"
sha256 "c4f51525f2dd722fe3651913d4ea194798211293f195c38fc3933cc6db1dae42"
bottle do
sha256 "bcd468f7e79650683c46172ddf35606fe36453009b54877e3bf6e941ec153312" => :mojave
@ -22,48 +21,26 @@ class Freetds < Formula
end
option "with-msdblib", "Enable Microsoft behavior in the DB-Library API where it diverges from Sybase's"
option "with-sybase-compat", "Enable close compatibility with Sybase's ABI, at the expense of other features"
option "with-odbc-wide", "Enable odbc wide, prevent unicode - MemoryError's"
option "with-krb5", "Enable Kerberos support"
deprecated_option "enable-msdblib" => "with-msdblib"
deprecated_option "enable-sybase-compat" => "with-sybase-compat"
deprecated_option "enable-odbc-wide" => "with-odbc-wide"
deprecated_option "enable-krb" => "with-krb5"
depends_on "pkg-config" => :build
depends_on "openssl" => :recommended
depends_on "libiodbc" => :optional
depends_on "unixodbc" => :optional
depends_on "openssl"
depends_on "unixodbc"
def install
if build.with?("unixodbc") && build.with?("libiodbc")
odie "freetds: --without-libiodbc must be specified when using --with-unixodbc"
end
args = %W[
--prefix=#{prefix}
--with-tdsver=7.3
--mandir=#{man}
--sysconfdir=#{etc}
--with-unixodbc=#{Formula["unixodbc"].opt_prefix}
--with-openssl=#{Formula["openssl"].opt_prefix}
--enable-sybase-compat
--enable-krb5
--enable-odbc-wide
]
if build.with? "openssl"
args << "--with-openssl=#{Formula["openssl"].opt_prefix}"
end
if build.with? "unixodbc"
args << "--with-unixodbc=#{Formula["unixodbc"].opt_prefix}"
end
if build.with? "libiodbc"
args << "--with-libiodbc=#{Formula["libiodbc"].opt_prefix}"
end
# Translate formula's "--with" options to configuration script's "--enable"
# options
%w[msdblib sybase-compat odbc-wide krb5].each do |option|
args << "--enable-#{option}" if build.with? option
if build.with? "msdblib"
args << "--enable-msdblib"
end
if build.head?