diff options
| author | Trek Glowacki | 2010-07-07 17:53:11 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-07 17:29:36 -0700 |
| commit | 673d6634d4f9c48651a33e869496d5a8d73fb8aa (patch) | |
| tree | e33a42979c5cc42ad69f29c78bed58c3b7ac9924 /Library | |
| parent | 3f8e3c843ebc0f6961712cf2dcd4c01c8fda457b (diff) | |
| download | homebrew-673d6634d4f9c48651a33e869496d5a8d73fb8aa.tar.bz2 | |
New Formula: DBSLayer
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* And warning and caveats about MySQL dependency.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/dbslayer.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/dbslayer.rb b/Library/Formula/dbslayer.rb new file mode 100644 index 000000000..3a03868d4 --- /dev/null +++ b/Library/Formula/dbslayer.rb @@ -0,0 +1,35 @@ +require 'formula' + +class Dbslayer <Formula + url 'http://code.nytimes.com/downloads/dbslayer-beta-12.tgz' + homepage 'http://code.nytimes.com/projects/dbslayer/wiki' + md5 'a529ea503c244d723166f78c75df3bb3' + version '0.12.b' + + def install + unless `/usr/bin/which mysql_config`.size > 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 |
