blob: 8a08273737d17eddd748ae1b08b9214715d66aad (
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
31
32
33
|
require 'formula'
class Mdbtools < Formula
homepage 'https://github.com/brianb/mdbtools/'
url "https://github.com/brianb/mdbtools/archive/0.7.1.tar.gz"
sha1 '33b746f29c1308909a1e82546ec24e8f835d461a'
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
|