2009-12-28 00:12:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mcabber < Formula
|
2010-12-18 21:41:38 +00:00
|
|
|
url 'http://mcabber.com/files/mcabber-0.10.1.tar.bz2'
|
2009-12-28 00:12:56 +00:00
|
|
|
homepage 'http://mcabber.com/'
|
2010-12-18 21:41:38 +00:00
|
|
|
md5 'fe96beab30f535d5d6270fd1719659b4'
|
2011-10-28 00:29:56 +00:00
|
|
|
head 'http://mcabber.com/hg/', :using => :hg
|
2009-12-28 00:12:56 +00:00
|
|
|
|
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'
|
|
|
|
depends_on 'aspell' => :optional if ARGV.include? '--enable-aspell'
|
|
|
|
depends_on 'enchant' => :optional if ARGV.include? '--enable-enchant'
|
|
|
|
depends_on 'libotr' => :optional if ARGV.include? '--enable-otr'
|
|
|
|
depends_on 'libidn' => :optional
|
|
|
|
|
|
|
|
def options
|
|
|
|
[
|
|
|
|
["--enable-enchant", "Enable spell checking support via enchant"],
|
|
|
|
["--enable-aspell", "Enable spell checking support via aspell"],
|
|
|
|
["--enable-otr", "Enable support for off-the-record messages"]
|
|
|
|
]
|
|
|
|
end
|
2009-12-28 00:12:56 +00:00
|
|
|
|
|
|
|
def install
|
2011-10-28 00:29:56 +00:00
|
|
|
system "./autogen.sh" if ARGV.build_head?
|
2010-08-14 11:33:46 +00:00
|
|
|
args = ["--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"]
|
|
|
|
|
|
|
|
args << "--enable-aspell" if ARGV.include? "--enable-aspell"
|
|
|
|
args << "--enable-enchant" if ARGV.include? "--enable-enchant"
|
|
|
|
args << "--enable-otr" if ARGV.include? "--enable-otr"
|
|
|
|
|
|
|
|
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
|
|
|
|
end
|