aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorkirneh19862010-12-07 20:46:19 +0100
committerMike McQuaid2010-12-11 20:21:49 +0000
commit826fc598579ceb0f4ba7c19a8a55758052454834 (patch)
tree32ceb368d8f21cb394589054d1fd3f529a4da2dd /Library
parent844d5a04021159998d173534d5cae9fef320af8a (diff)
downloadhomebrew-826fc598579ceb0f4ba7c19a8a55758052454834.tar.bz2
New Formula: mosml
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mosml.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/mosml.rb b/Library/Formula/mosml.rb
new file mode 100644
index 000000000..901a12f42
--- /dev/null
+++ b/Library/Formula/mosml.rb
@@ -0,0 +1,23 @@
+require 'formula'
+
+class Mosml <Formula
+ version '2.01'
+ url 'http://www.itu.dk/people/sestoft/mosml/mos201src.tar.gz'
+ homepage 'http://www.itu.dk/people/sestoft/mosml.html'
+ md5 '74aaaf988201fe92a9dbfbcb1e646f70'
+
+ def install
+ cd "src"
+
+ inreplace "Makefile.inc" do |s|
+ s.change_make_var! 'MOSMLHOME', prefix
+ s.gsub! '/lib/cpp', '/usr/bin/cpp'
+ s.change_make_var! 'DOCDIR', doc
+ s.change_make_var! 'LIBDIR', lib+'mosml'
+ s.change_make_var! 'TOOLDIR', lib+'mosml'
+ end
+
+ system "make"
+ system "make install"
+ end
+end \ No newline at end of file