From 6607bc47bc8b5a12283fe21c539cc9687adf2741 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 19 Nov 2022 01:20:25 +0000 Subject: dev-ml/labltk: fix configure w/ clang 16 Closes: https://bugs.gentoo.org/881841 Signed-off-by: Sam James --- dev-ml/labltk/files/labltk-8.06.7-configure.patch | 27 ++++++++++ .../files/labltk-8.06.9-configure-clang16.patch | 50 +++++++++++++++++++ dev-ml/labltk/labltk-8.06.10-r1.ebuild | 58 ++++++++++++++++++++++ dev-ml/labltk/labltk-8.06.10.ebuild | 57 --------------------- dev-ml/labltk/labltk-8.06.11-r1.ebuild | 53 ++++++++++++++++++++ dev-ml/labltk/labltk-8.06.11.ebuild | 52 ------------------- dev-ml/labltk/labltk-8.06.12-r1.ebuild | 53 ++++++++++++++++++++ dev-ml/labltk/labltk-8.06.12.ebuild | 52 ------------------- dev-ml/labltk/labltk-8.06.7-r1.ebuild | 54 ++++++++++++++++++++ dev-ml/labltk/labltk-8.06.7.ebuild | 52 ------------------- dev-ml/labltk/labltk-8.06.9-r1.ebuild | 54 ++++++++++++++++++++ dev-ml/labltk/labltk-8.06.9.ebuild | 53 -------------------- 12 files changed, 349 insertions(+), 266 deletions(-) create mode 100644 dev-ml/labltk/files/labltk-8.06.7-configure.patch create mode 100644 dev-ml/labltk/files/labltk-8.06.9-configure-clang16.patch create mode 100644 dev-ml/labltk/labltk-8.06.10-r1.ebuild delete mode 100644 dev-ml/labltk/labltk-8.06.10.ebuild create mode 100644 dev-ml/labltk/labltk-8.06.11-r1.ebuild delete mode 100644 dev-ml/labltk/labltk-8.06.11.ebuild create mode 100644 dev-ml/labltk/labltk-8.06.12-r1.ebuild delete mode 100644 dev-ml/labltk/labltk-8.06.12.ebuild create mode 100644 dev-ml/labltk/labltk-8.06.7-r1.ebuild delete mode 100644 dev-ml/labltk/labltk-8.06.7.ebuild create mode 100644 dev-ml/labltk/labltk-8.06.9-r1.ebuild delete mode 100644 dev-ml/labltk/labltk-8.06.9.ebuild (limited to 'dev-ml/labltk') diff --git a/dev-ml/labltk/files/labltk-8.06.7-configure.patch b/dev-ml/labltk/files/labltk-8.06.7-configure.patch new file mode 100644 index 000000000000..320f92f7ce45 --- /dev/null +++ b/dev-ml/labltk/files/labltk-8.06.7-configure.patch @@ -0,0 +1,27 @@ +https://bugs.gentoo.org/881841 +https://github.com/garrigue/labltk/commit/be8c977d320ed40cacb322658d4ceba5e583b3a6 + +From be8c977d320ed40cacb322658d4ceba5e583b3a6 Mon Sep 17 00:00:00 2001 +From: Jacques Garrigue +Date: Mon, 24 Aug 2020 11:27:34 +0900 +Subject: [PATCH] Fix config/auto-aux/hasgot for clang 12 + +--- a/config/auto-aux/hasgot ++++ b/config/auto-aux/hasgot +@@ -30,7 +30,8 @@ while : ; do + shift + done + +-(echo "main() {" ++(for f in $*; do echo "int $f();"; done ++ echo "int main() {" + for f in $*; do echo " $f();"; done + echo "}") >> hasgot.c + +--- a/config/auto-aux/hasgot.c ++++ /dev/null +@@ -1,3 +0,0 @@ +-main() { +- Tk_SetGrid(); +-} + diff --git a/dev-ml/labltk/files/labltk-8.06.9-configure-clang16.patch b/dev-ml/labltk/files/labltk-8.06.9-configure-clang16.patch new file mode 100644 index 000000000000..bc7e04175f7f --- /dev/null +++ b/dev-ml/labltk/files/labltk-8.06.9-configure-clang16.patch @@ -0,0 +1,50 @@ +https://bugs.gentoo.org/881841 +https://github.com/garrigue/labltk/pull/17 + +From e1e850972c4190686a040574b91d61948cc559b5 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sat, 19 Nov 2022 01:14:25 +0000 +Subject: [PATCH] config: Fix -Wimplicit-int, -Wstrict-prototypes (Clang 16) + +Followup to be8c977d320ed40cacb322658d4ceba5e583b3a6. + +Clang 16 makes -Wimplicit-int error by default. + +Unfortunately, this can lead to misconfiguration or miscompilation of software as configure +tests may then return the wrong result. + +We also fix -Wstrict-prototypes while here as it's easy to do and it prepares +us for C23. + +For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2], +or the (new) c-std-porting mailing list [3]. + +[0] https://lwn.net/Articles/913505/ +[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213 +[2] https://wiki.gentoo.org/wiki/Modern_C_porting +[3] hosted at lists.linux.dev. + +Signed-off-by: Sam James +--- a/config/auto-aux/hasgot ++++ b/config/auto-aux/hasgot +@@ -31,7 +31,7 @@ while : ; do + done + + (for f in $*; do echo "int $f();"; done +- echo "int main() {" ++ echo "int main(void) {" + for f in $*; do echo " $f();"; done + echo "}") >> hasgot.c + +--- a/config/auto-aux/tclversion.c ++++ b/config/auto-aux/tclversion.c +@@ -18,7 +18,7 @@ + #include + #include + +-main () ++int main (void) + { + puts(TCL_VERSION); + } + diff --git a/dev-ml/labltk/labltk-8.06.10-r1.ebuild b/dev-ml/labltk/labltk-8.06.10-r1.ebuild new file mode 100644 index 000000000000..ba2aeaa5b347 --- /dev/null +++ b/dev-ml/labltk/labltk-8.06.10-r1.ebuild @@ -0,0 +1,58 @@ +# 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" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-warnings.patch.bz2" + +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.11:=[ocamlopt?,X(+)?]" +DEPEND="${RDEPEND} + dev-ml/findlib +" + +PATCHES=( + "${FILESDIR}/findlib.patch" + "${FILESDIR}"/${PN}-8.06.9-configure-clang16.patch + "${WORKDIR}"/${P}-warnings.patch +) + +src_prepare() { + has_version "dev-lang/ocaml:0/4.11" && \ + eapply "${FILESDIR}"/${P}-this-expression-has-type.patch + 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 +} diff --git a/dev-ml/labltk/labltk-8.06.10.ebuild b/dev-ml/labltk/labltk-8.06.10.ebuild deleted file mode 100644 index 0e2d1e982325..000000000000 --- a/dev-ml/labltk/labltk-8.06.10.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# 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" -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-warnings.patch.bz2" - -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.11:=[ocamlopt?,X(+)?]" -DEPEND="${RDEPEND} - dev-ml/findlib -" - -PATCHES=( - "${FILESDIR}/findlib.patch" - "${WORKDIR}"/${P}-warnings.patch -) - -src_prepare() { - has_version "dev-lang/ocaml:0/4.11" && \ - eapply "${FILESDIR}"/${P}-this-expression-has-type.patch - 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 -} diff --git a/dev-ml/labltk/labltk-8.06.11-r1.ebuild b/dev-ml/labltk/labltk-8.06.11-r1.ebuild new file mode 100644 index 000000000000..d3936002790d --- /dev/null +++ b/dev-ml/labltk/labltk-8.06.11-r1.ebuild @@ -0,0 +1,53 @@ +# 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.13*:=[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 +} diff --git a/dev-ml/labltk/labltk-8.06.11.ebuild b/dev-ml/labltk/labltk-8.06.11.ebuild deleted file mode 100644 index 150ac43273e3..000000000000 --- a/dev-ml/labltk/labltk-8.06.11.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# 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.13*:=[ocamlopt?,X(+)?]" -DEPEND="${RDEPEND} - dev-ml/findlib -" - -PATCHES=( - "${FILESDIR}/findlib.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 -} diff --git a/dev-ml/labltk/labltk-8.06.12-r1.ebuild b/dev-ml/labltk/labltk-8.06.12-r1.ebuild new file mode 100644 index 000000000000..fe10ce5dc4e6 --- /dev/null +++ b/dev-ml/labltk/labltk-8.06.12-r1.ebuild @@ -0,0 +1,53 @@ +# 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 ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="+ocamlopt X" + +RDEPEND="dev-lang/tk:= + >=dev-lang/ocaml-4.14:=[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 all + 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 +} diff --git a/dev-ml/labltk/labltk-8.06.12.ebuild b/dev-ml/labltk/labltk-8.06.12.ebuild deleted file mode 100644 index 3042cc64e298..000000000000 --- a/dev-ml/labltk/labltk-8.06.12.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# 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 ~riscv ~x86 ~amd64-linux ~x86-linux" -IUSE="+ocamlopt X" - -RDEPEND="dev-lang/tk:= - >=dev-lang/ocaml-4.14:=[ocamlopt?,X(+)?]" -DEPEND="${RDEPEND} - dev-ml/findlib -" - -PATCHES=( - "${FILESDIR}/findlib.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 all - 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 -} diff --git a/dev-ml/labltk/labltk-8.06.7-r1.ebuild b/dev-ml/labltk/labltk-8.06.7-r1.ebuild new file mode 100644 index 000000000000..4acab0317733 --- /dev/null +++ b/dev-ml/labltk/labltk-8.06.7-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-8.0.3:= + =dev-lang/ocaml-4.08:=[ocamlopt?,X(+)?]" +DEPEND="${RDEPEND} + >=dev-ml/findlib-1.5.5-r1" + +PATCHES=( + "${FILESDIR}/findlib.patch" + "${FILESDIR}"/${P}-configure.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 +} diff --git a/dev-ml/labltk/labltk-8.06.7.ebuild b/dev-ml/labltk/labltk-8.06.7.ebuild deleted file mode 100644 index 637bdd00956e..000000000000 --- a/dev-ml/labltk/labltk-8.06.7.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# 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-8.0.3:= - =dev-lang/ocaml-4.08:=[ocamlopt?,X(+)?]" -DEPEND="${RDEPEND} - >=dev-ml/findlib-1.5.5-r1" - -PATCHES=( - "${FILESDIR}/findlib.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 -} 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.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 +} diff --git a/dev-ml/labltk/labltk-8.06.9.ebuild b/dev-ml/labltk/labltk-8.06.9.ebuild deleted file mode 100644 index 7bce5317f51d..000000000000 --- a/dev-ml/labltk/labltk-8.06.9.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# 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.11:=[ocamlopt?,X(+)?]" -DEPEND="${RDEPEND} - dev-ml/findlib -" - -PATCHES=( - "${FILESDIR}/findlib.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 -} -- cgit v1.2.3-65-gdbad