# -*- 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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           ocaml 1.1

github.setup        garrigue lablgtk 3.1.5
github.tarball_from archive
name                lablgtk3
revision            0

categories          x11 ocaml
license             {LGPL-2.1+ Restrictive/Distributable}
maintainers         {pguyot @pguyot} openmaintainer

description         OCaml interface to GTK+ 3
long_description    LablGTK3 is an OCaml interface to GTK+ 3. It uses the \
                    rich type system of OCaml to provide a strongly typed, \
                    yet very comfortable, object-oriented interface to GTK+.

homepage            https://garrigue.github.io/lablgtk/

checksums           rmd160  a259462c186d6e9a0634288c668fce404fd4872e \
                    sha256  90e737df93f1e8a9e4a584be701a4254e7cb2e1a741566b7c9c8a89ed3449096 \
                    size    1045721

# camlp5 and camlp-streams generate and compile the property/variant
# description tools (propcc, varcc) used during the build.
depends_build-append \
                    port:camlp5 \
                    port:ocaml-camlp-streams \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:ocaml-cairo2

ocaml.build_type    dune
dune.packages       lablgtk3

github.livecheck.regex  {(\d+(?:\.\d+)+)}
