forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rml-mmc.rb
30 lines (24 loc) · 947 Bytes
/
rml-mmc.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'formula'
class RmlMmc < Formula
homepage 'http://www.ida.liu.se/labs/pelab/rml'
url 'http://build.openmodelica.org/apt/pool/contrib/rml-mmc_255.orig.tar.gz'
version '2.5.5'
sha1 'ab173438a56f344904f6d02ccc8d6a360896219d'
# Attention, has a self-signed certificate and svn will prompt you, so
# do not use --HEAD as a dependency or automatic installation (built-bot).
head 'https://openmodelica.org/svn/MetaModelica/trunk', :using => :svn
depends_on 'smlnj'
def install
ENV.j1
# Change the next lines to Formula.factory("smlnj").prefix/'SMLNJ_HOME'
# once https://github.com/mxcl/homebrew/pull/16355 is pulled!
# Setting the path will no longer be necessary, then.
ENV['SMLNJ_HOME'] = Formula.factory("smlnj").libexec
ENV.append 'PATH', "#{ENV['SMLNJ_HOME']}/bin"
system "./configure --prefix=#{prefix}"
system "make install"
end
def test
system "#{bin}/rml", "-v"
end
end