aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mdbtools.rb
diff options
context:
space:
mode:
authorchorn2010-06-22 12:36:10 -0400
committerAdam Vandenberg2010-06-22 13:53:12 -0700
commit66f7207cbb09c8a8623773d633b422cad23ed961 (patch)
tree491429aa787cfcbc9a7ee42500d15d51fb9de3d4 /Library/Formula/mdbtools.rb
parent9f4b27516ccf8b39c51bd350867c927f496aa7d5 (diff)
downloadhomebrew-66f7207cbb09c8a8623773d633b422cad23ed961.tar.bz2
Added mdbtools
* gawk is used to generate the manpages.
Diffstat (limited to 'Library/Formula/mdbtools.rb')
-rw-r--r--Library/Formula/mdbtools.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/mdbtools.rb b/Library/Formula/mdbtools.rb
new file mode 100644
index 000000000..02cb0d9b2
--- /dev/null
+++ b/Library/Formula/mdbtools.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+class Mdbtools <Formula
+ 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"
+
+ depends_on 'pkg-config'
+ depends_on 'glib'
+ depends_on 'gawk' => :optional # To generate docs
+
+ def install
+ inreplace 'autogen.sh', 'libtool', 'glibtool'
+
+ system "NOCONFIGURE='yes' ACLOCAL_FLAGS='-I#{HOMEBREW_PREFIX}/share/aclocal' ./autogen.sh"
+ system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
+ system "make install"
+ end
+end