f679469b4f
mg includes both a GNUmakefile and a Makefile; the former is being picked up first. Closes Homebrew/homebrew#28670. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
22 lines
682 B
Ruby
22 lines
682 B
Ruby
require 'formula'
|
|
|
|
class Mg < Formula
|
|
homepage 'http://homepage.boetes.org/software/mg/'
|
|
url 'http://homepage.boetes.org/software/mg/mg-20131118.tar.gz'
|
|
sha1 '61f0d6ef2fd36acc51fa560aa67d4eccd3a6c2b9'
|
|
|
|
depends_on 'clens'
|
|
|
|
def install
|
|
# makefile hardcodes include path to clens; since it's a
|
|
# nonstandard path, Homebrew's standard include paths won't
|
|
# fix this for people with nonstandard prefixes.
|
|
# Note mg also has a Makefile; but MacOS make uses GNUmakefile
|
|
inreplace "GNUmakefile", "$(includedir)/clens", "#{Formula['clens'].opt_include}/clens"
|
|
|
|
system "make"
|
|
bin.install "mg"
|
|
doc.install "tutorial"
|
|
man1.install "mg.1"
|
|
end
|
|
end
|