# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 98499 2012-10-07 11:42:35Z mww@macports.org $

PortSystem          1.0

name                ott
version             0.21.2
revision            1
platforms           darwin
categories          devel
license             BSD
maintainers         nomaintainer
description         tool for writing definitions of programming languages
long_description    Ott is a tool for writing definitions of programming \
                    languages and calculi. It takes as input a definition of a \
                    language syntax and semantics, in a concise and readable \
                    ASCII notation that is close to what one would write in \
                    informal mathematics. It generates LaTeX to build a \
                    typeset version of the definition, and Coq, HOL, and \
                    Isabelle versions of the definition.

homepage            http://www.cl.cam.ac.uk/~pes20/ott/
master_sites        ${homepage}
distname            ott_distro_${version}

checksums           rmd160  42f834ab699e775ac57cf8ba322b14c460bd9cbe \
                    sha256  56368ae9864876cfe3a177ec26ac3e310d00d9ea2616528dd0680580e8361092

depends_lib         port:ocaml

use_configure       no

build.env           PREFIX=${prefix}
build.target        world

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/bin \
        ${destroot}${prefix}/share/doc
    xinstall -m 755 -W ${worksrcpath} bin/ott \
        ${destroot}${prefix}/bin/ott
    file copy ${worksrcpath}/doc \
        ${destroot}${prefix}/share/doc/${name}
    file copy ${worksrcpath}/examples \
        ${destroot}${prefix}/share/doc/${name}/examples
}
