2012-08-03 01:39:16 +00:00
|
|
|
class Pidgin < Formula
|
2014-10-29 07:09:47 +00:00
|
|
|
homepage "https://pidgin.im/"
|
2015-01-03 05:36:19 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/pidgin/Pidgin/2.10.11/pidgin-2.10.11.tar.bz2"
|
2015-03-20 18:14:18 +00:00
|
|
|
sha256 "f2ae211341fc77efb9945d40e9932aa535cdf3a6c8993fe7919fca8cc1c04007"
|
2012-08-03 01:39:16 +00:00
|
|
|
|
2014-10-22 05:02:53 +00:00
|
|
|
bottle do
|
2015-03-20 22:03:39 +00:00
|
|
|
revision 3
|
|
|
|
sha256 "7f19887890554a229bb5420cd711efd804185f77e2ade0abba3aca35e6496d9e" => :yosemite
|
|
|
|
sha256 "407a6b5d8084607f93c223007809812cabfaf71ad8c5916f4c2e428bdee62af6" => :mavericks
|
|
|
|
sha256 "9e83c9d5dede335dbf51e03ba9df1af06e98851c54440465dacf96653f3546ce" => :mountain_lion
|
2014-10-22 05:02:53 +00:00
|
|
|
end
|
|
|
|
|
2014-12-17 00:30:26 +00:00
|
|
|
option "with-perl", "Build Pidgin with Perl support"
|
2015-03-20 18:14:18 +00:00
|
|
|
option "without-gui", "Build Finch instead of Pidgin"
|
|
|
|
|
|
|
|
deprecated_option "perl" => "with-perl"
|
|
|
|
deprecated_option "without-GUI" => "without-gui"
|
2014-12-17 00:30:26 +00:00
|
|
|
|
2014-10-29 07:09:47 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "intltool" => :build
|
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "gsasl" => :optional
|
|
|
|
depends_on "gnutls"
|
|
|
|
depends_on "libgcrypt"
|
2014-06-14 21:55:39 +00:00
|
|
|
|
2015-03-20 18:14:18 +00:00
|
|
|
if build.with? "gui"
|
|
|
|
depends_on :x11 => :optional
|
|
|
|
depends_on "gtk+"
|
|
|
|
depends_on "cairo"
|
|
|
|
depends_on "pango"
|
|
|
|
depends_on "libotr"
|
|
|
|
else
|
2014-10-29 07:09:47 +00:00
|
|
|
depends_on "glib"
|
|
|
|
depends_on "libidn"
|
|
|
|
end
|
|
|
|
|
|
|
|
# Finch has an equal port called purple-otr but it is a NIGHTMARE to compile
|
|
|
|
# If you want to fix this and create a PR on Homebrew please do so.
|
2014-06-14 21:55:39 +00:00
|
|
|
resource "pidgin-otr" do
|
2014-10-22 01:34:02 +00:00
|
|
|
url "https://otr.cypherpunks.ca/pidgin-otr-4.0.1.tar.gz"
|
2015-03-20 18:14:18 +00:00
|
|
|
sha256 "1b781f48c27bcc9de3136c0674810df23f7d6b44c727dbf4dfb24067909bf30a"
|
2014-06-14 21:55:39 +00:00
|
|
|
end
|
|
|
|
|
2012-08-03 01:39:16 +00:00
|
|
|
def install
|
2013-07-06 03:23:35 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
2014-10-29 07:09:47 +00:00
|
|
|
--disable-dependency-tracking
|
2013-07-06 03:23:35 +00:00
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-avahi
|
2014-10-29 07:09:47 +00:00
|
|
|
--disable-doxygen
|
|
|
|
--enable-gnutls=yes
|
2013-07-06 03:23:35 +00:00
|
|
|
--disable-dbus
|
|
|
|
--disable-gevolution
|
|
|
|
--disable-gstreamer
|
|
|
|
--disable-gstreamer-interfaces
|
|
|
|
--disable-gtkspell
|
|
|
|
--disable-meanwhile
|
|
|
|
--disable-vv
|
|
|
|
]
|
|
|
|
|
2014-10-29 07:09:47 +00:00
|
|
|
args << "--disable-perl" if build.without? "perl"
|
|
|
|
args << "--enable-cyrus-sasl" if build.with? "gsasl"
|
|
|
|
|
2015-03-20 18:14:18 +00:00
|
|
|
if build.without? "gui"
|
2014-10-29 07:09:47 +00:00
|
|
|
args << "--with-tclconfig=#{MacOS.sdk_path}/usr/lib"
|
|
|
|
args << "--with-tkconfig=#{MacOS.sdk_path}/usr/lib"
|
|
|
|
args << "--without-x"
|
|
|
|
args << "--disable-gtkui"
|
2015-03-20 18:14:18 +00:00
|
|
|
else
|
|
|
|
args << "--with-x"
|
|
|
|
args << "--disable-idn"
|
2014-10-29 07:09:47 +00:00
|
|
|
end
|
2013-07-06 03:23:35 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2014-10-29 07:09:47 +00:00
|
|
|
system "make", "install"
|
2014-06-14 21:55:39 +00:00
|
|
|
|
2015-03-20 18:14:18 +00:00
|
|
|
if build.with? "gui"
|
2014-10-29 07:09:47 +00:00
|
|
|
resource("pidgin-otr").stage do
|
2015-03-20 18:14:18 +00:00
|
|
|
ENV.prepend "CFLAGS", "-I#{Formula["libotr"].opt_include}"
|
2014-10-29 07:09:47 +00:00
|
|
|
ENV.append_path "PKG_CONFIG_PATH", "#{lib}/pkgconfig"
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
2014-06-14 21:55:39 +00:00
|
|
|
end
|
2012-08-03 01:39:16 +00:00
|
|
|
end
|
|
|
|
|
2013-07-06 03:23:35 +00:00
|
|
|
test do
|
2014-10-29 07:09:47 +00:00
|
|
|
system "#{bin}/finch", "--version"
|
2012-08-03 01:39:16 +00:00
|
|
|
end
|
|
|
|
end
|