blob: 199122da25a802b5f0387506f4f5376061bac0a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  | 
require 'formula'
class Unixodbc < Formula
  homepage 'http://www.unixodbc.org/'
  url 'http://www.unixodbc.org/unixODBC-2.3.2.tar.gz'
  mirror 'ftp://mirror.ovh.net/gentoo-distfiles/distfiles/unixODBC-2.3.2.tar.gz'
  sha1 'f84520fd58143625b614fde551435178a558ee2e'
  revision 1
  bottle do
    sha1 "eebb5edaaa4bcd4b2d44c1d6c70fc330f044efcf" => :mavericks
    sha1 "b595c9e8c2f531c0220d0a265a9b021f0d5628bd" => :mountain_lion
    sha1 "e7abdd1023388d5f219d568a091112ac2173889c" => :lion
  end
  option :universal
  conflicts_with 'virtuoso', :because => 'Both install `isql` binaries.'
  keg_only "Shadows system iODBC header files" if MacOS.version < :mavericks
  def install
    ENV.universal_binary if build.universal?
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-gui=no"
    system "make install"
  end
end
  |