# -*- 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 # $Id$ PortSystem 1.0 PortGroup ocaml 1.0 name lablgtk2 version 2.16.0 revision 3 categories x11 ml platforms darwin maintainers nomaintainer # the apps have a much more restrictive license than the library code license {LGPL-2 Restrictive/Distributable} description Objective Caml interface to gtk+ 2.x long_description LablGTK2 is is an Objective Caml interface to gtk+ 2.x. \ It uses the rich type system of Objective Caml 3 to provide a \ strongly typed, yet very comfortable, object-oriented interface to \ gtk+. This is not that easy if you know the dynamic typing approach \ taken by gtk+. homepage http://lablgtk.forge.ocamlcore.org/ master_sites https://forge.ocamlcore.org/frs/download.php/979/ distname lablgtk-${version} checksums rmd160 47d89ce62e02dc4143f340e92adfdde6bbdef89a \ sha256 a0ea9752eb257dadcfc2914408fff339d4c34357802f02c63329dd41b777de2f depends_build port:pkgconfig depends_lib port:ocaml \ port:ocaml-findlib \ port:gtk2 \ port:libpng \ port:libglade2 \ port:libgnomecanvas \ port:libgnomeui configure.args --with-libdir=${ocamlfind_dir} \ --without-gl \ --without-rsvg \ --with-glade \ --with-gnomecanvas \ --with-gnomeui \ --without-panel \ --without-gtkspell \ --without-gtksourceview build.target world doc use_parallel_build no pre-destroot { xinstall -m 755 -d "${destroot}${prefix}/lib/ocaml/site-libs/stublibs" } destroot.target old-install post-destroot { xinstall -m 755 -d ${ocamlfind_destdir}/lablgtk2 \ ${destroot}${prefix}/share/doc/${name} file copy ${worksrcpath}/META ${ocamlfind_destdir}/lablgtk2 file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name}/ } variant rsvg description "enable rsvg support" { configure.args-delete --without-rsvg configure.args-append --with-rsvg depends_lib-append port:librsvg } variant gtksourceview description "enable gtksourceview support" { configure.args-delete --without-gtksourceview configure.args-append --with-gtksourceview depends_lib-append port:gtksourceview } livecheck.type regex livecheck.regex {lablgtk-([0-9]+(\.[0-9]+)+)\.}