aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mysql-connector-odbc.rb
diff options
context:
space:
mode:
authorJack Nagel2012-08-12 12:57:31 -0500
committerJack Nagel2012-08-12 13:01:00 -0500
commit6f441742f1d703e12cc7750040712390f269682e (patch)
treeaed3c018148ee7ff16da1626c8c2b91d9b34c829 /Library/Formula/mysql-connector-odbc.rb
parentb34f44f74546456a9d068e037e5b1e3f894acce6 (diff)
downloadhomebrew-6f441742f1d703e12cc7750040712390f269682e.tar.bz2
mysql-connector-odbc: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/mysql-connector-odbc.rb')
-rw-r--r--Library/Formula/mysql-connector-odbc.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/mysql-connector-odbc.rb b/Library/Formula/mysql-connector-odbc.rb
index 68a33e152..51eeea237 100644
--- a/Library/Formula/mysql-connector-odbc.rb
+++ b/Library/Formula/mysql-connector-odbc.rb
@@ -33,13 +33,11 @@ class MysqlConnectorOdbc < Formula
depends_on MySqlInstalled.new
depends_on 'cmake' => :build
- def options
- [['--universal', "Make mysql-connector-odbc a universal binary"]]
- end
+ option :universal
def install
args = ["-DCMAKE_INSTALL_PREFIX=#{prefix}"]
- args << "-DCMAKE_OSX_ARCHITECTURES='i386;x86_64'" if ARGV.build_universal?
+ args << "-DCMAKE_OSX_ARCHITECTURES='i386;x86_64'" if build.universal?
ENV['MYSQL_DIR'] = HOMEBREW_PREFIX
system 'cmake', ".", *args
fix_goofy_link_file_error