2011-12-29 15:18:58 +00:00
|
|
|
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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'eebfab51148c4ab20a6aca3cea8057da5a11bdc8'
|
2011-12-29 15:18:58 +00:00
|
|
|
|
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
|
2013-02-12 15:11:30 +00:00
|
|
|
|
2011-12-29 15:18:58 +00:00
|
|
|
def install
|
2014-03-08 04:19:07 +00:00
|
|
|
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"
|
2011-12-29 15:18:58 +00:00
|
|
|
end
|
|
|
|
end
|