aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mtools.rb
blob: ff782cb9900caff0d5c1fcea11be6ac6b3f9fde8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'formula'

class Mtools < Formula
  homepage 'http://www.gnu.org/software/mtools/'
  url 'http://ftpmirror.gnu.org/mtools/mtools-4.0.17.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/mtools/mtools-4.0.17.tar.gz'
  sha1 'eebfab51148c4ab20a6aca3cea8057da5a11bdc8'

  conflicts_with 'multimarkdown', :because => 'both install `mmd` binaries'

  depends_on :x11 => :optional

  def 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