diff options
| author | Dominyk Tiller | 2014-10-29 07:09:47 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-11-01 02:34:59 +0000 |
| commit | 7537f3663d0ca35e5848d0a9644ebc86c92d267f (patch) | |
| tree | 1bc6462aae43af22ca9b1f82ec0110a93d7aa752 /Library/Formula | |
| parent | 66df6760c79aba26eac2ecdad40f32d8696e0358 (diff) | |
| download | homebrew-7537f3663d0ca35e5848d0a9644ebc86c92d267f.tar.bz2 | |
pidgin: merge in finch formula.
Merges Finch into Pidgin. Offering this as an alternative to #33699.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/finch.rb | 46 | ||||
| -rw-r--r-- | Library/Formula/pidgin.rb | 66 |
2 files changed, 45 insertions, 67 deletions
diff --git a/Library/Formula/finch.rb b/Library/Formula/finch.rb deleted file mode 100644 index d45b0e56a..000000000 --- a/Library/Formula/finch.rb +++ /dev/null @@ -1,46 +0,0 @@ -require 'formula' - -class Finch < Formula - homepage 'http://developer.pidgin.im/wiki/Using%20Finch' - url 'https://downloads.sourceforge.net/project/pidgin/Pidgin/2.10.9/pidgin-2.10.9.tar.bz2' - sha1 'f3de8fd94dba1f4c98d5402a02430f9f323e665a' - revision 1 - - depends_on 'pkg-config' => :build - depends_on 'intltool' => :build - depends_on 'gettext' - depends_on 'glib' - depends_on 'gnutls' - depends_on 'libidn' - - option 'purple', 'Only build libpurple' - option 'perl', 'Build libpurple with perl support' - - def install - # 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 - --with-tclconfig=#{MacOS.sdk_path}/usr/lib - --with-tkconfig=#{MacOS.sdk_path}/usr/lib - ] - - args << '--disable-perl' unless build.include? 'perl' - - if build.include? 'purple' - args << '--disable-consoleui' - end - - system "./configure", *args - system "make install" - end -end diff --git a/Library/Formula/pidgin.rb b/Library/Formula/pidgin.rb index 80355b718..ecdf00e01 100644 --- a/Library/Formula/pidgin.rb +++ b/Library/Formula/pidgin.rb @@ -1,9 +1,9 @@ -require 'formula' +require "formula" class Pidgin < Formula - homepage 'http://pidgin.im/' - url 'https://downloads.sourceforge.net/project/pidgin/Pidgin/2.10.10/pidgin-2.10.10.tar.bz2' - sha1 '81267c35c8d27f2c62320b564fc11af2cc1f3a4a' + homepage "https://pidgin.im/" + url "https://downloads.sourceforge.net/project/pidgin/Pidgin/2.10.10/pidgin-2.10.10.tar.bz2" + sha1 "81267c35c8d27f2c62320b564fc11af2cc1f3a4a" bottle do sha1 "8619dec05832868cf29df37382683b2c8d5944e4" => :yosemite @@ -11,28 +11,41 @@ class Pidgin < Formula sha1 "ecd1805951f73871171f36587323f6ef1aeb82e0" => :mountain_lion end - depends_on :x11 - depends_on 'pkg-config' => :build - depends_on 'intltool' => :build - depends_on 'gettext' - depends_on 'gnutls' - depends_on 'gtk+' - - # for pidgin-otr + depends_on :x11 => :optional + depends_on "pkg-config" => :build + depends_on "intltool" => :build + depends_on "gettext" + depends_on "gtk+" + depends_on "gsasl" => :optional + depends_on "gnutls" + depends_on "libgcrypt" depends_on "libotr" + if build.without? "GUI" + 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. resource "pidgin-otr" do url "https://otr.cypherpunks.ca/pidgin-otr-4.0.1.tar.gz" sha1 "e231a2dc72c960f2aa70d8c9d4b05abc6d123085" end - option 'perl', 'Build pidgin with perl support' + deprecated_option "perl" => "with-perl" + + option "with-perl", "Build Pidgin with Perl support" + option "without-GUI", "Build Finch instead of Pidgin" def install args = %W[ --disable-debug + --disable-dependency-tracking --prefix=#{prefix} --disable-avahi + --disable-doxygen + --enable-gnutls=yes --disable-dbus --disable-gevolution --disable-gstreamer @@ -41,22 +54,33 @@ class Pidgin < Formula --disable-idn --disable-meanwhile --disable-vv - --enable-gnutls=yes ] - args << '--disable-perl' unless build.include? 'perl' + args << "--with-x" if build.with? "GUI" + args << "--disable-perl" if build.without? "perl" + args << "--enable-cyrus-sasl" if build.with? "gsasl" + + if build.without? "GUI" + args << "--with-tclconfig=#{MacOS.sdk_path}/usr/lib" + args << "--with-tkconfig=#{MacOS.sdk_path}/usr/lib" + args << "--without-x" + args << "--disable-gtkui" + end system "./configure", *args - system "make install" + system "make", "install" - resource("pidgin-otr").stage do - ENV.append_path "PKG_CONFIG_PATH", "#{lib}/pkgconfig" - system "./configure", "--prefix=#{prefix}", "--mandir=#{man}" - system "make", "install" + if build.with? "GUI" + resource("pidgin-otr").stage do + ENV.prepend "CFLAGS", "-I#{HOMEBREW_PREFIX}/opt/libotr/include/libotr" + ENV.append_path "PKG_CONFIG_PATH", "#{lib}/pkgconfig" + system "./configure", "--prefix=#{prefix}", "--mandir=#{man}" + system "make", "install" + end end end test do - system "#{bin}/pidgin --version" + system "#{bin}/finch", "--version" end end |
