homebrew-core/Formula/mtools.rb

30 lines
678 B
Ruby
Raw Normal View History

require 'formula'
class Mtools < Formula
2013-01-29 04:51:46 +00:00
homepage 'http://www.gnu.org/software/mtools/'
2013-11-10 06:34:06 +00:00
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'
2013-11-10 06:43:35 +00:00
conflicts_with 'multimarkdown', :because => 'both install `mmd` binaries'
2013-11-10 06:34:06 +00:00
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