From e2e2799b7747a33840d35399f5138698d50e1960 Mon Sep 17 00:00:00 2001 From: Trek Glowacki Date: Wed, 7 Jul 2010 17:53:11 -0400 Subject: [PATCH] New Formula: DBSLayer Signed-off-by: Adam Vandenberg * And warning and caveats about MySQL dependency. --- Formula/dbslayer.rb | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Formula/dbslayer.rb diff --git a/Formula/dbslayer.rb b/Formula/dbslayer.rb new file mode 100644 index 00000000000..3a03868d4c8 --- /dev/null +++ b/Formula/dbslayer.rb @@ -0,0 +1,35 @@ +require 'formula' + +class Dbslayer 0 + opoo "No MySQL client library detected" + puts "This formula may fail to build, see caveats for more information." + end + + system "./configure", "--prefix=#{prefix}" + system "make" + system "make install" + end + + def caveats + <<-EOS.undent + DBSlayer depends on a MySQL client library. + + You can install this with Homebrew using: + brew install mysql + For MySQL server. + + brew install mysql-connector-c + For MySQL client libraries only. + + We don't install these for you when you install this formula, as + we don't know which datasource you intend to use. + EOS + end +end