aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLe Wang2012-02-29 13:24:56 +0800
committerAdam Vandenberg2012-06-27 09:20:55 -0700
commit14c40adcd07a7df15d4184ec4d580abc3823d3a0 (patch)
tree351a33f89c2a809caa5e0e8b951da27474791f8a /Library/Formula
parentdade22f69a8b695f8cf7b2cc86fcfa071cde059a (diff)
downloadhomebrew-14c40adcd07a7df15d4184ec4d580abc3823d3a0.tar.bz2
update mdbtools to use author's github repo, and make change to compile with Lion.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mdbtools.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/Library/Formula/mdbtools.rb b/Library/Formula/mdbtools.rb
index cca638c14..bf57e0d34 100644
--- a/Library/Formula/mdbtools.rb
+++ b/Library/Formula/mdbtools.rb
@@ -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