1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="OCaml interface to the Tcl/Tk GUI framework"
9 HOMEPAGE="https://forge.ocamlcore.org/projects/labltk/"
10 SRC_URI="https://forge.ocamlcore.org/frs/download.php/1701/${P}.tar.gz"
12 LICENSE="QPL-1.0 LGPL-2"
14 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
17 RDEPEND=">=dev-lang/tk-8.0.3:=
18 >=dev-lang/ocaml-4.04:=[ocamlopt?,X?]"
20 >=dev-ml/findlib-1.5.5-r1"
23 epatch "${FILESDIR}/findlib.patch"
27 ./configure --use-findlib --verbose $(use X || echo "--tk-no-x11") || die "configure failed!"
32 use ocamlopt && emake -j1 opt
39 INSTALLDIR="${D}$(ocamlc -where)/labltk" \
40 INSTALLBINDIR="${ED}/usr/bin/" \
42 dodoc Changes README.mlTk