1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Objective CAML interface for Gtk+2"
7 HOMEPAGE="http://lablgtk.forge.ocamlcore.org"
8 SRC_URI="https://github.com/garrigue/lablgtk/releases/download/lablgtk2188/${P}.tar.gz"
10 LICENSE="LGPL-2.1-with-linking-exception examples? ( lablgtk-examples )"
12 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
13 IUSE="debug examples glade gnomecanvas +ocamlopt opengl sourceview spell svg"
15 DEPEND="dev-lang/ocaml:=[ocamlopt?]
18 glade? ( gnome-base/libglade )
19 gnomecanvas? ( gnome-base/libgnomecanvas )
24 sourceview? ( x11-libs/gtksourceview:2.0 )
25 spell? ( app-text/gtkspell:2 )
26 svg? ( gnome-base/librsvg:2 )"
28 BDEPEND="dev-ml/findlib
31 DOCS=( CHANGES README CHANGES.API )
41 $(use_with spell gtkspell)
42 --without-gtksourceview
43 $(use_with sourceview gtksourceview2)
44 $(use_with gnomecanvas)
47 econf "${myeconfargs[@]}"
51 # parallel build crashes
59 local destdir="$(ocamlfind printconf destdir || die)"
60 dodir "${destdir}/stublibs"
61 export OCAMLFIND_DESTDIR=${ED}"${destdir}"
62 export OCAMLPATH="${ED}${destdir}"
63 export OCAMLFIND_LDCONF=ignore
66 rm "${ED}/usr/$(get_libdir)/ocaml/ld.conf" || die
70 docompress -x /usr/share/doc/${PF}/examples