homebrew-core/Formula/mg.rb
2013-01-28 21:40:31 -08:00

15 lines
479 B
Ruby

require 'formula'
class Mg < Formula
homepage 'http://homepage.boetes.org/software/mg/'
url 'http://homepage.boetes.org/software/mg/mg-20110905.tar.gz'
sha1 '51d2bac801cab33c9b552c36db5f8637fbbe9363'
def install
# -Wno-error=unused-but-set-variable requires GCC 4.6+
inreplace 'Makefile.in', '-Wno-error=unused-but-set-variable', ''
system "./configure"
system "make", "install", "prefix=#{prefix}", "mandir=#{man}"
doc.install "tutorial"
end
end