update mdbtools to use author's github repo, and make change to compile with Lion.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
eb78a8c31f
commit
cf1a13a656
1 changed files with 11 additions and 4 deletions
|
@ -1,9 +1,10 @@
|
|||
require 'formula'
|
||||
|
||||
class Mdbtools < Formula
|
||||
url "https://github.com/brianb/mdbtools/tarball/0.7_rc1"
|
||||
homepage 'http://sourceforge.net/projects/mdbtools/'
|
||||
# Last stable release won't build on OS X, but HEAD from CVS does.
|
||||
head "cvs://:pserver:anonymous@mdbtools.cvs.sourceforge.net:/cvsroot/mdbtools:mdbtools"
|
||||
# Use the github repo of the author instead of project CVS
|
||||
head "https://github.com/brianb/mdbtools.git"
|
||||
|
||||
depends_on 'pkg-config' => :build
|
||||
depends_on 'glib'
|
||||
|
@ -17,8 +18,14 @@ class Mdbtools < Formula
|
|||
def install
|
||||
inreplace 'autogen.sh', 'libtool', 'glibtool'
|
||||
|
||||
system "NOCONFIGURE='yes' ./autogen.sh"
|
||||
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
||||
%w{src/libmdb/Makefile.am src/libmdb/Makefile.am src/sql/Makefile.am}.each do |f|
|
||||
inreplace f, /,?\s*--version-script=.*?(?:[ \t,]|$)/, ''
|
||||
end
|
||||
|
||||
inreplace 'configure.in', /\s*--as-needed/, ''
|
||||
|
||||
system "NOCONFIGURE='yes' ACLOCAL_FLAGS='-I#{HOMEBREW_PREFIX}/share/aclocal' ./autogen.sh"
|
||||
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}", "--disable-glibtest"
|
||||
system "make install"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue