# $Id: Portfile 60507 2009-11-14 06:45:44Z avsm@macports.org $

PortSystem          1.0

name                caml-ssl
version             0.4.3
categories          devel ml
maintainers         avsm
description         SSL bindings for OCaml
long_description    SSL bindings for OCaml to use secure connections via the \
                    OpenSSL library.
homepage            http://savonet.sf.net
platforms           darwin
master_sites        sourceforge:savonet

distname            ocaml-ssl-${version}

checksums           md5     7a9fb5adf16ca411389fc07ed7ddaa66 \
                    sha1    bb6b1b2144ad17764b3ae7c95501d0c14db856b8 \
                    rmd160  2625759fb071aa5d9f27337af924f899d4550ac9

depends_lib         port:ocaml port:caml-findlib
use_parallel_build  no

set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
destroot.env        OCAMLFIND_INSTFLAGS="-ldconf ignore -destdir $ocamlfind_destdir"

livecheck.type      regex
livecheck.url       http://sf.net/api/file/index/project-id/89802/rss?path=%2Focaml-ssl
livecheck.regex     {ocaml-ssl-(.*)\.tar\.gz}

pre-destroot {
    file mkdir $ocamlfind_destdir
}

