diff options
| author | Adam Vandenberg | 2014-03-07 20:19:07 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-07 20:20:31 -0800 |
| commit | c7a723046824d592bd7bd31f076100e132a8d2f5 (patch) | |
| tree | 0af3dbec9c5d3962d4b6b4cf450c3e8edb9b0d6f /Library/Formula | |
| parent | fbd586a8670996804433f5927f11715deb6d49d2 (diff) | |
| download | homebrew-c7a723046824d592bd7bd31f076100e132a8d2f5.tar.bz2 | |
mtools: be explicit about x11
Closes #27216.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mtools.rb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Library/Formula/mtools.rb b/Library/Formula/mtools.rb index 3bcdeefd4..ff782cb99 100644 --- a/Library/Formula/mtools.rb +++ b/Library/Formula/mtools.rb @@ -11,9 +11,19 @@ class Mtools < Formula depends_on :x11 => :optional def install - system "./configure", "LIBS=-liconv", - "--disable-debug", - "--prefix=#{prefix}" - system "make install" + args = ["LIBS=-liconv", + "--disable-debug", + "--prefix=#{prefix}"] + + if build.with? 'x11' + args << "--with-x" + else + args << "--without-x" + end + + system "./configure", *args + system "make" + ENV.j1 + system "make", "install" end end |
