homebrew-core/Formula/mdbtools.rb

40 lines
1.2 KiB
Ruby

class Mdbtools < Formula
desc "Tools to facilitate the use of Microsoft Access databases"
homepage "https://github.com/brianb/mdbtools/"
url "https://github.com/brianb/mdbtools/archive/0.7.1.tar.gz"
sha256 "dcf310dc7b07e7ad2f9f6be16047dc81312cfe1ab1bd94d0fa739c8059af0b16"
bottle do
cellar :any
sha256 "ace9fa300968cb2360af0cf376498f4f4d175f02c4cf35e0f35d3d5f62a681fb" => :el_capitan
sha256 "6474bb245d7674e68588fc10dac8bf3325a0e3e262f417c8b5deb5151a8fd6e0" => :yosemite
sha256 "2df4eb2b58bb483016b86c35691587e168ea610c3381f7a4e7abe89b31507a9f" => :mavericks
end
option "with-man-pages", "Build manual pages"
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "txt2man" => :build if build.with? "man-pages"
depends_on "glib"
depends_on "readline"
def install
ENV.deparallelize
args = ["--prefix=#{prefix}"]
args << "--disable-man" if build.without? "man-pages"
if MacOS.version == :snow_leopard
mkdir "build-aux"
touch "build-aux/config.rpath"
end
system "autoreconf", "-i", "-f"
system "./configure", *args
system "make", "install"
end
end