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

set realname        lablgtk
set branch          3
name                ${realname}${branch}
github.setup        garrigue ${realname} ${branch}.1.5
revision            2
categories          x11 gnome ocaml
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             LGPL-2.1
description         OCaml interface to GTK+ 3.x
long_description    LablGTK2 is is an OCaml interface to GTK+ 3.x. \
                    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
github.tarball_from archive

depends_build-append \
                    path:bin/pkg-config:pkgconfig \
                    port:ocaml-findlib

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

ocaml.build_type    dune

subport ${name}-sourceview3 {
    description     OCaml interface to GTK+ gtksourceview library

    depends_lib     port:gtksourceview3 \
                    port:lablgtk${branch}
}
