2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-29 03:57:33 +00:00
|
|
|
|
2010-03-28 17:18:42 +00:00
|
|
|
class Mg < Formula
|
2011-09-07 04:43:52 +00:00
|
|
|
homepage 'http://homepage.boetes.org/software/mg/'
|
2013-11-18 16:16:53 +00:00
|
|
|
url 'http://homepage.boetes.org/software/mg/mg-20131118.tar.gz'
|
|
|
|
sha1 '61f0d6ef2fd36acc51fa560aa67d4eccd3a6c2b9'
|
2013-11-01 19:40:57 +00:00
|
|
|
|
2013-11-18 16:16:53 +00:00
|
|
|
depends_on 'clens'
|
2009-09-29 03:57:33 +00:00
|
|
|
|
|
|
|
def install
|
2014-04-24 06:07:21 +00:00
|
|
|
# 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.
|
2014-04-24 14:30:49 +00:00
|
|
|
# Note mg also has a Makefile; but MacOS make uses GNUmakefile
|
|
|
|
inreplace "GNUmakefile", "$(includedir)/clens", "#{Formula['clens'].opt_include}/clens"
|
2014-04-24 06:07:21 +00:00
|
|
|
|
2013-11-18 16:16:53 +00:00
|
|
|
system "make"
|
2013-11-01 19:40:57 +00:00
|
|
|
bin.install "mg"
|
2012-05-16 20:09:15 +00:00
|
|
|
doc.install "tutorial"
|
2013-11-19 21:51:46 +00:00
|
|
|
man1.install "mg.1"
|
2009-09-29 03:57:33 +00:00
|
|
|
end
|
|
|
|
end
|