Skip to content

Commit

Permalink
pidgin: remove some options
Browse files Browse the repository at this point in the history
  • Loading branch information
fxcoudert committed Sep 5, 2018
1 parent 88e8600 commit 1b08a4f
Showing 1 changed file with 15 additions and 32 deletions.
47 changes: 15 additions & 32 deletions Formula/pidgin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,17 @@ class Pidgin < Formula
sha256 "5bb5d41124e21b68b6172c025f0faf342d70a87fd95da067b7c450b76d3ab8cb" => :el_capitan
end

option "with-perl", "Build Pidgin with Perl support"
option "without-gui", "Build only Finch, the command-line client"

deprecated_option "perl" => "with-perl"
deprecated_option "without-GUI" => "without-gui"

depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "pkg-config" => :build
depends_on "cairo"
depends_on "gettext"
depends_on "gsasl" => :optional
depends_on "glib"
depends_on "gnutls"
depends_on "gtk+"
depends_on "libgcrypt"
depends_on "libidn"
depends_on "glib"

if build.with? "gui"
depends_on "gtk+"
depends_on "cairo"
depends_on "pango"
depends_on "libotr"
end
depends_on "libotr"
depends_on "pango"

# 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.
Expand All @@ -47,35 +37,28 @@ def install
--disable-dependency-tracking
--prefix=#{prefix}
--disable-avahi
--disable-doxygen
--enable-gnutls=yes
--disable-dbus
--disable-doxygen
--disable-gevolution
--disable-gstreamer
--disable-gstreamer-interfaces
--disable-gtkspell
--disable-meanwhile
--disable-vv
--enable-gnutls=yes
--with-tclconfig=#{MacOS.sdk_path}/System/Library/Frameworks/Tcl.framework
--with-tkconfig=#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework
--without-x
]

args << "--disable-perl" if build.without? "perl"
args << "--enable-cyrus-sasl" if build.with? "gsasl"

args << "--with-tclconfig=#{MacOS.sdk_path}/System/Library/Frameworks/Tcl.framework"
args << "--with-tkconfig=#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework"
args << "--disable-gtkui" if build.without? "gui"

system "./configure", *args
system "make", "install"

if build.with? "gui"
resource("pidgin-otr").stage do
ENV.prepend "CFLAGS", "-I#{Formula["libotr"].opt_include}"
ENV.append_path "PKG_CONFIG_PATH", "#{lib}/pkgconfig"
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make", "install"
end
resource("pidgin-otr").stage do
ENV.prepend "CFLAGS", "-I#{Formula["libotr"].opt_include}"
ENV.append_path "PKG_CONFIG_PATH", "#{lib}/pkgconfig"
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make", "install"
end
end

Expand Down

0 comments on commit 1b08a4f

Please sign in to comment.