PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-calendar
version             2.03.2
revision            4
categories          ocaml devel
platforms           darwin
license             LGPL-2.1
maintainers         nomaintainer
homepage            http://calendar.forge.ocamlcore.org/
description         Objective Caml interface for calendar functions
long_description    An OCaml interface for managing dates and times.

master_sites        https://forge.ocamlcore.org/frs/download.php/915/
distname            calendar-${version}

checksums           rmd160  b065bb9dcd7a756fd7f77c5fca36b7e2c7e20902 \
                    sha256  0e381faaa3bba522cbac705a7f872e6ecfa15220671f4688d1e311631687fb12

post-patch {
    reinplace "s|@OCAMLFIND@|${ocamlfind_wrapper}|g" ${worksrcpath}/Makefile.in
}

depends_lib         port:ocaml \
                    port:ocaml-findlib

livecheck.type      regex
livecheck.regex     {calendar-(\d+(?:\.\d+)*)}