diff options
| author | conscell | 2014-04-02 10:27:36 +0900 |
|---|---|---|
| committer | Mike McQuaid | 2014-04-02 12:18:13 +0100 |
| commit | cf90d6b0df3a51b33a5444fde2702629287de7bf (patch) | |
| tree | 8301097665efe9909a0112b9db52cc501f06b06b /Library/Formula | |
| parent | c7e3a1f1e5691fcdaf8dd3fea39464e8b851d091 (diff) | |
| download | homebrew-cf90d6b0df3a51b33a5444fde2702629287de7bf.tar.bz2 | |
ejabberd 13.12
- includes PostgreSQL support option
- includes MySQL support option
- can be built with Homebrew OpenSSL 1.0.1f and later (for TLS v1.1 and TLS v1.2 support)
- made Homebrew OpenSSL support unconditional
- replaced single quotes with double quotes
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ejabberd.rb | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/Library/Formula/ejabberd.rb b/Library/Formula/ejabberd.rb index 3183c4b11..9fecb5286 100644 --- a/Library/Formula/ejabberd.rb +++ b/Library/Formula/ejabberd.rb @@ -1,20 +1,23 @@ -require 'formula' +require "formula" class Ejabberd < Formula - homepage 'http://www.ejabberd.im' - url "http://www.process-one.net/downloads/ejabberd/2.1.13/ejabberd-2.1.13.tgz" - sha1 '6343186be2e84824d2da32e36110b72d6673730e' + homepage "http://www.ejabberd.im" + url "http://www.process-one.net/downloads/ejabberd/13.12/ejabberd-13.12.tgz" + sha1 "3aedb5012fab49181961ff24bad3af581f4b30ee" - depends_on "openssl" if MacOS.version <= :leopard + depends_on "openssl" depends_on "erlang" + depends_on "libyaml" option "32-bit" - option 'with-odbc', "Build with ODBC support" + option "with-odbc", "Build with ODBC support" + option "with-pgsql", "Build with PostgreSQL support" + option "with-mysql", "Build with MySQL support" def install - ENV['TARGET_DIR'] = ENV['DESTDIR'] = "#{lib}/ejabberd/erlang/lib/ejabberd-#{version}" - ENV['MAN_DIR'] = man - ENV['SBIN_DIR'] = sbin + ENV["TARGET_DIR"] = ENV["DESTDIR"] = "#{lib}/ejabberd/erlang/lib/ejabberd-#{version}" + ENV["MAN_DIR"] = man + ENV["SBIN_DIR"] = sbin if build.build_32_bit? %w{ CFLAGS LDFLAGS }.each do |compiler_flag| @@ -23,22 +26,17 @@ class Ejabberd < Formula end end - cd "src" do - args = ["--prefix=#{prefix}", - "--sysconfdir=#{etc}", - "--localstatedir=#{var}"] + args = ["--prefix=#{prefix}", + "--sysconfdir=#{etc}", + "--localstatedir=#{var}"] - if MacOS.version <= :leopard - openssl = Formula['openssl'] - args << "--with-openssl=#{openssl.prefix}" - end - - args << "--enable-odbc" if build.with? "odbc" + args << "--enable-odbc" if build.with? "odbc" + args << "--enable-pgsql" if build.with? "pgsql" + args << "--enable-mysql" if build.with? "mysql" - system "./configure", *args - system "make" - system "make install" - end + system "./configure", *args + system "make" + system "make", "install" (etc+"ejabberd").mkpath (var+"lib/ejabberd").mkpath |
