aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2013-07-01 23:15:44 +0100
committerMike McQuaid2013-07-01 23:15:44 +0100
commit1521ea9cf1a7de3fabe339d8aa1ac7a27ac80b2e (patch)
treefe9a166b8611bcc0fde47c2e18417b8699e338f7 /Library/Formula
parent321b29378601f45006cf450899bd6c0700448343 (diff)
downloadhomebrew-1521ea9cf1a7de3fabe339d8aa1ac7a27ac80b2e.tar.bz2
mysql-connector-odbc: use MysqlDependency.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mysql-connector-odbc.rb24
1 files changed, 1 insertions, 23 deletions
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