Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

libpurple: make perl support optional

  • Loading branch information...
commit ec242af1a64923cb42f1f9f1656e77b4fa97cca7 1 parent 5aff165
Isaac Datlof authored

Showing 1 changed file with 23 additions and 12 deletions. Show diff stats Hide diff stats

  1. +23 12 Library/Formula/libpurple.rb
35 Library/Formula/libpurple.rb
@@ -17,20 +17,31 @@ class Libpurple < Formula
17 17 # https://github.com/mxcl/homebrew/issues/17129
18 18 depends_on 'libgcrypt' => :build
19 19
  20 + option 'without-perl', 'Build libpurple without perl support'
  21 + option 'with-perl', 'Build libpurple with perl support (default unless OSX 10.6 or below)'
  22 +
20 23 def install
21 24 # Just build the library, so disable all this UI stuff
22   - system "./configure", "--disable-debug", "--disable-dependency-tracking",
23   - "--prefix=#{prefix}",
24   - "--disable-gtkui",
25   - "--disable-consoleui",
26   - "--disable-dbus",
27   - "--without-x",
28   - "--disable-gstreamer",
29   - "--disable-vv",
30   - "--disable-meanwhile",
31   - "--disable-avahi",
32   - "--disable-perl",
33   - "--disable-doxygen"
  25 + options = %W[
  26 + --disable-debug
  27 + --disable-dependency-tracking
  28 + --prefix=#{prefix}
  29 + --disable-gtkui
  30 + --disable-consoleui
  31 + --disable-dbus
  32 + --without-x
  33 + --disable-gstreamer
  34 + --disable-vv
  35 + --disable-meanwhile
  36 + --disable-avahi
  37 + --disable-doxygen
  38 + ]
  39 +
  40 + if build.include? 'without-perl' or (!build.include?('with-perl') and MacOS.version <= :snow_leopard)
  41 + options << '--disable-perl'
  42 + end
  43 +
  44 + system "./configure", *options
34 45 system "make install"
35 46 end
36 47 end

0 comments on commit ec242af

Please sign in to comment.
Something went wrong with that request. Please try again.