2011-02-22 18:50:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Finch < Formula
|
|
|
|
homepage 'http://developer.pidgin.im/wiki/Using%20Finch'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/pidgin/Pidgin/2.10.9/pidgin-2.10.9.tar.bz2'
|
2014-02-15 17:24:20 +00:00
|
|
|
sha1 'f3de8fd94dba1f4c98d5402a02430f9f323e665a'
|
2014-03-06 03:54:59 +00:00
|
|
|
revision 1
|
2011-02-22 18:50:38 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-03 20:39:41 +00:00
|
|
|
depends_on 'intltool' => :build
|
2011-02-22 18:50:38 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'gnutls'
|
2013-06-30 22:07:33 +00:00
|
|
|
depends_on 'libidn'
|
2011-02-22 18:50:38 +00:00
|
|
|
|
2014-03-12 21:28:01 +00:00
|
|
|
option 'purple', 'Only build libpurple'
|
2013-06-30 23:56:15 +00:00
|
|
|
option 'perl', 'Build libpurple with perl support'
|
|
|
|
|
2011-02-22 18:50:38 +00:00
|
|
|
def install
|
2013-06-30 23:56:15 +00:00
|
|
|
# Common options
|
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-avahi
|
|
|
|
--disable-dbus
|
|
|
|
--disable-doxygen
|
|
|
|
--disable-gstreamer
|
|
|
|
--disable-gtkui
|
|
|
|
--disable-meanwhile
|
|
|
|
--disable-vv
|
|
|
|
--without-x
|
2014-08-23 23:25:46 +00:00
|
|
|
--with-tclconfig=#{MacOS.sdk_path}/usr/lib
|
|
|
|
--with-tkconfig=#{MacOS.sdk_path}/usr/lib
|
2013-06-30 23:56:15 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
args << '--disable-perl' unless build.include? 'perl'
|
|
|
|
|
|
|
|
if build.include? 'purple'
|
|
|
|
args << '--disable-consoleui'
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
2011-02-22 18:50:38 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|