libpurple: make perl support optional

Closes Homebrew/homebrew#18312.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Isaac Datlof 2013-03-07 20:09:47 -05:00 committed by Adam Vandenberg
parent 4e9a7025dc
commit f5ec7329f4

View file

@ -12,20 +12,28 @@ class Libpurple < Formula
depends_on 'gnutls'
depends_on 'libidn'
option 'perl', 'Build libpurple with perl support'
def install
# Just build the library, so disable all this UI stuff
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-avahi",
"--disable-consoleui",
"--disable-dbus",
"--disable-doxygen",
"--disable-gstreamer",
"--disable-gtkui",
"--disable-meanwhile",
"--disable-vv",
"--without-x",
"--disable-perl"
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
--disable-avahi
--disable-consoleui
--disable-dbus
--disable-doxygen
--disable-gstreamer
--disable-gtkui
--disable-meanwhile
--disable-vv
--without-x
]
args << '--disable-perl' unless build.include? 'perl'
system "./configure", *args
system "make install"
end
end