diff options
| author | Adam Vandenberg | 2013-06-30 16:56:15 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-05 14:34:59 -0700 |
| commit | 45beb2ff1dbc3e94f124c3747fb55b0f3a2d63e0 (patch) | |
| tree | 0d956b2467050beeaafe9137983ef3e3a0ae776c /Library | |
| parent | 943f523bc443bba8aab6309127e5b7a0165efec1 (diff) | |
| download | homebrew-45beb2ff1dbc3e94f124c3747fb55b0f3a2d63e0.tar.bz2 | |
Merge libpurple into finch
Closes #20993.
Closes #17487.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/finch.rb | 35 | ||||
| -rw-r--r-- | Library/Formula/libpurple.rb | 39 |
2 files changed, 25 insertions, 49 deletions
diff --git a/Library/Formula/finch.rb b/Library/Formula/finch.rb index cd14d05eb..57c249cc3 100644 --- a/Library/Formula/finch.rb +++ b/Library/Formula/finch.rb @@ -12,17 +12,32 @@ class Finch < Formula depends_on 'gnutls' depends_on 'libidn' + option 'purple' 'Only build libpurple' + option 'perl', 'Build libpurple with perl support' + def install - # Builds the UI - system "./configure", "--disable-debug", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--disable-avahi", - "--disable-dbus", - "--disable-gstreamer", - "--disable-gtkui", - "--disable-meanwhile", - "--disable-vv", - "--disable-perl" + # 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 + ] + + 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/libpurple.rb b/Library/Formula/libpurple.rb deleted file mode 100644 index 27945325f..000000000 --- a/Library/Formula/libpurple.rb +++ /dev/null @@ -1,39 +0,0 @@ -require 'formula' - -class Libpurple < Formula - homepage 'http://pidgin.im/' - url 'http://downloads.sourceforge.net/project/pidgin/Pidgin/2.10.7/pidgin-2.10.7.tar.bz2' - sha1 '01bc06e3a5712dded3ad4a4913ada12a3cd01e15' - - depends_on 'pkg-config' => :build - depends_on 'intltool' => :build - depends_on 'gettext' - depends_on 'glib' - 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 - 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 |
