# $Id$

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-eliom
version             2.2.2
revision            4
categories          devel www ml
platforms           darwin
license             {LGPL-2.1 OpenSSLException}
maintainers         mww openmaintainer
description         OCaml framework for programming web applications
long_description    \
    Eliom is a framework for programming web sites and client/server web \
    applications. It uses very new concepts making programming very different \
    from all other web programming tools, and allowing to write a complex web \
    site in very few lines of code.

homepage            http://ocsigen.org/eliom/
master_sites        http://ocsigen.org/download/
checksums           rmd160  b8e32940187d03b6dac2c0bcc98d0c27f45c6a52 \
                    sha256  bfca844180ec19dcd0f6eec39ed118e15919bd7990c142126242443c905b1caf

distname            eliom-${version}

depends_lib         port:ocaml port:ocaml-findlib port:ocaml-js_of_ocaml \
                    port:ocsigen port:ocaml-deriving-ocsigen port:ocaml-lwt \
                    port:ocaml-calendar port:ocaml-cryptokit port:tyxml

post-extract {
    file attributes ${worksrcpath}/configure -permissions +x
}

configure.pre_args  --prefix ${prefix}
configure.args      --mandir ${prefix}/share/man \
                    --temproot ${destroot} \
                    --docdir ${prefix}/share/doc/${name}

use_parallel_build  no
build.target        all doc

destroot.target     install install.doc

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} CHANGES COPYING LICENSE README VERSION \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       http://ocsigen.org/eliom/install
livecheck.regex     eliom-(\[0-9.\]+)${extract.suffix}