diff options
| author | Adam Vandenberg | 2012-08-27 21:33:50 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-27 21:33:50 -0700 |
| commit | 21be61ab2cb0ebc8f8543b258289517bcad42191 (patch) | |
| tree | bd81b2814e206cbf5be00b025d90f6fd0dfff0ba /Library/Formula | |
| parent | 2ce037c112cacc734bb5aaa26b858c7799ec4378 (diff) | |
| download | homebrew-21be61ab2cb0ebc8f8543b258289517bcad42191.tar.bz2 | |
ejabberd: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ejabberd.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/ejabberd.rb b/Library/Formula/ejabberd.rb index 8d9ec9a0d..828fc30c0 100644 --- a/Library/Formula/ejabberd.rb +++ b/Library/Formula/ejabberd.rb @@ -8,19 +8,15 @@ class Ejabberd < Formula depends_on "openssl" if MacOS.leopard? depends_on "erlang" - def options - [ - ['--odbc', "Build with ODBC support."], - ['--32-bit', "Build 32-bit only."] - ] - end + option "32-bit" + option 'with-odbc', "Build with ODBC support" def install ENV['TARGET_DIR'] = ENV['DESTDIR'] = "#{lib}/ejabberd/erlang/lib/ejabberd-#{version}" ENV['MAN_DIR'] = man ENV['SBIN_DIR'] = sbin - if ARGV.build_32_bit? + if build.build_32_bit? %w{ CFLAGS LDFLAGS }.each do |compiler_flag| ENV.remove compiler_flag, "-arch x86_64" ENV.append compiler_flag, "-arch i386" @@ -37,7 +33,7 @@ class Ejabberd < Formula args << "--with-openssl=#{openssl.prefix}" end - args << "--enable-odbc" if ARGV.include? '--odbc' + args << "--enable-odbc" if build.include? 'with-odbc' system "./configure", *args system "make" |
