From cfa07369cb804ea360eef996a504b1297ced25cc Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Wed, 29 Jun 2022 20:05:14 +0200 Subject: sci-mathematics/alt-ergo: require ocamlopt Closes: https://bugs.gentoo.org/849374 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alfredo Tupone --- .../alt-ergo/alt-ergo-2.4.1_p20220407-r1.ebuild | 52 ++++++++++++++++++++++ .../alt-ergo/alt-ergo-2.4.1_p20220407.ebuild | 51 --------------------- 2 files changed, 52 insertions(+), 51 deletions(-) create mode 100644 sci-mathematics/alt-ergo/alt-ergo-2.4.1_p20220407-r1.ebuild delete mode 100644 sci-mathematics/alt-ergo/alt-ergo-2.4.1_p20220407.ebuild diff --git a/sci-mathematics/alt-ergo/alt-ergo-2.4.1_p20220407-r1.ebuild b/sci-mathematics/alt-ergo/alt-ergo-2.4.1_p20220407-r1.ebuild new file mode 100644 index 000000000000..99700c400f68 --- /dev/null +++ b/sci-mathematics/alt-ergo/alt-ergo-2.4.1_p20220407-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=4e082218efe6e0e2315331580bbd08306c1f8a2d + +inherit dune + +DESCRIPTION="Automatic theorem prover" +HOMEPAGE="https://alt-ergo.ocamlpro.com" +SRC_URI="https://github.com/OCamlPro/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${H} + +LICENSE="CeCILL-C" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="examples +ocamlopt" + +RDEPEND=" + >=dev-lang/ocaml-4.09.0:=[ocamlopt=] + >=sci-mathematics/psmt2-frontend-0.4.0:= + + >=dev-ml/cmdliner-1.1.0:= + >=dev-ml/menhir-20181006:= + >=dev-ml/ocplib-simplex-0.4:= + dev-ml/camlzip:= + dev-ml/num:= + dev-ml/seq:= + dev-ml/stdlib-shims:= + dev-ml/zarith:= +" +DEPEND="${RDEPEND}" +BDEPEND="dev-ml/dune-configurator" +REQUIRED_USE="ocamlopt" + +src_prepare() { + default + + # Remove the GTK2 GUI frontend because GTK2 in Gentoo is deprecated + rm -r src/bin/gui || die +} + +src_configure() { + sh ./configure --prefix /usr --libdir=/usr/$(get_libdir) || die +} + +src_install() { + dune-install alt-ergo-lib alt-ergo-parsers alt-ergo + + use examples && dodoc -r examples +} diff --git a/sci-mathematics/alt-ergo/alt-ergo-2.4.1_p20220407.ebuild b/sci-mathematics/alt-ergo/alt-ergo-2.4.1_p20220407.ebuild deleted file mode 100644 index f76781a05972..000000000000 --- a/sci-mathematics/alt-ergo/alt-ergo-2.4.1_p20220407.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -H=4e082218efe6e0e2315331580bbd08306c1f8a2d - -inherit dune - -DESCRIPTION="Automatic theorem prover" -HOMEPAGE="https://alt-ergo.ocamlpro.com" -SRC_URI="https://github.com/OCamlPro/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}"/${PN}-${H} - -LICENSE="CeCILL-C" -SLOT="0/${PV}" -KEYWORDS="~amd64" -IUSE="examples +ocamlopt" - -RDEPEND=" - >=dev-lang/ocaml-4.09.0:=[ocamlopt=] - >=sci-mathematics/psmt2-frontend-0.4.0:= - - >=dev-ml/cmdliner-1.1.0:= - >=dev-ml/menhir-20181006:= - >=dev-ml/ocplib-simplex-0.4:= - dev-ml/camlzip:= - dev-ml/num:= - dev-ml/seq:= - dev-ml/stdlib-shims:= - dev-ml/zarith:= -" -DEPEND="${RDEPEND}" -BDEPEND="dev-ml/dune-configurator" - -src_prepare() { - default - - # Remove the GTK2 GUI frontend because GTK2 in Gentoo is deprecated - rm -r src/bin/gui || die -} - -src_configure() { - sh ./configure --prefix /usr --libdir=/usr/$(get_libdir) || die -} - -src_install() { - dune-install alt-ergo-lib alt-ergo-parsers alt-ergo - - use examples && dodoc -r examples -} -- cgit v1.2.3-65-gdbad