2009-12-28 00:12:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mcabber < Formula
|
2009-12-28 00:12:56 +00:00
|
|
|
homepage 'http://mcabber.com/'
|
2013-02-03 01:54:03 +00:00
|
|
|
url 'http://mcabber.com/files/mcabber-0.10.2.tar.bz2'
|
|
|
|
sha1 '7bff70dcf09e8a8a4cc7219e03b48bad382a6bda'
|
2012-02-21 06:04:21 +00:00
|
|
|
|
2011-10-28 00:29:56 +00:00
|
|
|
head 'http://mcabber.com/hg/', :using => :hg
|
2009-12-28 00:12:56 +00:00
|
|
|
|
2012-09-05 21:16:52 +00:00
|
|
|
option 'enable-enchant', 'Enable spell checking support via enchant'
|
|
|
|
option 'enable-aspell', 'Enable spell checking support via aspell'
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2009-12-28 00:12:56 +00:00
|
|
|
depends_on 'glib'
|
2010-08-14 11:33:46 +00:00
|
|
|
depends_on 'loudmouth'
|
|
|
|
depends_on 'gpgme'
|
|
|
|
depends_on 'libgcrypt'
|
2012-02-14 09:53:00 +00:00
|
|
|
depends_on 'libotr'
|
|
|
|
depends_on 'libidn'
|
2012-09-05 21:16:52 +00:00
|
|
|
depends_on 'aspell' if build.include? 'enable-aspell'
|
|
|
|
depends_on 'enchant' if build.include? 'enable-enchant'
|
2010-08-14 11:33:46 +00:00
|
|
|
|
2012-09-05 21:16:52 +00:00
|
|
|
if build.head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-02-27 03:44:55 +00:00
|
|
|
end
|
|
|
|
|
2009-12-28 00:12:56 +00:00
|
|
|
def install
|
2012-09-05 21:16:52 +00:00
|
|
|
if build.head?
|
2012-02-27 03:44:55 +00:00
|
|
|
ENV['LIBTOOLIZE'] = 'glibtoolize'
|
|
|
|
ENV['ACLOCAL'] = "aclocal -I #{HOMEBREW_PREFIX}/share/aclocal"
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'mcabber' # Not using block form on purpose
|
2012-02-14 09:53:00 +00:00
|
|
|
inreplace 'autogen.sh', 'libtoolize', '$LIBTOOLIZE'
|
|
|
|
inreplace 'autogen.sh', 'aclocal', '$ACLOCAL'
|
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
|
|
|
|
2010-08-14 11:33:46 +00:00
|
|
|
args = ["--disable-debug", "--disable-dependency-tracking",
|
2012-07-07 18:08:22 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-otr"]
|
2010-08-14 11:33:46 +00:00
|
|
|
|
2012-09-05 21:16:52 +00:00
|
|
|
args << "--enable-aspell" if build.include? 'enable-aspell'
|
|
|
|
args << "--enable-enchant" if build.include? 'enable-enchant'
|
2010-08-14 11:33:46 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2009-12-28 00:12:56 +00:00
|
|
|
system "make install"
|
2010-08-14 11:33:46 +00:00
|
|
|
|
|
|
|
(share+'mcabber').install %w[mcabberrc.example contrib]
|
2009-12-28 00:12:56 +00:00
|
|
|
end
|
2012-02-14 09:53:00 +00:00
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
A configuration file is necessary to start mcabber. The template is here:
|
|
|
|
#{share}/mcabber/mcabberrc.example
|
|
|
|
And there is a Getting Started Guide you will need to setup Mcabber:
|
|
|
|
http://wiki.mcabber.com/index.php/Getting_started
|
2012-02-14 09:53:00 +00:00
|
|
|
EOS
|
|
|
|
end
|
2009-12-28 00:12:56 +00:00
|
|
|
end
|