From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6A32615806E for ; Sun, 4 Jun 2023 13:39:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 752EAE07D0; Sun, 4 Jun 2023 13:39:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5A89DE07D0 for ; Sun, 4 Jun 2023 13:39:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 93D6A335D59 for ; Sun, 4 Jun 2023 13:39:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 23B90A6B for ; Sun, 4 Jun 2023 13:39:44 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1685885981.9403cd78844f9495e3feade4ae9348a95f8c718b.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/alt-ergo/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/alt-ergo/alt-ergo-9999.ebuild X-VCS-Directories: sci-mathematics/alt-ergo/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 9403cd78844f9495e3feade4ae9348a95f8c718b X-VCS-Branch: master Date: Sun, 4 Jun 2023 13:39:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: af77c921-d17b-4c60-a86e-3995d2ce626e X-Archives-Hash: 7b1972c1a7c133e5e137111470fbdc35 commit: 9403cd78844f9495e3feade4ae9348a95f8c718b Author: Maciej Barć gentoo org> AuthorDate: Sun Jun 4 13:24:37 2023 +0000 Commit: Maciej Barć gentoo org> CommitDate: Sun Jun 4 13:39:41 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9403cd78 sci-mathematics/alt-ergo: add live version Signed-off-by: Maciej Barć gentoo.org> sci-mathematics/alt-ergo/alt-ergo-9999.ebuild | 76 +++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/sci-mathematics/alt-ergo/alt-ergo-9999.ebuild b/sci-mathematics/alt-ergo/alt-ergo-9999.ebuild new file mode 100644 index 000000000000..1ba42319bb6c --- /dev/null +++ b/sci-mathematics/alt-ergo/alt-ergo-9999.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune + +DESCRIPTION="Automatic theorem prover" +HOMEPAGE="https://alt-ergo.ocamlpro.com + https://github.com/OCamlPro/alt-ergo/" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/OCamlPro/${PN}.git" +else + SRC_URI="https://github.com/OCamlPro/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="CeCILL-C" +SLOT="0/${PV}" +IUSE="examples gui +ocamlopt" +REQUIRED_USE="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/stdlib-shims:= + dev-ml/zarith:= + gui? ( + dev-ml/lablgtk:3 + dev-ml/lablgtk-sourceview:3 + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-ml/dune-build-info + dev-ml/dune-configurator +" + +PATCHES=( "${FILESDIR}"/${PN}-2.4.3-dune.patch ) + +OCAML_SUBPACKAGES=( + alt-ergo-lib + alt-ergo-parsers + alt-ergo +) + +src_prepare() { + default + + if use gui ; then + OCAML_SUBPACKAGES+=( altgr-ergo ) + fi +} + +src_configure() { + sh ./configure --prefix /usr --libdir=/usr/$(get_libdir) || die +} + +src_compile() { + dune-compile ${OCAML_SUBPACKAGES[@]} +} + +src_install() { + dune-install ${OCAML_SUBPACKAGES[@]} + + use examples && dodoc -r examples +}