From 1521ea9cf1a7de3fabe339d8aa1ac7a27ac80b2e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 1 Jul 2013 23:15:44 +0100 Subject: mysql-connector-odbc: use MysqlDependency. --- Library/Formula/mysql-connector-odbc.rb | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/mysql-connector-odbc.rb b/Library/Formula/mysql-connector-odbc.rb index efe2b02f8..c4ece20ae 100644 --- a/Library/Formula/mysql-connector-odbc.rb +++ b/Library/Formula/mysql-connector-odbc.rb @@ -1,27 +1,5 @@ require 'formula' -class MySqlInstalled < Requirement - fatal true - default_formula 'mysql' - - satisfy { which 'mysql_config' } - - def message; <<-EOS.undent - MySQL is required to install. - - You can install this with Homebrew using: - brew install mysql - - If you plan to install mysql-odbc-connector as universal (32- and 64-bit), - install MySQL using: - brew install mysql --universal - - Or, you can use an official installer from: - http://dev.mysql.com/downloads/mysql/ - EOS - end -end - class MysqlConnectorOdbc < Formula homepage 'http://dev.mysql.com/doc/refman/5.1/en/connector-odbc.html' url 'http://mysql.mirror.iweb.ca/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-5.1.12-src.tar.gz' @@ -29,7 +7,7 @@ class MysqlConnectorOdbc < Formula # Won't compile against mysql-connector-c, as the C connector exports an API version # that causes issues with how "my_free" is declared - depends_on MySqlInstalled + depends_on MysqlDependency depends_on 'cmake' => :build option :universal -- cgit v1.2.3