diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2020-01-04 19:15:47 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2020-01-04 19:16:04 +0100 |
commit | bb707dd7b3fce1c6e3386e1aaa0fb67b60bf690c (patch) | |
tree | 245d77c78d22773e93e934d251a88048a0bfca3a /dev-ml/labltk/labltk-8.06.7.ebuild | |
parent | sys-apps/file: refactor cross-compile logic (diff) | |
download | gentoo-bb707dd7b3fce1c6e3386e1aaa0fb67b60bf690c.tar.gz gentoo-bb707dd7b3fce1c6e3386e1aaa0fb67b60bf690c.tar.bz2 gentoo-bb707dd7b3fce1c6e3386e1aaa0fb67b60bf690c.zip |
dev-ml/labltk: bump to 8.06.7
1) eapi7
2) updated homepage
3) updated dev-lang/ocaml version
4) improved tk x11 switch handling
5) removed buggy 8.06.3
Closes: https://bugs.gentoo.org/704090
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-ml/labltk/labltk-8.06.7.ebuild')
-rw-r--r-- | dev-ml/labltk/labltk-8.06.7.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-ml/labltk/labltk-8.06.7.ebuild b/dev-ml/labltk/labltk-8.06.7.ebuild new file mode 100644 index 000000000000..fbf50f8dcb47 --- /dev/null +++ b/dev-ml/labltk/labltk-8.06.7.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit findlib eutils + +DESCRIPTION="OCaml interface to the Tcl/Tk GUI framework" +HOMEPAGE="https://garrigue.github.io/labltk/" +SRC_URI="https://github.com/garrigue/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="QPL-1.0 LGPL-2" +SLOT="0/${PV}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="+ocamlopt X" + +RDEPEND=">=dev-lang/tk-8.0.3:= + >=dev-lang/ocaml-4.08:=[ocamlopt?,X(+)?]" +DEPEND="${RDEPEND} + >=dev-ml/findlib-1.5.5-r1" + +PATCHES=( + "${FILESDIR}/findlib.patch" +) + +src_configure() { + ./configure --use-findlib --verbose $(usex X "--tk-x11" "--tk-no-x11") || die "configure failed!" +} + +src_compile() { + emake -j1 + use ocamlopt && emake -j1 opt +} + +src_install() { + findlib_src_preinst + dodir /usr/bin + emake \ + INSTALLDIR="${D}$(ocamlc -where)/labltk" \ + INSTALLBINDIR="${ED}/usr/bin/" \ + install + dodoc Changes README.mlTk +} |