diff options
author | 2022-11-19 01:20:25 +0000 | |
---|---|---|
committer | 2022-11-19 01:34:44 +0000 | |
commit | 6607bc47bc8b5a12283fe21c539cc9687adf2741 (patch) | |
tree | 70f2ea74506bbb7ee9265c7bb6c85ac097624616 /dev-ml/labltk/labltk-8.06.9-r1.ebuild | |
parent | dev-ml/labltk: add github upstream metadata (diff) | |
download | gentoo-6607bc47bc8b5a12283fe21c539cc9687adf2741.tar.gz gentoo-6607bc47bc8b5a12283fe21c539cc9687adf2741.tar.bz2 gentoo-6607bc47bc8b5a12283fe21c539cc9687adf2741.zip |
dev-ml/labltk: fix configure w/ clang 16
Closes: https://bugs.gentoo.org/881841
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ml/labltk/labltk-8.06.9-r1.ebuild')
-rw-r--r-- | dev-ml/labltk/labltk-8.06.9-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-ml/labltk/labltk-8.06.9-r1.ebuild b/dev-ml/labltk/labltk-8.06.9-r1.ebuild new file mode 100644 index 000000000000..aad779f428a8 --- /dev/null +++ b/dev-ml/labltk/labltk-8.06.9-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit findlib toolchain-funcs + +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 ~x86 ~amd64-linux ~x86-linux" +IUSE="+ocamlopt X" + +RDEPEND="dev-lang/tk:= + <dev-lang/ocaml-4.12 + >=dev-lang/ocaml-4.11:=[ocamlopt?,X(+)?]" +DEPEND="${RDEPEND} + dev-ml/findlib +" + +PATCHES=( + "${FILESDIR}/findlib.patch" + "${FILESDIR}"/${PN}-8.06.9-configure-clang16.patch +) + +src_prepare() { + sed -i \ + -e "s|ranlib|$(tc-getRANLIB)|" \ + frx/Makefile \ + || die + default +} + +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 +} |