opam-version: "2.0"
maintainer: "Christoph Höger <christoph.hoeger@tu-berlin.de>"
authors: "Christoph Höger <christoph.hoeger@tu-berlin.de>"
homepage: "https://github.com/choeger/modelica.ml"
bug-reports: "https://github.com/choeger/modelica.ml/issues"
license: "BSD-3-Clause"
dev-repo: "git+https://github.com/choeger/modelica.ml.git"
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: ["ocaml" "setup.ml" "-install"]
remove: ["ocamlfind" "remove" "modelica_ml"]
depends: [
  "ocaml" {>= "4.02.1" & < "4.03"}
  "ANSITerminal"
  "batteries"
  "menhir"
  "ocamlfind"
  "ppx_deriving" {>= "1.1"}
  "sedlex"
  "ocamlbuild" {build}
]
depopts: "ounit"
synopsis: "Modelica abstract syntax and parser"
description: """
Modelica.ml is a Modelica frontend implemented in OCaml.
It is written with compilation in mind, but should also be
useful for other applications.

Currently, only abstract syntax, parsing and pretty printing
are implemented. Patches welcome!"""
flags: light-uninstall
extra-files: ["modelica.ml.install" "md5=30d97343e4fddda07ff1a29d7758f071"]
url {
  src: "https://github.com/choeger/modelica.ml/archive/v0.1.1.tar.gz"
  checksum: "md5=5983a59ff05c8feadb6bedf24195752c"
}
