Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

New Formula: rml-mmc #13278

Closed
wants to merge 2 commits into from

3 participants

@guitorri

Relational Meta-Language (RML) is used as a practical language for Natural Semantics in programming language implementations.

RML is used to implement the MetaModelica compiler (MMC) on the OpenModelica project (https://www.openmodelica.org/).

OpenModelica is a free implementation of the Modelica language (https://modelica.org/), which is used to model complex physical systems.

  • This formula needs the StandardML of New Jersey (smlnj) to build RML.
  • This formula is HEAD because the last stable is too old for OpenModelica.

Installing from SVN you may need to provide the username and password.
brew install --HEAD rml-mmc

Username: anonymoys
Password: none

@guitorri guitorri New Formula: rml-mmc
Relational Meta-Language (RML) is used as a practical language for Natural Semantics in programming language implementations.

RML is used to implement the MetaModelica compiler (MMC) on the OpenModelica project (https://www.openmodelica.org/).

OpenModelica is a free implementation of the Modelica language (https://modelica.org/), which is used to model complex physical systems.

* This formula needs the StandardML of New Jersey (smlnj) to build RML.
* This formula is HEAD because the last stable is too old for OpenModelica.

Installing from SVN you may need to provide the username and password.
brew install --HEAD rml-mmc
<enter>
Username: anonymoys
Password: none
4d02ac6
@adamv
Owner

We can't accept this as a head-only formula.

@guitorri guitorri Added tarball url to the formula
Formula was head-only. Developers pointed out the location of the release repository.
7d14548
@guitorri

Sorry for the head-only. I couldn't find the tarball. Now a developer provided me with the stable repository url.

You will get a warning of non-libraries installed into lib. That file is a heap image which is loaded by the tool.

@jacknagel jacknagel commented on the diff
Library/Formula/rml-mmc.rb
((2 lines not shown))
+
+class RmlMmc < Formula
+ homepage 'http://www.ida.liu.se/labs/pelab/rml'
+ url 'https://build.openmodelica.org/apt/pool/contrib/rml-mmc_229.orig.tar.gz'
+ sha1 '5fd2cda54fafcfeeb68ebfa4ddb9865622d09c5b'
+
+ head 'https://openmodelica.org/svn/MetaModelica/trunk', :using => :svn
+
+ depends_on 'smlnj'
+
+ def install
+ ENV.j1
+
+ smlnj_prefix = `brew --prefix smlnj`.strip
+
+ ENV['SMLNJ_HOME'] = "#{smlnj_prefix}/libexec/"
@jacknagel Owner

You can get this programmatically:

ENV['SMLNJ_HOME'] = Formula.factory("smlnj").libexec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@adamv
Owner

Passing on this as we are going to redact smlnj; suggest it be kept in a separate tap.

@adamv adamv closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 8, 2012
  1. @guitorri

    New Formula: rml-mmc

    guitorri authored
    Relational Meta-Language (RML) is used as a practical language for Natural Semantics in programming language implementations.
    
    RML is used to implement the MetaModelica compiler (MMC) on the OpenModelica project (https://www.openmodelica.org/).
    
    OpenModelica is a free implementation of the Modelica language (https://modelica.org/), which is used to model complex physical systems.
    
    * This formula needs the StandardML of New Jersey (smlnj) to build RML.
    * This formula is HEAD because the last stable is too old for OpenModelica.
    
    Installing from SVN you may need to provide the username and password.
    brew install --HEAD rml-mmc
    <enter>
    Username: anonymoys
    Password: none
Commits on Jul 10, 2012
  1. @guitorri

    Added tarball url to the formula

    guitorri authored
    Formula was head-only. Developers pointed out the location of the release repository.
This page is out of date. Refresh to see the latest.
Showing with 37 additions and 0 deletions.
  1. +37 −0 Library/Formula/rml-mmc.rb
View
37 Library/Formula/rml-mmc.rb
@@ -0,0 +1,37 @@
+require 'formula'
+
+class RmlMmc < Formula
+ homepage 'http://www.ida.liu.se/labs/pelab/rml'
+ url 'https://build.openmodelica.org/apt/pool/contrib/rml-mmc_229.orig.tar.gz'
+ sha1 '5fd2cda54fafcfeeb68ebfa4ddb9865622d09c5b'
+
+ head 'https://openmodelica.org/svn/MetaModelica/trunk', :using => :svn
+
+ depends_on 'smlnj'
+
+ def install
+ ENV.j1
+
+ smlnj_prefix = `brew --prefix smlnj`.strip
+
+ ENV['SMLNJ_HOME'] = "#{smlnj_prefix}/libexec/"
@jacknagel Owner

You can get this programmatically:

ENV['SMLNJ_HOME'] = Formula.factory("smlnj").libexec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+
+ system "./configure --prefix=#{prefix}"
+ system "make"
+ system "make install"
+ end
+
+ def test
+ system "#{bin}/rml", "-v"
+ end
+
+ def caveats; <<-EOS.undent
+ Installing form SVN you may need to provide the username and password.
+ brew install --HEAD mmc
+ <enter>
+ Username: anonymoys
+ Password: none
+ EOS
+ end
+end
+
Something went wrong with that request. Please try again.